fix: 参数配置根据规则布尔类型转换
This commit is contained in:
@@ -434,8 +434,11 @@ function arrayAdd() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// 根据规则类型转值
|
// 根据规则类型转值
|
||||||
if(['enum', 'int'].includes(v.type)){
|
if (['enum', 'int'].includes(v.type)) {
|
||||||
v.value = Number(v.value)
|
v.value = Number(v.value);
|
||||||
|
}
|
||||||
|
if ('bool' === v.type) {
|
||||||
|
v.value = Boolean(v.value);
|
||||||
}
|
}
|
||||||
row[v.name] = Object.assign({}, v);
|
row[v.name] = Object.assign({}, v);
|
||||||
}
|
}
|
||||||
@@ -1053,9 +1056,7 @@ function fnModalCancel() {
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 获取网元网元列表
|
// 获取网元网元列表
|
||||||
neInfoStore
|
neInfoStore.fnNelist().then(res => {
|
||||||
.fnNelist()
|
|
||||||
.then(res => {
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
// 过滤不可用的网元
|
// 过滤不可用的网元
|
||||||
|
|||||||
Reference in New Issue
Block a user