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)