| | |
| | | |
| | | import { h } from 'vue'; |
| | | |
| | | import { DICT_TYPE } from '../../../../packages/constants/src'; |
| | | import { getDictOptions } from '../../../../packages/effects/hooks/src'; |
| | | import { formatDateTime } from '../../../../packages/utils/src'; |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | import { formatDateTime } from '@vben/utils'; |
| | | |
| | | import { DictTag } from '#/components/dict-tag'; |
| | | import { getRangePickerDefaultProps } from '#/utils'; |
| | |
| | | }, |
| | | { |
| | | field: 'templateContent', |
| | | label: '主题', |
| | | }, |
| | | { |
| | | field: 'templateParams', |
| | | label: '消息内容', |
| | | render: (val) => { |
| | | try { |
| | | const params = typeof val === 'string' ? JSON.parse(val) : val; |
| | | return params?.content || '-'; |
| | | } catch { |
| | | return String(val); |
| | | } |
| | | }, |
| | | }, |
| | | ]; |
| | | } |