NEZ-3180 fix:Dashboard 页面 query_range 时间参数与上方时间选择器展示不一致

This commit is contained in:
zhangyu
2023-09-08 15:18:23 +08:00
parent cc6f3883d2
commit 3cf58c72e8
5 changed files with 74 additions and 26 deletions

View File

@@ -124,8 +124,12 @@ export default {
},
reload () {
this.position.show = false
const endTime = new Date().getTime()
const startTime = endTime - 60 * this.params.timeType * 1000
let endTime = new Date().getTime()
let startTime = endTime - 60 * this.params.timeType * 1000
if (this.isChart) {
startTime = this.timeRange[0]
endTime = this.timeRange[1]
}
this.getQueryValues(this.querysArray, startTime, endTime).then((arr) => {
this.clacTopoData(this.$lodash.cloneDeep(this.topoData), arr).then((data) => {
if (!getTopology(this.meta2dId)) {