|
@ -243,7 +243,7 @@ const open = async (type: string, row?: any) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
defineExpose({ open , formRef, opensearchTable}) // 提供 open 方法,用于打开弹窗 |
|
|
defineExpose({ open , formRef, opensearchTable, dialogVisible}) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
|
/** 弹窗按钮 */ |
|
|
/** 弹窗按钮 */ |
|
|
const Butttondata = [ |
|
|
const Butttondata = [ |
|
@ -289,7 +289,7 @@ const submitForm = async () => { |
|
|
try { |
|
|
try { |
|
|
const data = unref(formRef)?.formModel |
|
|
const data = unref(formRef)?.formModel |
|
|
emit('submitForm', formType.value, data ) |
|
|
emit('submitForm', formType.value, data ) |
|
|
dialogVisible.value = false |
|
|
// dialogVisible.value = false |
|
|
} finally { |
|
|
} finally { |
|
|
formLoading.value = false |
|
|
formLoading.value = false |
|
|
} |
|
|
} |
|
|