diff --git a/src/views/system/dept/dept.data.ts b/src/views/system/dept/dept.data.ts index 3f38722f..28ea5e7e 100644 --- a/src/views/system/dept/dept.data.ts +++ b/src/views/system/dept/dept.data.ts @@ -114,7 +114,7 @@ export const formSchema: FormSchema[] = [ field: 'leaderUserId', component: 'ApiSelect', componentProps: { - options: () => getListSimpleUsers(), + api: () => getListSimpleUsers(), labelField: 'nickname', valueField: 'id' } diff --git a/src/views/system/sms/smsChannel.data.ts b/src/views/system/sms/smsChannel.data.ts index 83b58f23..2cca1608 100644 --- a/src/views/system/sms/smsChannel.data.ts +++ b/src/views/system/sms/smsChannel.data.ts @@ -1,5 +1,5 @@ import { BasicColumn, FormSchema, useRender } from '@/components/Table' -import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' +import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict' export const columns: BasicColumn[] = [ { @@ -101,7 +101,7 @@ export const formSchema: FormSchema[] = [ component: 'Select', required: true, componentProps: { - options: getIntDictOptions(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE) + options: getStrDictOptions(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE) } }, {