fix: 处理直接进入project不走watch的问题
This commit is contained in:
@@ -178,7 +178,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
console.log(this.obj);
|
if(this.obj.id){
|
||||||
|
this.getProjectData(this.obj);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getProjectData(n){
|
getProjectData(n){
|
||||||
@@ -187,14 +189,18 @@
|
|||||||
this.$get('project/info', {id:n.id}).then(response => {
|
this.$get('project/info', {id:n.id}).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.projectInfo={...this.projectInfo,...response.data.basic,moduleMum:response.data.module.length}
|
this.projectInfo={...this.projectInfo,...response.data.basic,moduleMum:response.data.module.length}
|
||||||
this.projectInfo.loading=false;
|
this.$nextTick(()=>{
|
||||||
|
this.projectInfo.loading=false;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//获取所有asset
|
//获取所有asset
|
||||||
this.alertData.loading=true;
|
this.alertData.loading=true;
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.alertData.loading=false;
|
this.$nextTick(()=>{
|
||||||
|
this.alertData.loading=false;
|
||||||
|
})
|
||||||
},300)
|
},300)
|
||||||
},
|
},
|
||||||
focusInput() {
|
focusInput() {
|
||||||
|
|||||||
@@ -524,6 +524,17 @@
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
});
|
});
|
||||||
|
this.network.on("resize", function (params) {//检测resize
|
||||||
|
console.log(1111);
|
||||||
|
setTimeout(()=>{
|
||||||
|
this_.modelTopUpdate();
|
||||||
|
this_.selNodeArrUpdate();
|
||||||
|
if(this_.networkPopShow){
|
||||||
|
this_.setPopPosition(this_.selNodeId);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,6 +96,7 @@
|
|||||||
{id: 5,from: 1, to: 7, dashes:[15,15],label:"hahah",arrows:'from;to',smooth:true, color: {color:'#1e90ff',highlight:'#1e90ff',hover:'#1e90ff',opacity:1.0}},
|
{id: 5,from: 1, to: 7, dashes:[15,15],label:"hahah",arrows:'from;to',smooth:true, color: {color:'#1e90ff',highlight:'#1e90ff',hover:'#1e90ff',opacity:1.0}},
|
||||||
],
|
],
|
||||||
dragTitleShow:false,
|
dragTitleShow:false,
|
||||||
|
dropdownMenuShow:false,
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -606,7 +606,7 @@
|
|||||||
//resize时刷新左侧列表滚动条
|
//resize时刷新左侧列表滚动条
|
||||||
let vm = this;
|
let vm = this;
|
||||||
window.onresize = function() {
|
window.onresize = function() {
|
||||||
vm.$refs.leftScrollbar.update();
|
// vm.$refs.leftScrollbar.update();
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user