mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-30 18:54:06 +08:00
Vue3 重构:基本完善完 邮件模版 的重构
This commit is contained in:
@@ -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<CrudSchema[]>([
|
||||
{
|
||||
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'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user