fix: 修复endpoint-query改时间数据不刷新的问题
This commit is contained in:
@@ -448,6 +448,7 @@
|
||||
axiosArr.push(axios.get("/prom/api/v1/query_range?query="+endpoint.element+"&start="+start+"&end="+end+"&step="+step));
|
||||
}
|
||||
this.legend=[];
|
||||
this.chartDatas = [];
|
||||
axios.all(axiosArr).then(res =>{
|
||||
res.forEach((response,promIndex)=>{
|
||||
if (response.status == 200) {
|
||||
|
||||
@@ -517,7 +517,6 @@
|
||||
}
|
||||
}
|
||||
this.moduleList = response.data.list;
|
||||
console.info(this.moduleList)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -299,6 +299,11 @@
|
||||
|
||||
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
|
||||
},
|
||||
clearChart() {
|
||||
if(this.chart) {
|
||||
this.chart.clear();
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.chart=echarts.init(document.getElementById(this.chartId));
|
||||
|
||||
@@ -467,7 +467,6 @@
|
||||
|
||||
// this.$refs.projectLeft.setActiveNames([]);
|
||||
}else{
|
||||
console.info(this.currentProject)
|
||||
this.currentProjectTitle=this.currentProject.name+"-"+this.currentProject.id
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user