NEZ-3185 feat:dashboard promql&logql支持自定义 step

This commit is contained in:
zhangyu
2023-09-11 14:21:41 +08:00
parent 76756146e3
commit 1f0625b988
7 changed files with 44 additions and 13 deletions

View File

@@ -82,7 +82,7 @@ export default {
const meta2dOptions = {
minScale: this.minScale,
// maxScale: 2,
autoAnchor: false,
autoAnchor: false
// disableAnchor: true
}
const meta2d = new window.Meta2d(this.meta2dId, meta2dOptions)
@@ -131,8 +131,12 @@ export default {
startTime = this.timeRange[0]
endTime = this.timeRange[1]
} else if (this.filterTime) {
startTime = this.filterTime[0]
endTime = this.filterTime[1]
startTime = this.momentStrToTimestamp(this.filterTime[0])
endTime = this.momentStrToTimestamp(this.filterTime[1])
}
if (typeof (startTime) == 'string') {
startTime = this.momentStrToTimestamp(this.filterTime[0])
endTime = this.momentStrToTimestamp(this.filterTime[1])
}
this.getQueryValues(this.querysArray, startTime, endTime).then((arr) => {
this.clacTopoData(this.$lodash.cloneDeep(this.topoData), arr).then((data) => {