From ebf6680fe9003044b0dc3847f70f1cd62a264311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Fri, 19 Jan 2024 11:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=BB=84=E4=BB=B6=20?= =?UTF-8?q?=E5=BC=80=E6=94=BE=E9=87=8C=E9=9D=A2formRef=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index bd7c864a9..e5692ab1e 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -379,6 +379,7 @@ const HeadButttondata = ref() const buttondata = ref() /** 打开弹窗 */ +const formRef = ref() const titleNameRef = ref() const titleValueRef = ref() const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { @@ -458,7 +459,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: } } } -defineExpose({ openDetail }) // 提供 open 方法,用于打开弹窗 +defineExpose({ openDetail, formRef }) // 提供 open 方法,用于打开弹窗 // 获取备注列表 const getRemarkList = async () => { @@ -544,7 +545,6 @@ const buttonTableClick = async (val, row) => { } } /** 添加/修改操作 */ -const formRef = ref() const openForm = async (type: string, row?: number) => { emit('detailOpenForm', type, row) formRef.value.open(type, row, masterParmas.value)