fix: dict

pull/12/head
xingyu 2023-05-14 16:42:01 +08:00
parent 7c8aeb8998
commit da0eb81d3f
3 changed files with 4 additions and 4 deletions

View File

@ -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 }
},
{

View File

@ -85,7 +85,7 @@ const otherPayChannels = ref<any[]>([])
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

View File

@ -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')
}
}
]