fix:修改topology的loading显示问题
This commit is contained in:
@@ -132,6 +132,7 @@
|
|||||||
getProjectData(n){
|
getProjectData(n){
|
||||||
//获取projectInfo
|
//获取projectInfo
|
||||||
this.projectInfo.loading=true;
|
this.projectInfo.loading=true;
|
||||||
|
this.$refs['visNetwork'].topologyLoading=true;
|
||||||
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.loading=false;
|
this.projectInfo.loading=false;
|
||||||
|
|||||||
@@ -179,7 +179,7 @@
|
|||||||
dragTitleShow:false,
|
dragTitleShow:false,
|
||||||
dropdownMenuShow:false,
|
dropdownMenuShow:false,
|
||||||
editVisNetwork:false,
|
editVisNetwork:false,
|
||||||
topologyLoading:false,
|
topologyLoading:true,
|
||||||
total:1,
|
total:1,
|
||||||
searchTime: bus.getTimezontDateRange(),
|
searchTime: bus.getTimezontDateRange(),
|
||||||
screenX:window.screen.width,
|
screenX:window.screen.width,
|
||||||
@@ -208,7 +208,7 @@
|
|||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.topologyLoading=false;
|
this.topologyLoading=false;
|
||||||
this.$refs['topology'].setData();
|
this.$refs['topology'].setData();
|
||||||
},500)
|
},100)
|
||||||
}
|
}
|
||||||
this.$refs['topology'].viewsCenter=res.data.topo.viewsCenter?res.data.topo.viewsCenter:{x:0,y:0};
|
this.$refs['topology'].viewsCenter=res.data.topo.viewsCenter?res.data.topo.viewsCenter:{x:0,y:0};
|
||||||
this.$refs['topology'].zoom=res.data.topo.zoom?(res.data.topo.zoom*this.screenX/1920):1;
|
this.$refs['topology'].zoom=res.data.topo.zoom?(res.data.topo.zoom*this.screenX/1920):1;
|
||||||
|
|||||||
@@ -172,7 +172,7 @@
|
|||||||
this.noData=false;
|
this.noData=false;
|
||||||
this.chart.clear();
|
this.chart.clear();
|
||||||
this.optionSeriesAll=[...this.option.series];
|
this.optionSeriesAll=[...this.option.series];
|
||||||
console.log( this.optionSeriesAll);
|
// console.log( this.optionSeriesAll);
|
||||||
if(this.option.series instanceof Array){
|
if(this.option.series instanceof Array){
|
||||||
this.option.series=this.option.series.filter((item,index)=>index<this.dataSize);
|
this.option.series=this.option.series.filter((item,index)=>index<this.dataSize);
|
||||||
}
|
}
|
||||||
@@ -401,7 +401,7 @@
|
|||||||
let option={
|
let option={
|
||||||
series:this.optionSeriesAll
|
series:this.optionSeriesAll
|
||||||
};
|
};
|
||||||
console.log(option);
|
// console.log(option);
|
||||||
this.chart.setOption(option);
|
this.chart.setOption(option);
|
||||||
this.chart.resize()
|
this.chart.resize()
|
||||||
},
|
},
|
||||||
@@ -461,7 +461,7 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.chartInit();
|
this.chartInit();
|
||||||
EleResize.on(this.$el, this.resize, this.chartType);
|
EleResize.on(this.$el, this.resize, this.chartType);
|
||||||
console.log(this.chartType)
|
// console.log(this.chartType)
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user