瀏覽代碼

fix: 修复计量台账-附件编辑功能无法保存备注的bug

lanjianrong 4 年之前
父節點
當前提交
c2902efa83
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/controller/stage_controller.js

+ 3 - 3
app/controller/stage_controller.js

@@ -1200,7 +1200,7 @@ module.exports = app => {
         }
 
         /**
-         * 检测当前期当用用户是否在审核列表中,如果是的话运行再次上传附件
+         * 检查当前期当前用户是否在审核列表中,如果是的话允许再次上传附件
          * @param {Object} ctx 上下文
          */
         _checkStageCanModifyRe(ctx) {
@@ -1213,6 +1213,7 @@ module.exports = app => {
                         ctx.reUploadPermission = true;
                         return;
                     }
+
                     throw '该计量期当前您无权操作';
 
                 } else {
@@ -1413,8 +1414,7 @@ module.exports = app => {
             };
             let stream;
             try {
-                this._checkStageCanModify(ctx);
-
+                this._checkStageCanModifyRe(ctx);
                 stream = await ctx.getFileStream({ requireFile: false });
                 let fileData = {};
                 if (stream.filename !== undefined) {