fix: 修复数个bug

1.asset exporter项在编辑asset时隐藏;
2.module 新增时默认端口161/9100;
3.asset detail feature重复数据;
4.刚进入panel时新增chart时不应该有panel选项;
5.overview 流量图表 处理查询折线数据异常的情况;
6.alert-msg和alert-rule二级的msg表头保持一致;
7.alert-rule detail告警数量 靠左对齐
This commit is contained in:
chenjinsong
2020-07-07 20:45:13 +08:00
parent f98c1724c4
commit ffcfaff389
11 changed files with 144 additions and 122 deletions

View File

@@ -692,7 +692,7 @@
immediate: true,
deep: true,
handler(n, o) {
if (n.type && n.type.toLowerCase() == 'snmp') {
if (!n.id && n.type && n.type.toLowerCase() == 'snmp') {
n.port = 161;
this.expandedWalkData = [];
this.$nextTick(() => {
@@ -701,6 +701,8 @@
for (let i = 0; i < n.walk.length; i++) {
this.expandedWalkData.push(n.walk[i].substring(0, n.walk[i].lastIndexOf(".")));
}
} else if (!n.id && n.type && n.type.toLowerCase() == 'http') {
n.port = 9100;
}
}
},