fix:修改 chartType = log 数据显示不正常的问题

This commit is contained in:
zhangyu
2022-01-07 09:33:15 +08:00
parent 39302d4c46
commit 750738e2ab
2 changed files with 9 additions and 0 deletions

View File

@@ -91,6 +91,9 @@ export default {
// legend += 'Previous '
alias += 'Previous '
}
if (!data.metric) {
data.metric = data.stream
}
if (data.metric.__name__) {
legend += `${data.metric.__name__}{`
}

View File

@@ -190,6 +190,9 @@ export default {
if (element.filter) {
query += `&filter=${element.filter}`
}
if (this.chartInfo.datasource === 'logs') {
query += '&format=1'
}
// if (isChartPie(this.chartInfo.type)) {
// query += `&statistics=${this.chartInfo.param.statistics || 'last'}`
// }
@@ -208,6 +211,9 @@ export default {
if (element.filter) {
query += `&filter=${element.filter}`
}
if (this.chartInfo.datasource === 'logs') {
query += '&format=1'
}
// if (isChartPie(this.chartInfo.type)) {
// query += `&statistics=${this.chartInfo.param.statistics || 'last'}`
// }