fix:修改topology的loading显示问题

This commit is contained in:
zhangyu
2020-10-10 13:31:12 +08:00
parent 3f202eb777
commit aa28c455b6
3 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

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