Jelajahi Sumber

修复支付审批列表bug

ellisran 2 bulan lalu
induk
melakukan
0e2f469003
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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;