From da0eb81d3f1e57d30975364ed04c18f9e4a1a3ed Mon Sep 17 00:00:00 2001 From: xingyu Date: Sun, 14 May 2023 16:42:01 +0800 Subject: [PATCH] fix: dict --- src/views/mp/message/message.data.ts | 4 ++-- src/views/pay/submit/index.vue | 2 +- src/views/system/mail/account/account.data.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/mp/message/message.data.ts b/src/views/mp/message/message.data.ts index 8e390be3..81038db9 100644 --- a/src/views/mp/message/message.data.ts +++ b/src/views/mp/message/message.data.ts @@ -120,14 +120,14 @@ export const searchFormSchema: FormSchema[] = [ field: 'type', component: 'Select', componentProps: { - options: getDictOptions(DICT_TYPE.MP_MESSAGE_TYPE) + options: getDictOptions(DICT_TYPE.MP_MESSAGE_TYPE, 'string') }, colProps: { span: 8 } }, { label: '用户标识', field: 'openid', - component: 'Select', + component: 'Input', colProps: { span: 8 } }, { diff --git a/src/views/pay/submit/index.vue b/src/views/pay/submit/index.vue index 48e9fc18..816c5166 100644 --- a/src/views/pay/submit/index.vue +++ b/src/views/pay/submit/index.vue @@ -85,7 +85,7 @@ const otherPayChannels = ref([]) function initPayChannels() { // 微信支付 - for (const dict of getDictOptions(DICT_TYPE.PAY_CHANNEL_CODE_TYPE)) { + for (const dict of getDictOptions(DICT_TYPE.PAY_CHANNEL_CODE_TYPE, 'string')) { const payChannel = { name: dict.label, code: dict.value as string diff --git a/src/views/system/mail/account/account.data.ts b/src/views/system/mail/account/account.data.ts index 8f270548..e40ef1f5 100644 --- a/src/views/system/mail/account/account.data.ts +++ b/src/views/system/mail/account/account.data.ts @@ -102,7 +102,7 @@ export const formSchema: FormSchema[] = [ field: 'sslEnable', component: 'Switch', componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING) + options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean') } } ]