fix:删除页面console
This commit is contained in:
@@ -854,21 +854,16 @@
|
|||||||
return this.$CONSTANTS.alertMessage.severityData.find(s => {return s.value == key}).label
|
return this.$CONSTANTS.alertMessage.severityData.find(s => {return s.value == key}).label
|
||||||
},
|
},
|
||||||
plpsscrolly(el,self){
|
plpsscrolly(el,self){
|
||||||
console.log(el._ps_,self.bottomBox.mainResizeShow)
|
|
||||||
if (el._ps_.scrollbarYTop > 50) {
|
if (el._ps_.scrollbarYTop > 50) {
|
||||||
console.log(true)
|
|
||||||
self.tools.showTopBtn = true;
|
self.tools.showTopBtn = true;
|
||||||
} else {
|
} else {
|
||||||
console.log(false)
|
|
||||||
self.tools.showTopBtn = false;
|
self.tools.showTopBtn = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
plmouseenter(el,self){
|
plmouseenter(el,self){
|
||||||
console.log('plmouseenter')
|
|
||||||
self.tools.tableHover = true;
|
self.tools.tableHover = true;
|
||||||
},
|
},
|
||||||
plmouseleave(el,self){
|
plmouseleave(el,self){
|
||||||
console.log('plmouseleave')
|
|
||||||
self.tools.tableHover = false;
|
self.tools.tableHover = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -904,7 +899,6 @@
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
//绑定滚动条事件,控制top按钮
|
//绑定滚动条事件,控制top按钮
|
||||||
let el = this.$refs.alertListTable.$el.querySelector(".el-table__body-wrapper");
|
let el = this.$refs.alertListTable.$el.querySelector(".el-table__body-wrapper");
|
||||||
console.log(el);
|
|
||||||
if (el._ps_) {
|
if (el._ps_) {
|
||||||
el.addEventListener("ps-scroll-y", this.plpsscrolly.bind('',el,this));
|
el.addEventListener("ps-scroll-y", this.plpsscrolly.bind('',el,this));
|
||||||
el.addEventListener("mouseenter", this.plmouseenter.bind('',el,this));
|
el.addEventListener("mouseenter", this.plmouseenter.bind('',el,this));
|
||||||
|
|||||||
@@ -430,7 +430,6 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(response.data.error)
|
this.$message.error(response.data.error)
|
||||||
// console.error(response.data)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -364,7 +364,6 @@
|
|||||||
let _URL = window.URL || window.webkitURL;
|
let _URL = window.URL || window.webkitURL;
|
||||||
let img = new Image();
|
let img = new Image();
|
||||||
img.onload = function() {
|
img.onload = function() {
|
||||||
console.log(img.width);
|
|
||||||
let valid = img.width > width && img.height > height;
|
let valid = img.width > width && img.height > height;
|
||||||
valid ? resolve() : reject();
|
valid ? resolve() : reject();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -806,7 +806,6 @@
|
|||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
modelPopError(item){
|
modelPopError(item){
|
||||||
// console.log(item,this.activeModelItem);
|
|
||||||
if(item.id==='asset'&&this.activeModelItem.assetError){
|
if(item.id==='asset'&&this.activeModelItem.assetError){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -856,7 +855,6 @@
|
|||||||
mounted(){
|
mounted(){
|
||||||
// this.timeInterval=setInterval(()=>{
|
// this.timeInterval=setInterval(()=>{
|
||||||
// this.qqq();
|
// this.qqq();
|
||||||
// console.log(123);
|
|
||||||
// },300);
|
// },300);
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
let this_=this;
|
let this_=this;
|
||||||
@@ -946,7 +944,6 @@
|
|||||||
this_.cursorMove=true;
|
this_.cursorMove=true;
|
||||||
this_.lineId=params.edge;
|
this_.lineId=params.edge;
|
||||||
this_.$refs['network'].addEventListener('mousemove',this_.modelTopMouseMoveEdge);
|
this_.$refs['network'].addEventListener('mousemove',this_.modelTopMouseMoveEdge);
|
||||||
// console.log(params,'hoverEdge');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.network.on("blurEdge", function (params) { // 边失去焦点
|
this.network.on("blurEdge", function (params) { // 边失去焦点
|
||||||
@@ -955,7 +952,7 @@
|
|||||||
this_.expressionsInfoShow=false;
|
this_.expressionsInfoShow=false;
|
||||||
this_.lineId='';
|
this_.lineId='';
|
||||||
this_.$refs['network'].removeEventListener('mousemove',this_.modelTopMouseMoveEdge);
|
this_.$refs['network'].removeEventListener('mousemove',this_.modelTopMouseMoveEdge);
|
||||||
// console.log(params,'blurEdge');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.network.on("dragStart", function (params) {//节点移动开始
|
this.network.on("dragStart", function (params) {//节点移动开始
|
||||||
@@ -1010,7 +1007,6 @@
|
|||||||
|
|
||||||
this.network.on("hoverNode", function () {//hoverNode
|
this.network.on("hoverNode", function () {//hoverNode
|
||||||
this_.cursorMove=true;
|
this_.cursorMove=true;
|
||||||
// console.log(123123123);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.network.on("blurNode", function () {//blurNode
|
this.network.on("blurNode", function () {//blurNode
|
||||||
|
|||||||
@@ -767,7 +767,6 @@
|
|||||||
this.$refs['notificationTempForm'].clearValidate();
|
this.$refs['notificationTempForm'].clearValidate();
|
||||||
this.$get('/alert/script').then(response=>{
|
this.$get('/alert/script').then(response=>{
|
||||||
this.notification=response.data.list;
|
this.notification=response.data.list;
|
||||||
console.log(this.notification);
|
|
||||||
this.notificationReserved=[...this.notification];
|
this.notificationReserved=[...this.notification];
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -752,7 +752,6 @@
|
|||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
plpsscrolly(el,self){
|
plpsscrolly(el,self){
|
||||||
console.log(self.tools.showTopBtn && self.bottomBox.mainResizeShow)
|
|
||||||
if (el._ps_.scrollbarYTop > 50) {
|
if (el._ps_.scrollbarYTop > 50) {
|
||||||
self.tools.showTopBtn = true;
|
self.tools.showTopBtn = true;
|
||||||
} else {
|
} else {
|
||||||
@@ -818,12 +817,10 @@
|
|||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
pageType(n){
|
pageType(n){
|
||||||
console.log(n);
|
|
||||||
if(n=='endpoint'){
|
if(n=='endpoint'){
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
//绑定滚动条事件,控制top按钮
|
//绑定滚动条事件,控制top按钮
|
||||||
let el=this.$refs.endpointTable.$el.querySelector(".el-table__body-wrapper");
|
let el=this.$refs.endpointTable.$el.querySelector(".el-table__body-wrapper");
|
||||||
console.log(el._ps_);
|
|
||||||
if(el._ps_){
|
if(el._ps_){
|
||||||
el.addEventListener("ps-scroll-y", this.plpsscrolly.bind('',el,this));
|
el.addEventListener("ps-scroll-y", this.plpsscrolly.bind('',el,this));
|
||||||
el.addEventListener("mouseenter", this.plmouseenter.bind('',el,this));
|
el.addEventListener("mouseenter", this.plmouseenter.bind('',el,this));
|
||||||
|
|||||||
Reference in New Issue
Block a user