fix:修复asset列表变更后,左侧菜单不刷新的问题

This commit is contained in:
wangwenrui
2020-08-24 17:08:12 +08:00
parent 7730361fe7
commit 8d37d6807d
3 changed files with 7 additions and 2 deletions

View File

@@ -1295,7 +1295,7 @@
if(response.code == 200){
response.data && function() {
response.data.Basic && detail.push({
title: vm.$t('asset.basicTitle'),
title: vm.$t('project.chart.basicTitle'),
type: 'basic',
data: response.data.Basic
});
@@ -1310,7 +1310,7 @@
});
}else {
detail.push({
title: vm.$t('asset.basicTitle'),
title: vm.$t('project.chart.basicTitle'),
type: 'basic',
data: {
sn: 'assetInfo Test',

View File

@@ -379,6 +379,9 @@
bus.$on("module-list-change", menu => {
this.getModuleList();
});
bus.$on('asset-list-change',()=>{
this.getLeftMenuList();
})
},
// 获取asset左侧菜单数据
getLeftMenuList(){

View File

@@ -454,6 +454,7 @@
if (response.code === 200) {
this.$message({duration: 2000, type: 'success', message: this.$t("tip.deleteSuccess")});
this.getTableData();
bus.$emit('asset-list-change')
} else {
this.$message.error(response.msg);
}
@@ -485,6 +486,7 @@
this.rightBox.show = false;
if (refresh) {
this.getTableData();
bus.$emit('asset-list-change')
}
},
pageNo(val) {