CN-464 带分位值的单值图bug和改动

This commit is contained in:
hyx
2022-04-06 13:37:20 +08:00
parent cc368519b7
commit a539e27f3f
4 changed files with 36 additions and 15 deletions

View File

@@ -245,6 +245,12 @@ export default {
if (chartParams && chartParams.dataKey) {
if (response.data.result && (response.data.result[chartParams.dataKey] || response.data.result[chartParams.dataKey] === 0)) {
this.chartData = response.data.result[chartParams.dataKey]
} else if (response.data.result && (response.data.result[chartParams.dataKey + 'Avg'] || response.data.result[chartParams.dataKey + 'Avg'] === 0)) {
this.chartData = [{
value: response.data.result[chartParams.dataKey + 'Avg'],
p50: response.data.result[chartParams.dataKey + 'P50'],
p90: response.data.result[chartParams.dataKey + 'P90']
}]
} else {
this.chartData = null
}