fix: 参数配置array显示枚举值
This commit is contained in:
@@ -888,7 +888,9 @@ function ruleVerification(row: Record<string, any>): (string | boolean)[] {
|
||||
if (!rule.test(value)) {
|
||||
return [
|
||||
false,
|
||||
t('views.configManage.configParamForm.requireString', { display }),
|
||||
t('views.configManage.configParamForm.requireString', {
|
||||
display,
|
||||
}),
|
||||
];
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -904,7 +906,9 @@ function ruleVerification(row: Record<string, any>): (string | boolean)[] {
|
||||
if (!regex.test(value)) {
|
||||
return [
|
||||
false,
|
||||
t('views.configManage.configParamForm.requireString', { display }),
|
||||
t('views.configManage.configParamForm.requireString', {
|
||||
display,
|
||||
}),
|
||||
];
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -1357,7 +1361,12 @@ onMounted(() => {
|
||||
</a-button>
|
||||
|
||||
<div v-else>
|
||||
{{ `${item.value}` || ' ' }}
|
||||
<template v-if="item['type'] === 'enum'">
|
||||
{{ JSON.parse(item['filter'])[item.value] }}
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ `${item.value}` || ' ' }}
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</a-tooltip>
|
||||
@@ -1581,7 +1590,14 @@ onMounted(() => {
|
||||
</a-button>
|
||||
|
||||
<div v-else>
|
||||
{{ `${item.value || ' '}` }}
|
||||
<template v-if="item['type'] === 'enum'">
|
||||
{{
|
||||
JSON.parse(item['filter'])[item.value]
|
||||
}}
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ `${item.value}` || ' ' }}
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</a-tooltip>
|
||||
|
||||
Reference in New Issue
Block a user