Browse Source

修复支付审批列表bug

ellisran 2 months ago
parent
commit
0e2f469003
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/public/js/payment_index.js

+ 2 - 2
app/public/js/payment_index.js

@@ -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;