From 224cfcbca8cd3243e89341fdaa1eb81303c04c13 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 20 Mar 2024 11:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/device/devicemaintenancejob/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 6289ca1..974dd52 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -145,6 +145,7 @@ import * as MoldAccountsApi from '@/api/eam/mold/moldAccounts' import { useUserStore } from '@/store/modules/user' import { selecUserByType } from '@/api/system/dept' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' +import { emit } from 'process' const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value != 'MOLD') defineOptions({ name: 'DeviceMaintenanceMain' }) @@ -680,7 +681,7 @@ const detailValidate = (data) => { } } // 子表提交 -const detailSubmitForm= async (formType,data,getList,formRef,tableList) => { +const detailSubmitForm= async (formType,data,formRef,tableList) => { try { let data1 = { id:data.id, @@ -701,7 +702,6 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => { } formRef.dialogVisible = false // 刷新当前列表 - await getList() detailRef.value.tableObject.tableList.forEach(item=>{ if (item.itemNumbers?.length>0) { let str = '' @@ -712,6 +712,9 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => { } }) + await detailRef.value.getList() + await getList() + } finally { formRef.value.formLoading = false }