fix:处理system关闭ping后 project assetTable 不显示ping的列
This commit is contained in:
@@ -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');
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user