`;
+ let str = ``;
params.forEach((item, i) => {
let tip=temp.legend.find((element)=>{
return element.name == item.seriesName;
@@ -1145,9 +1145,7 @@
},
showEndpoint:function(endpoint){
this.tableShow=3;
- // this.queryEdpLoading=true;
- console.log(this.$refs)
- this.$refs.loading.startLoading();
+ this.queryEdpLoading=true;
if(endpoint){
this.curEndpoint=endpoint;
this.formatTime='';
@@ -1217,8 +1215,7 @@
this.showTableData.push(edpQueryData);
}
this.showTableDataCopy=JSON.stringify(this.showTableData);
- // this.queryEdpLoading=false;
- this.$refs.loading.endLoading();
+ this.queryEdpLoading=false;
this.gutterHandler(".endpoint-query-table"); //控制table右边距
this.showTopBtn2 = false;
this.$nextTick(() => {
@@ -1320,7 +1317,7 @@
this.chartDatas=[];
this.legend=[];
this.graphShow=true;
- setTimeout(()=>{this.queryChartDate();},10)
+ setTimeout(()=>{this.$refs.graphLoading.startLoading();this.queryChartDate();},10)
},
dialogClose:function(){
@@ -1408,9 +1405,10 @@
this.chartOptions.series=this.chartDatas;
this.graphChart.setOption(this.chartOptions);//创建图表
this.$refs.chartScrollbar.update();
+ this.$refs.graphLoading.endLoading();
}
});
- this.$refs.graphLoading.endLoading();
+
})
},
dateChange:function(){
@@ -1421,7 +1419,6 @@
},
initDialog:function(){
- this.$refs.graphLoading.startLoading();
this.graphChart = echarts.init(document.getElementById('viewGraphChart'));
// this.queryChartDate();
// this.chartOptions.legend.data=this.legend;
@@ -1972,4 +1969,19 @@
top:0px !important;
left:2px;
}
+ .endpoint-query-table .el-loading-spinner .circular{
+ width: 42px;
+ height: 42px;
+ animation: loading-rotate 2s linear infinite;
+ display: none;
+ }
+ .endpoint-query-table .el-loading-spinner{
+ background: url(../../../assets/img/loading.gif) no-repeat;
+ background-size: 48px 48px;
+ width: 100%;
+ height: 100%;
+ position: relative;
+ top: 50%;
+ left: 48.5%;
+ }