diff --git a/src/views/system/mail/account/account.data.ts b/src/views/system/mail/account/account.data.ts index 532a6a08..f01c39f2 100644 --- a/src/views/system/mail/account/account.data.ts +++ b/src/views/system/mail/account/account.data.ts @@ -1,8 +1,5 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { DictTag } from '@/components/DictTag' -import { TableColumn } from '@/types/table' import { dateFormatter } from '@/utils/formatTime' -import { getBoolDictOptions } from '@/utils/dict' const { t } = useI18n() // 国际化 @@ -55,17 +52,10 @@ const crudSchemas = reactive([ { label: '是否开启 SSL', field: 'sslEnable', - formatter: (_: Recordable, __: TableColumn, cellValue: boolean) => { - return h(DictTag, { - type: DICT_TYPE.INFRA_BOOLEAN_STRING, - value: cellValue - }) - }, + dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, + dictClass: 'boolean', form: { - component: 'Radio', - componentProps: { - options: getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING) - } + component: 'Radio' } }, { diff --git a/src/views/system/mail/template/index.vue b/src/views/system/mail/template/index.vue index ef8d800d..b9a5040b 100644 --- a/src/views/system/mail/template/index.vue +++ b/src/views/system/mail/template/index.vue @@ -28,6 +28,14 @@ v-model:currentPage="tableObject.currentPage" > diff --git a/src/views/system/mail/template/template.data.ts b/src/views/system/mail/template/template.data.ts index 129fa4e5..bfdd5cad 100644 --- a/src/views/system/mail/template/template.data.ts +++ b/src/views/system/mail/template/template.data.ts @@ -1,7 +1,6 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' import { TableColumn } from '@/types/table' -import { DictTag } from '@/components/DictTag' import * as MailAccountApi from '@/api/system/mail/account' const accounts = await MailAccountApi.getSimpleMailAccountList() @@ -38,9 +37,6 @@ const crudSchemas = reactive([ field: 'content', form: { component: 'Editor', - colProps: { - span: 24 - }, componentProps: { valueHtml: '', height: 200 @@ -84,12 +80,6 @@ const crudSchemas = reactive([ label: '开启状态', field: 'status', isSearch: true, - formatter: (_: Recordable, __: TableColumn, cellValue: number) => { - return h(DictTag, { - type: DICT_TYPE.COMMON_STATUS, - value: cellValue - }) - }, dictType: DICT_TYPE.COMMON_STATUS, dictClass: 'number' },