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', field: 'type',
component: 'Select', component: 'Select',
componentProps: { componentProps: {
options: getDictOptions(DICT_TYPE.MP_MESSAGE_TYPE) options: getDictOptions(DICT_TYPE.MP_MESSAGE_TYPE, 'string')
}, },
colProps: { span: 8 } colProps: { span: 8 }
}, },
{ {
label: '用户标识', label: '用户标识',
field: 'openid', field: 'openid',
component: 'Select', component: 'Input',
colProps: { span: 8 } colProps: { span: 8 }
}, },
{ {

View File

@ -85,7 +85,7 @@ const otherPayChannels = ref<any[]>([])
function initPayChannels() { 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 = { const payChannel = {
name: dict.label, name: dict.label,
code: dict.value as string code: dict.value as string

View File

@ -102,7 +102,7 @@ export const formSchema: FormSchema[] = [
field: 'sslEnable', field: 'sslEnable',
component: 'Switch', component: 'Switch',
componentProps: { componentProps: {
options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING) options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean')
} }
} }
] ]