feat:dashboard、endpoint 图表添加时区转换,添加assetPingSwitch、系统设置调整

This commit is contained in:
wangwenrui
2020-04-09 16:14:32 +08:00
parent e53c5b8217
commit f56dec7a01
13 changed files with 77 additions and 20 deletions

View File

@@ -475,6 +475,7 @@
checkAllFlag: false,
checkAllHandler: false,
assetClick: false,
assetPingSwitch:localStorage.getItem('nz-sys-asset-ping-switch'),
}
},
computed: {
@@ -990,12 +991,26 @@
}
//resize时刷新左侧列表滚动条
let _this = this;
window.onresize = function() {
window.onresize = function () {
_this.$refs.leftScrollbar.update();
}
});
let localStorageTitle=localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path);
let localStorageTitle = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path);
this.tablelable = localStorageTitle ? JSON.parse(localStorageTitle) : this.tableTitle;
// this.assetPingSwit
if (this.assetPingSwitch == 'off') {
console.log(this.assetPingSwitch)
console.log(this.tablelable)
for (let i in this.tablelable) {
let label = this.tablelable[i];
if (label.prop == 'pingStatus') {
this.tablelable.splice(i, 1);
console.log(this.tablelable)
break;
}
}
}
this.dropCol = localStorageTitle ? JSON.parse(localStorageTitle) : this.tableTitle;
},
destroyed() {