From 1b4fd57896e7c15dbd15d31669213eeb9d1f0d5b Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 20 Mar 2024 10:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E9=A1=B5=E9=9D=A2=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BF=AE=E6=94=B9=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 2 +- src/views/eam/item/itemApplyMain/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index c0a190c..37a5f7f 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -511,7 +511,7 @@ const submitForm = async (formType, data) => { try { const rs = (await props.detailValidate) ? props.detailValidate(data) : true if (!rs) return - emit('detailSubmitForm', formType, data, getList(), formRef.value) + emit('detailSubmitForm', formType, data, formRef.value) } finally { // formRef.value.formLoading = false } diff --git a/src/views/eam/item/itemApplyMain/index.vue b/src/views/eam/item/itemApplyMain/index.vue index 062949d..58811c6 100644 --- a/src/views/eam/item/itemApplyMain/index.vue +++ b/src/views/eam/item/itemApplyMain/index.vue @@ -333,18 +333,18 @@ } getList() // 刷新当前列表 } - const detailSubmitForm = async (formType, data, getList, formRef, tableList) => { + const detailSubmitForm = async (formType, data, formRef, tableList) => { try { if (formType === 'create') { await ItemApplyDetailApi.createItemApplyDetail(data) message.success(t('common.createSuccess')) formRef.dialogVisible = false - await formRef.getList + await detailRef.value.getList() } else { await ItemApplyDetailApi.updateItemApplyDetail(data) message.success(t('common.updateSuccess')) formRef.dialogVisible = false - formRef.getList + await detailRef.value.getList() } }catch { } finally {