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