fix:修复删除二级页面alertmessage,主页面不刷新的问题
This commit is contained in:
@@ -336,7 +336,9 @@
|
||||
this.dataTotalListBak.push(newItem);
|
||||
}
|
||||
this.dataList = this.dataTotalListBak;
|
||||
this.showShadow=false;
|
||||
this.$nextTick(()=>{
|
||||
this.showShadow=false;
|
||||
})
|
||||
}else {
|
||||
if(response.msg){
|
||||
this.$message.error(response.msg);
|
||||
@@ -700,6 +702,7 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
loadChartData(scrollTop){
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<el-dropdown trigger="click" class="nz-chart-top" :key="'chartDropdown'+chartIndex" v-clickoutside="clickos">
|
||||
<el-dropdown-menu style="display: none"></el-dropdown-menu>
|
||||
<span class="el-dropdown-link chart-title" @click.stop="dropdownMenuShow=!dropdownMenuShow">
|
||||
<span class="chart-title-text">{{chartData.title}}-[{{chartData.id}}]</span>
|
||||
<span class="chart-title-text">{{chartData.title}}</span>
|
||||
<span class="chart-title-icon" v-if="filter.from != 'alertRule'"><i class="nz-icon nz-icon-xialaxuanze " :class="{'visible':caretShow,'hidden':!caretShow}"></i></span>
|
||||
</span>
|
||||
<ul v-if="filter.from != 'alertRule'" slot="dropdown" v-show="dropdownMenuShow" :id="'dropdownUl'+chartIndex" :class="{'el-dropdown-menu nz-chart-dropdown':!isExplore,'el-dropdown-menu nz-chart-dropdown-one':isExplore}" style="position: absolute; top: 30px; left: calc(50% - 79px); transform-origin: center top; z-index: 1000;" >
|
||||
|
||||
@@ -612,6 +612,7 @@
|
||||
if (valid) {
|
||||
this.$emit('deleteMessage',this.deleteBox,()=>{
|
||||
this.deleteBox.ids=[];
|
||||
bus.$emit("alert-message-change")
|
||||
});
|
||||
this.deleteBox.show = false;
|
||||
}
|
||||
|
||||
@@ -514,6 +514,9 @@
|
||||
bus.$on("dc-list-change", () => {
|
||||
this.getTableData();
|
||||
});
|
||||
bus.$on('alert-message-change',()=>{
|
||||
this.getTableData();
|
||||
})
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -700,9 +700,13 @@
|
||||
}else{
|
||||
this.pageObj[column] = content;
|
||||
}
|
||||
let isSame = this.checkSearchLabel(JSON.parse(JSON.stringify(this.pageObj)), oldPageObj);
|
||||
isSame && this.getTableData();
|
||||
// let isSame = this.checkSearchLabel(JSON.parse(JSON.stringify(this.pageObj)), oldPageObj);
|
||||
// isSame && this.getTableData();
|
||||
this.getTableData();
|
||||
});
|
||||
bus.$on('alert-message-change',()=>{
|
||||
this.getTableData()
|
||||
})
|
||||
},
|
||||
dispatchEvent(event,param){
|
||||
this.$nextTick(()=>{
|
||||
|
||||
@@ -737,6 +737,9 @@
|
||||
bus.$on("endpoint-list-change",menu=>{
|
||||
this.getEndpointTableData();
|
||||
});
|
||||
bus.$on('alert-message-change',()=>{
|
||||
this.getEndpointTableData()
|
||||
})
|
||||
},
|
||||
messageStyle(e){
|
||||
if(e.column.label=='Alerts'||e.column.label==this.$t("project.endpoint.alerts")){
|
||||
|
||||
Reference in New Issue
Block a user