From 5e2ed571d71e9cf61be6cea0d6f8741ed4b0c893 Mon Sep 17 00:00:00 2001 From: dsh <15569653818@163.com> Date: Mon, 22 Apr 2024 10:12:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reward/apply/index.vue | 25 +++++++++++++++++++++++-- src/views/reward/apply/update.vue | 4 ++-- 2 files changed, 25 insertions(+), 4 deletions(-) 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 { };