fix:修改 chartType = log 数据显示不正常的问题
This commit is contained in:
@@ -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__}{`
|
||||
}
|
||||
|
||||
@@ -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'}`
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user