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