From 3570210bafd6faa8a11f4b90ca5fe5bbd35bc527 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 11 Apr 2024 10:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E8=AF=A6=E6=83=85=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=A4=87=E4=BB=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 5f7a5e26c..9e52eb979 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -110,16 +110,18 @@ :annexData="annexData" @handleAnnexSuccess="handleAnnexSuccess" @deleteAnnexSuccess="deleteAnnexSuccess" - :upData="remarksData.data" + :upData="remarksData.data" + :key="count" /> - + @@ -362,7 +364,6 @@ const otherList = [...props.annexTable,{ label:'变更记录', prop:'ChangeRecord' }] - tabsList.value = [...tabsList?.value,...otherList] if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.length) { @@ -498,6 +499,7 @@ const searchTableFormType = ref('') // 表单的类型:create - 新增;updat const formRef = ref() const titleNameRef = ref() const titleValueRef = ref() +const count =ref(0) const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { titleNameRef.value = titleName titleValueRef.value = titleValue @@ -505,6 +507,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: tableId: row.id, tableName: tableName } + count.value++ // 加载明细列表 if (!props.isBasic) { // 设置主表id