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

@@ -226,7 +226,7 @@
}
this.filter.searchName='';
//this.$refs.searchInput.select();
this.showPanel = val
this.showPanel = val;
this.filter.panelId = this.showPanel.id;
// let curTime = this.$refs.calendarPanel.getCurrentTime();
let curTime=this.searchTime;
@@ -429,15 +429,13 @@
let isInitData = false;
if (response.data.list.length > 0) {
if (this.$store.state.showPanel.id !== 0 && this.$store.state.showPanel.name !== '') {
this.showPanel.name = this.$store.state.showPanel.name;
this.showPanel.id = this.$store.state.showPanel.id;
this.showPanel = this.$store.state.showPanel;
}
if (clearShowPanel) {
this.showPanel.id = '';
}
if (this.showPanel.id === '') {
this.showPanel.id = response.data.list[0].id;
this.showPanel.name = response.data.list[0].name;
if (!this.showPanel.id) {
this.showPanel = response.data.list[0];
this.filter.panelId = this.showPanel.id;
this.getData(this.filter);
isInitData = true;
@@ -453,7 +451,7 @@
}
this.$store.state.showPanel.id = 0;
this.$store.state.showPanel.name = '';
this.$store.state.showPanel.type = 'dashboard';
}else {
if(response.msg){
this.$message.error(response.msg);
@@ -580,7 +578,7 @@
});
}
this.panelDataDragTmp = [...this.panelData];
console.log(this.panelDataDragTmp)
//console.log(this.panelDataDragTmp)
},
end (event) {
// console.info("end event:", event)