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 {