Browse Source

Merge branch 'dev' of http://192.168.1.41:3000/maixinrong/Calculation into dev

Tony Kang 1 năm trước cách đây
mục cha
commit
b2ec75e4b3
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 1
      app/public/js/change_information.js
  2. 1 0
      app/view/change/information.ejs

+ 2 - 1
app/public/js/change_information.js

@@ -150,7 +150,8 @@ $(document).ready(() => {
             formData.append('size', filesize);
             formData.append('file[]', file);
         }
-        if (auditList.findIndex(item => item.uid === parseInt(accountId)) === -1 && !touristPermission) {
+        // if (!(change_uid === accountId || (auditors2 && auditors2.findIndex(item => item.uid === parseInt(accountId)) !== -1) || touristPermission)) {
+        if (!filePermission) {
             return toastr.error('暂无权限上传!');
         }
         postDataWithFile(window.location.pathname + '/file/upload', formData, function (data) {

+ 1 - 0
app/view/change/information.ejs

@@ -505,6 +505,7 @@
     });
     const readOnly = <%- change.readOnly %>;
     const shenpiPower = <%- change.shenpiPower %>;
+    const filePermission = <%- change.filePermission %>;
     const changeSpread = SpreadJsObj.createNewSpread($('#change-spread')[0]);
     const changeSpreadSheet = changeSpread.getActiveSheet();
     const xmjSpread = SpreadJsObj.createNewSpread($('#xmj-spread')[0]);