fix: 1. Panel > 编辑图标功能,判断兼容老数据添加默认值

2. 修复 告警等级 Priority select 初始化 color 为 undefined
This commit is contained in:
@changcode
2021-07-07 14:30:27 +08:00
parent 87268e43ff
commit 8a6da26217
5 changed files with 43 additions and 23 deletions

View File

@@ -1761,7 +1761,13 @@ export default {
immediate: true,
handler (n) {
if (n.id) {
this.isEdit = true
this.isEdit = true;
if (!n.param.state && n.param.state != Number) {
n.param.state = "1"
}
if (n.param.severity && n.param.severity != Number) {
n.param.severity = 1
}
}
if ((n.param && n.param.valueMapping) && (n.type === 'singleStat' || n.type === 'table')) {
n.param.valueMapping.mapping.forEach(item => {