diff --git a/src/views/reward/apply/index.vue b/src/views/reward/apply/index.vue index ad91106..1a3408e 100644 --- a/src/views/reward/apply/index.vue +++ b/src/views/reward/apply/index.vue @@ -80,7 +80,7 @@ @@ -111,7 +111,7 @@ @@ -367,6 +367,24 @@ export default { this.editOpen = true; this.isReadOnly = true this.isView = true + this.fileData.forEach((item)=>{ + item.childrenList = [] + }) + if (response.code === 200) { + response.data.fileRelationVOList.forEach((item) => { + let index = this.fileData.findIndex(i => i.fileCode === item.fileCode); + if (index !== -1) { + this.fileData[index].childrenList.push({ + name: item.fileName, + url: item.filePath, + state:item.fileState, + fileId:item.fileId, + fileCode:item.fileCode, + }); + } + + }); + } }); }, /** 新增按钮操作 */ @@ -449,6 +467,9 @@ export default { };