fix:处理因为改变addEventLister方法造成的报错问题

This commit is contained in:
zhangyu
2020-11-20 18:03:57 +08:00
parent 74d8f02a73
commit 4f2d0b3e54
6 changed files with 21 additions and 12 deletions

View File

@@ -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();
},
};

View File

@@ -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);
}

View File

@@ -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(){

View File

@@ -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 {

View File

@@ -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

View File

@@ -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;
}
},