fix: bug#20430
This commit is contained in:
parent
95f6f45e88
commit
e6cba52cf3
|
@ -40,9 +40,14 @@ const getProvidersFn = async () => {
|
||||||
if (version ==='community') {
|
if (version ==='community') {
|
||||||
return undefined
|
return undefined
|
||||||
} else {
|
} else {
|
||||||
const res: any = await getProviders();
|
try {
|
||||||
const ids = res.result?.map?.(item => item.id) || []
|
const res: any = await getProviders();
|
||||||
return protocolList.some(item => ids.includes(item.value))
|
const ids = res.result?.map?.(item => item.id) || []
|
||||||
|
return protocolList.some(item => ids.includes(item.value))
|
||||||
|
} catch (error) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@ const handOptionByColumn = (option: any) => {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
} else if(option.type === 'enum') {
|
} else if(option.type === 'enum') {
|
||||||
valueOptions.value = _options?.map((item: any) => ({ ...item, label: item.name, value: item.id})) || []
|
valueOptions.value = _options?.elements?.map((item: any) => ({ ...item, label: item.text, value: item.value})) || []
|
||||||
} else{
|
} else{
|
||||||
valueOptions.value = _options?.map((item: any) => ({ ...item, label: item.name, value: item.id})) || []
|
valueOptions.value = _options?.map((item: any) => ({ ...item, label: item.name, value: item.id})) || []
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,14 +61,14 @@
|
||||||
</j-form-item>
|
</j-form-item>
|
||||||
</j-col>
|
</j-col>
|
||||||
<j-col :span="12">
|
<j-col :span="12">
|
||||||
<j-form-item label="页面地址" name="url" :rules="[
|
<j-form-item :rules="[
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: '请输入页面地址',
|
message: '请输入页面地址',
|
||||||
},
|
},
|
||||||
{ max: 128, message: '最多可输入128字符' },
|
{ max: 128, message: '最多可输入128字符' },
|
||||||
{ pattern: /^\//, message: '请正确填写地址,以/开头' },
|
{ pattern: /^\//, message: '请正确填写地址,以/开头' },
|
||||||
]">
|
]" :validateFirst="true" label="页面地址" name="url">
|
||||||
<j-input v-model:value="form.data.url" placeholder="请输入页面地址" />
|
<j-input v-model:value="form.data.url" placeholder="请输入页面地址" />
|
||||||
</j-form-item>
|
</j-form-item>
|
||||||
</j-col>
|
</j-col>
|
||||||
|
|
Loading…
Reference in New Issue