NEZ-3321 fix:Log 图表时间轴精度异常

This commit is contained in:
zyh
2023-11-20 11:19:21 +08:00
parent 507cb5752d
commit e712f42c12
5 changed files with 165 additions and 6 deletions

View File

@@ -612,9 +612,16 @@ export default {
const graphData = this.logData.filter(l => l.resultType === 'matrix')
if (graphData && graphData.length > 0) {
this.$refs.logChart.startLoading()
const promqlInputIndexs = []
const queryExpression = []
let series = []
const legend = []
this.dataJson.data.forEach((item, index) => {
if (item.expression !== '' && item.state) {
promqlInputIndexs.push(index)
queryExpression.push(item.expression)
}
})
this.logData.forEach((response, index) => {
if (response.resultType === 'matrix') {
const data = response.result