From 4dc24923b330d1839da43db310d09844cd3c9a61 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 29 Mar 2023 23:15:08 +0800 Subject: [PATCH] fix: #I6R5EL --- src/views/system/dept/dept.data.ts | 2 +- src/views/system/sms/smsChannel.data.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) } }, {