From 0d446746e626412357f563eaef7ee6f374c74e36 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 10 Apr 2025 10:29:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E6=96=87=E6=A1=A3=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/auditDocument/index.vue | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/views/trials/trials-workbench/components/auditDocument/index.vue b/src/views/trials/trials-workbench/components/auditDocument/index.vue index bc7cca2d..e3266ca3 100644 --- a/src/views/trials/trials-workbench/components/auditDocument/index.vue +++ b/src/views/trials/trials-workbench/components/auditDocument/index.vue @@ -16,7 +16,8 @@ - + @@ -645,6 +646,7 @@ export default { let res = await deleteAuditDocument(data) if (res.IsSuccess) { this.checkList = [] + this.rowData = {} this.getList(this.rowData.Id) if (this.$refs.versionDetail) { // this.$refs.versionDetail.getHistoricalVersion() @@ -679,6 +681,7 @@ export default { // 新增列表数据 async uplaodFile(list) { if (!this.isManage) return false + console.log(list, 'list') let data = [] if (this.config.isVersion) { data.push({ @@ -692,6 +695,17 @@ export default { }) } else { data = this.formatData(list) + let ParentId = this.Id + if (this.rowData && this.rowData.Id) { + if (this.rowData.AuditDocumentTypeEnum) { + ParentId = this.rowData.ParentId + } else { + ParentId = this.rowData.Id + } + } + data.forEach(item => { + item.ParentId = ParentId + }) } try { let res = await addAuditDocument(JSON.stringify(data)) @@ -736,10 +750,11 @@ export default { } } } - obj = obj[str] + obj = obj[str] || strObj[str] strKey.push(str) }) + console.log(obj, 'obj') obj.children.push({ ParentId: null, Name: item.FileName, @@ -1059,6 +1074,10 @@ export default { }