From 0241d893a84ea4dc10ba691c8591bf459d22a29f Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Mon, 6 May 2024 16:28:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=82=E5=8C=BA=E7=8F=AD=E7=BB=84=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/basic/classType/classType.data.ts | 4 ++-- src/views/eam/basic/classType/index.vue | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/eam/basic/classType/classType.data.ts b/src/views/eam/basic/classType/classType.data.ts index 1459a25..605c18b 100644 --- a/src/views/eam/basic/classType/classType.data.ts +++ b/src/views/eam/basic/classType/classType.data.ts @@ -106,7 +106,7 @@ export const ClassType = useCrudSchemas(reactive([ label: '班组类型', field: 'type', dictType: DICT_TYPE.CLASS_TYPE, - isSearch: false, + isSearch: true, dictClass: 'string', sort: 'custom', form: { @@ -121,7 +121,7 @@ export const ClassType = useCrudSchemas(reactive([ { label: '所属厂区编号', field: 'factoryAreaNumber', - isSearch: false, + isSearch: true, sort: 'custom', form: { // labelMessage: '信息提示说明!!!', diff --git a/src/views/eam/basic/classType/index.vue b/src/views/eam/basic/classType/index.vue index f1fb288..d8c3521 100644 --- a/src/views/eam/basic/classType/index.vue +++ b/src/views/eam/basic/classType/index.vue @@ -165,7 +165,8 @@ const formsSuccess = async (formType,data) => { } if(data.activeTime==0)data.activeTime = null; if(data.expireTime==0)data.expireTime = null; - if (formType === 'create') { + try{ + if (formType === 'create') { await ClassTypeApi.createClassType(data) message.success(t('common.createSuccess')) } else { @@ -174,6 +175,10 @@ const formsSuccess = async (formType,data) => { } basicFormRef.value.dialogVisible = false getList() + }finally { + basicFormRef.value.formLoading=false + } + } /** 详情操作 */