Browse Source

中间计量,附件相关bug

MaiXinRong 3 years ago
parent
commit
92088d60c9
2 changed files with 3 additions and 4 deletions
  1. 1 1
      app/public/js/stage.js
  2. 2 3
      app/service/stage_detail_att.js

+ 1 - 1
app/public/js/stage.js

@@ -2770,7 +2770,7 @@ $(document).ready(() => {
 
                 postData(window.location.pathname + '/im-file/del', { uuid, file_id }, function (result) {
                     stageIm.loadUpdateDetailAtt(result);
-                    SpreadJsObj.reLoadRowData(self.sheet, sels[0]);
+                    SpreadJsObj.reLoadRowData(self.sheet, sels[0].row);
                     self.makeAttTable(select);
                 });
             });

+ 2 - 3
app/service/stage_detail_att.js

@@ -64,8 +64,7 @@ module.exports = app => {
         }
 
         async getUserTemp(uid) {
-            if (!this.userTemp[uid])
-            this.userTemp[uid] = await this.ctx.service.projectAccount.getAccountInfoById(uid);
+            if (!this.userTemp[uid]) this.userTemp[uid] = await this.ctx.service.projectAccount.getAccountInfoById(uid);
             return this.userTemp[uid];
         }
 
@@ -75,7 +74,7 @@ module.exports = app => {
             for (const d of datas) {
                 for (const a of d.attachment) {
                     delete a.filepath;
-                    a.username = await this.getUserTemp.name;
+                    a.username = (await this.getUserTemp(a.uid)).name;
                 }
             }
         }