Showing
1 changed file
with
9 additions
and
9 deletions
| ... | ... | @@ -4,7 +4,6 @@ import { h } from 'vue'; |
| 4 | 4 | import { Tag } from 'ant-design-vue'; |
| 5 | 5 | import { useI18n } from '/@/hooks/web/useI18n'; |
| 6 | 6 | import moment from 'moment'; |
| 7 | -import { findDictItemByCode } from '/@/api/system/dict'; | |
| 8 | 7 | const { t } = useI18n(); |
| 9 | 8 | export const columns: BasicColumn[] = [ |
| 10 | 9 | { |
| ... | ... | @@ -51,6 +50,12 @@ export const columns: BasicColumn[] = [ |
| 51 | 50 | }, |
| 52 | 51 | ]; |
| 53 | 52 | |
| 53 | +export const typeList = [ | |
| 54 | + { label: '阿里', value: 'ALI_CLOUD' }, | |
| 55 | + { label: '钉钉', value: 'DING_TALK' }, | |
| 56 | + { label: '腾讯', value: 'TENCENT_CLOUD' }, | |
| 57 | +]; | |
| 58 | + | |
| 54 | 59 | export const searchFormSchema: FormSchema[] = [ |
| 55 | 60 | { |
| 56 | 61 | field: 'toPhone', |
| ... | ... | @@ -62,17 +67,12 @@ export const searchFormSchema: FormSchema[] = [ |
| 62 | 67 | }, |
| 63 | 68 | }, |
| 64 | 69 | { |
| 65 | - field: 'typeDictText', | |
| 70 | + field: 'type', | |
| 66 | 71 | label: '消息平台', |
| 67 | - component: 'ApiSelect', | |
| 72 | + component: 'Select', | |
| 68 | 73 | colProps: { span: 6 }, |
| 69 | 74 | componentProps: { |
| 70 | - api: findDictItemByCode, | |
| 71 | - params: { | |
| 72 | - dictCode: 'message_type', | |
| 73 | - }, | |
| 74 | - labelField: 'itemText', | |
| 75 | - valueField: 'itemValue', | |
| 75 | + options: typeList, | |
| 76 | 76 | }, |
| 77 | 77 | }, |
| 78 | 78 | { | ... | ... |