瀏覽代碼

移除部分console

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

+ 0 - 8
app/controller/stage_controller.js

@@ -120,7 +120,6 @@ module.exports = app => {
          */
         async _getStageAuditViewData(ctx) {
             const times = ctx.stage.status === auditConst.status.checkNo ? ctx.stage.times - 1 : ctx.stage.times;
-            console.log('times', times);
 
             ctx.stage.user = await ctx.service.projectAccount.getAccountInfoById(ctx.stage.user_id);
             ctx.stage.auditHistory = [];
@@ -1005,7 +1004,6 @@ module.exports = app => {
         async checkAudit(ctx) {
             try {
                 this._checkStageCanModify(ctx);
-                console.log(ctx.request.body);
                 if (!this.ctx.stage || (this.ctx.stage.status !== auditConst.status.checking && this.ctx.stage.status !== auditConst.status.checkNoPre)) {
                     throw '当前期数据有误';
                 }
@@ -1208,10 +1206,7 @@ module.exports = app => {
             if (ctx.stage.readOnly) {
                 if (ctx.stage.status === auditConst.status.checked) {
                     // 当前期状态为完成,且提交人是审核列表中的则可再次上传
-                    console.log('当前期审核通过!');
-                    console.log(ctx.stage.auditors);
                     if (ctx.stage.user_id === ctx.session.sessionUser.accountId || ctx.stage.auditors.findIndex(auditor => auditor.aid === ctx.session.sessionUser.accountId) !== -1) {
-                        console.log('当前用户拥有上传权限!');
                         // 再次上传的图片要给个标识,方便给前端进行编辑操作
                         ctx.reUploadPermission = true;
                         return;
@@ -1276,7 +1271,6 @@ module.exports = app => {
                         filepath: path.join(dirName, fileName),
                     };
                     if (ctx.reUploadPermission) {
-                        console.log('111111111111111');
                         fileData.re_upload = 1;
                     }
                     const result = await ctx.service.stageAtt.save(parts.field, fileData, ctx.session.sessionUser.accountId);
@@ -1288,7 +1282,6 @@ module.exports = app => {
                     files.length !== 0 ? files.unshift(attData) : files.push(attData);
                     ++index;
                 }
-                console.log('files:', files);
                 responseData.data = files;
             } catch (err) {
                 this.log(err);
@@ -1353,7 +1346,6 @@ module.exports = app => {
             if (id) {
                 try {
                     const fileInfo = await ctx.service.stageAtt.getDataById(id);
-                    console.log(fileInfo);
                     if (fileInfo && Object.keys(fileInfo).length) {
                         fileInfo.filepath && (responseData.data = { filepath: fileInfo.filepath.slice(3) });
                     }