fix:query_range接口start end 时间改为unit timestemp

This commit is contained in:
wangwenrui
2020-05-15 14:54:51 +08:00
parent 97f50ff44f
commit b374f52050
14 changed files with 38 additions and 20 deletions

View File

@@ -484,7 +484,7 @@
}
let axiosArr=[];
let queryParam = this.promQueryParamConvert(obj);
axiosArr.push(axios.get("/prom/api/v1/query_range?query="+queryParam+"&start="+start+"&end="+end+"&step="+step));
axiosArr.push(axios.get("/prom/api/v1/query_range?query="+queryParam+"&start="+this.$stringTimeParseToUnix(start)+"&end="+this.$stringTimeParseToUnix(end)+"&step="+step));
this.legend = [];
this.chartDatas = [];
axios.all(axiosArr).then(res =>{