|
|
@ -214,7 +214,8 @@ const openForm = (type: string, row?: any) => { |
|
|
|
|
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType,data) => { |
|
|
|
var isHave =Customerdock.allSchemas.formSchema.some(function (item) { |
|
|
|
try { |
|
|
|
var isHave =Customerdock.allSchemas.formSchema.some(function (item) { |
|
|
|
return item.field === 'activeTime' || item.field === 'expireTime'; |
|
|
|
}); |
|
|
|
if(isHave){ |
|
|
@ -233,13 +234,16 @@ const formsSuccess = async (formType,data) => { |
|
|
|
await CustomerdockApi.updateCustomerdock(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
if (formType === 'create') { |
|
|
|
getList() |
|
|
|
}else{ |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
} |
|
|
|
} catch { |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|