fix: dict
parent
7c8aeb8998
commit
da0eb81d3f
|
@ -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 }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue