fix:修复asset列表变更后,左侧菜单不刷新的问题
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -379,6 +379,9 @@
|
||||
bus.$on("module-list-change", menu => {
|
||||
this.getModuleList();
|
||||
});
|
||||
bus.$on('asset-list-change',()=>{
|
||||
this.getLeftMenuList();
|
||||
})
|
||||
},
|
||||
// 获取asset左侧菜单数据
|
||||
getLeftMenuList(){
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user