fix:处理system关闭ping后 project assetTable 不显示ping的列

This commit is contained in:
zhangyu
2020-08-28 10:06:16 +08:00
parent b7a4250bd6
commit de362e7652

View File

@@ -178,6 +178,7 @@
}
},
mounted(){
this.getTableTitle();
this.getAssetList();
},
methods:{
@@ -257,6 +258,11 @@
return this.$t('asset.assetStatPre')+year+ds+month+ds+day+' '+hours+ts+minutes+ts+seconds;
},
getTableTitle(){
if(localStorage.getItem('nz-sys-asset-ping-switch')==='off'){
this.tableTitle=this.tableTitle.filter(item=>item.prop!=='pingStatus');
}
},
},
}