diff --git a/src/views/caseManagement/components/caseentryDialog.vue b/src/views/caseManagement/components/caseentryDialog.vue index 160d63f..bab14cf 100644 --- a/src/views/caseManagement/components/caseentryDialog.vue +++ b/src/views/caseManagement/components/caseentryDialog.vue @@ -783,7 +783,14 @@ export default { }); } }); - this.fileList = this.caseAttachList; + if (this.caseAttachList.length > 0) { + this.caseAttachListArr = this.caseAttachList + } + this.caseAttachList.forEach((item) => { + if (item.annexType == 2) { + this.fileList.push(item) + } + }); this.fileList.forEach((item) => { item["name"] = item.annexName; item["certificatePath"] = item.annexPath; @@ -854,9 +861,9 @@ export default { // 文件上传成功 handlSuccess(res, file) { - this.caseAttachListArr.push({ - annexId: res.data.annexId, - }); + this.caseAttachListArr.push( + res.data, + ); }, // 文件超出个数限制时的钩子 handleExceed(files, fileList) { @@ -870,10 +877,10 @@ export default { return this.$confirm(`确定移除 ${file.name}?`); }, handleRemove(file, fileList) { - (this.caseAttachListArr = []), - fileList.forEach((item) => { - this.caseAttachListArr.push({ annexId: item.response.data.annexId }); - }); + // (this.caseAttachListArr = []), + // fileList.forEach((item) => { + // this.caseAttachListArr.push( item.response.data ); + // }); }, // 取消 cancel() {