@@ -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);
});
@@ -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;