浏览代码

台账分解,附件相关

MaiXinRong 8 月之前
父节点
当前提交
04516f49e8
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      app/public/js/ledger.js

+ 4 - 4
app/public/js/ledger.js

@@ -4676,7 +4676,7 @@ $(document).ready(function() {
     });
     // 上传附件
     $('#upload-file-btn').click(function () {
-        // if (curAuditor && curAuditor.aid !== cur_uid) {
+        // if (curAuditor && curAuditor.aid !== userID) {
         //     return toastr.error('当前操作没有权限!');
         // }
         const node = SpreadJsObj.getSelectObject(ledgerSpread.getActiveSheet());
@@ -4737,7 +4737,7 @@ $(document).ready(function() {
           $('#show-att tr').eq(2).children('td').eq(1).text(att.in_time);
           $('#show-att tr').eq(3).children('td').text(att.remark);
           // 附件uid等于当前用户id, 附件上传本人
-          if (parseInt(cur_uid) === att.uid) {
+          if (parseInt(userID) === att.uid) {
               $('#btn-att').show();
               const showDel = tender.ledger_status === auditConst.status.checked ? Boolean(att.extra_upload) : true;
               if (showDel) $('#btn-att a').eq(3).show();
@@ -5059,7 +5059,7 @@ function getNodeList(node) {
   for(const att of attData) {
       if (node === att.lid) {
           // html += '<tr><td><a href="javascript:void(0)" file-id="'+ att.id +'">'+ att.filename + att.fileext +'</a></td><td>'+ att.username +'</td></tr>';
-          const delHtml = deleteFilePermission && parseInt(cur_uid) === att.uid
+          const delHtml = deleteFilePermission && parseInt(userID) === att.uid
               ? `<a class="ml-1 text-danger" href="javascript:void(0)" name="att-delete" file-id="${att.id}"><i class="fa fa-close" title="删除"></i></a>`
               : '';
           html += `<tr>
@@ -5097,7 +5097,7 @@ function getAllList(currPageNum = 1) {
   currPageFileData = currPageAttData;
   let html = '';
   for(const att of currPageAttData) {
-      const delHtml = deleteFilePermission && parseInt(cur_uid) === att.uid
+      const delHtml = deleteFilePermission && parseInt(userID) === att.uid
           ? `<a class="ml-1 text-danger" href="javascript:void(0)" name="att-delete" file-id="${att.id}"><i class="fa fa-close" title="删除"></i></a>`
           : '';
       html += `<tr>