fix:处理因为改变addEventLister方法造成的报错问题
This commit is contained in:
@@ -1397,9 +1397,11 @@
|
||||
//const addChartBox = document.querySelector('.right-box-add-chart');
|
||||
//addChartBox.style.cssText = this.oldChartBoxCss;
|
||||
try {
|
||||
if(this.echartModalStore){
|
||||
this.echartModalStore.off('magictypechanged');
|
||||
}
|
||||
} finally {}
|
||||
this.$refs.screenLegendArea._ps_ && this.$refs.screenLegendArea._ps_.destroy();
|
||||
this.$refs.screenLegendArea && this.$refs.screenLegendArea._ps_.destroy();
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -263,7 +263,6 @@
|
||||
if(res.msg==='success'){
|
||||
this.loading=false;
|
||||
this.alertLabelData=res.data.list[0];
|
||||
console.log(this.alertLabelData)
|
||||
} else{
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
|
||||
@@ -685,7 +685,7 @@
|
||||
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList")
|
||||
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList"))
|
||||
: this.tableTitle;
|
||||
this.$refs['alertMessageTable'].bottomBox.mainResizeShow=false;
|
||||
// this.$refs['alertMessageTable'].bottomBox.mainResizeShow=false;
|
||||
},
|
||||
beforeDestroy(){
|
||||
|
||||
|
||||
@@ -503,11 +503,13 @@
|
||||
}
|
||||
},
|
||||
beforeDestroy(){
|
||||
if(document.querySelector("#tableList")){
|
||||
document.querySelector("#tableList").removeEventListener("mouseenter", this.tableListEnter);
|
||||
document.querySelector("#tableList").removeEventListener("mouseleave", this.tableListLaeve);
|
||||
document.querySelector("body>.el-dropdown-menu").removeEventListener("ps-y-reach-end", this.psYReachEnd);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.panel {
|
||||
|
||||
@@ -207,7 +207,9 @@
|
||||
this.edgesArray=[];
|
||||
setTimeout(()=>{
|
||||
this.topologyLoading=false;
|
||||
if(this.$refs['topology']){
|
||||
this.$refs['topology'].setData();
|
||||
}
|
||||
},100)
|
||||
}
|
||||
if(res.data.topo){
|
||||
@@ -261,7 +263,9 @@
|
||||
this.edgesArray=[...this.edgesArrayOther];
|
||||
setTimeout(()=>{
|
||||
this.topologyLoading=false;
|
||||
if(this.$refs['topology']){
|
||||
this.$refs['topology'].setData();
|
||||
}
|
||||
},500)
|
||||
})
|
||||
// }
|
||||
@@ -276,7 +280,9 @@
|
||||
this.nodesArray=[...this.nodesArrayOther];
|
||||
this.edgesArray=[...this.edgesArrayOther];
|
||||
this.topologyLoading=false;
|
||||
if(this.$refs['topology']){
|
||||
this.$refs['topology'].setData();
|
||||
}
|
||||
})
|
||||
});
|
||||
return arr
|
||||
|
||||
@@ -339,10 +339,10 @@
|
||||
self.tools.showTopBtn = false;
|
||||
}
|
||||
},
|
||||
plmouseenter(self){
|
||||
plmouseenter(el,self){
|
||||
self.tools.tableHover = true;
|
||||
},
|
||||
plmouseleave(self){
|
||||
plmouseleave(el,self){
|
||||
self.tools.tableHover = false;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user