fix:修复asset列表变更后,左侧菜单不刷新的问题
This commit is contained in:
@@ -1295,7 +1295,7 @@
|
|||||||
if(response.code == 200){
|
if(response.code == 200){
|
||||||
response.data && function() {
|
response.data && function() {
|
||||||
response.data.Basic && detail.push({
|
response.data.Basic && detail.push({
|
||||||
title: vm.$t('asset.basicTitle'),
|
title: vm.$t('project.chart.basicTitle'),
|
||||||
type: 'basic',
|
type: 'basic',
|
||||||
data: response.data.Basic
|
data: response.data.Basic
|
||||||
});
|
});
|
||||||
@@ -1310,7 +1310,7 @@
|
|||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
detail.push({
|
detail.push({
|
||||||
title: vm.$t('asset.basicTitle'),
|
title: vm.$t('project.chart.basicTitle'),
|
||||||
type: 'basic',
|
type: 'basic',
|
||||||
data: {
|
data: {
|
||||||
sn: 'assetInfo Test',
|
sn: 'assetInfo Test',
|
||||||
|
|||||||
@@ -379,6 +379,9 @@
|
|||||||
bus.$on("module-list-change", menu => {
|
bus.$on("module-list-change", menu => {
|
||||||
this.getModuleList();
|
this.getModuleList();
|
||||||
});
|
});
|
||||||
|
bus.$on('asset-list-change',()=>{
|
||||||
|
this.getLeftMenuList();
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 获取asset左侧菜单数据
|
// 获取asset左侧菜单数据
|
||||||
getLeftMenuList(){
|
getLeftMenuList(){
|
||||||
|
|||||||
@@ -454,6 +454,7 @@
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.$message({duration: 2000, type: 'success', message: this.$t("tip.deleteSuccess")});
|
this.$message({duration: 2000, type: 'success', message: this.$t("tip.deleteSuccess")});
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
|
bus.$emit('asset-list-change')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(response.msg);
|
this.$message.error(response.msg);
|
||||||
}
|
}
|
||||||
@@ -485,6 +486,7 @@
|
|||||||
this.rightBox.show = false;
|
this.rightBox.show = false;
|
||||||
if (refresh) {
|
if (refresh) {
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
|
bus.$emit('asset-list-change')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pageNo(val) {
|
pageNo(val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user