|
@@ -191,8 +191,8 @@ $(function () {
|
|
|
|
|
|
$('body').on('click', '.edit_name_btn', function () {
|
|
|
const type = $(this).attr('data-type');
|
|
|
- const id = parseInt($(this).attr('data-id'));
|
|
|
- const info = type === 'tender' ? _.find(allTenders, { id }) : _.find(allFolders, { id });
|
|
|
+ const id = $(this).attr('data-id');
|
|
|
+ const info = type === 'tender' ? _.find(allTenders, { id: parseInt(id) }) : _.find(allFolders, { id });
|
|
|
if (!info) {
|
|
|
toastr.error('文件夹或标段不存在');
|
|
|
return;
|