fix: 1. Panel > 编辑图标功能,判断兼容老数据添加默认值
2. 修复 告警等级 Priority select 初始化 color 为 undefined
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user