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 + } + } /** 详情操作 */