summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzyh <[email protected]>2023-08-02 10:55:11 +0800
committerzyh <[email protected]>2023-08-02 10:55:11 +0800
commitc4d224530960aa4ac96a9421030673b8148274ea (patch)
treef557b2858fe2d36a7df714f962c0b79827459276
parentb42f3468eca4f468c2b2147dc79a9f64ebcb4e63 (diff)
parentdfdc4c33bff134581d686906817d725391b54d67 (diff)
Merge branch 'dev-3.4' of git.mesalab.cn:nezha/nezha-fronted into dev-3.5dev-3.5
-rw-r--r--nezha-fronted/src/components/chart/panelChart.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/nezha-fronted/src/components/chart/panelChart.vue b/nezha-fronted/src/components/chart/panelChart.vue
index f185c5010..df54f5951 100644
--- a/nezha-fronted/src/components/chart/panelChart.vue
+++ b/nezha-fronted/src/components/chart/panelChart.vue
@@ -469,7 +469,14 @@ export default {
case 'logs': {
this.chartData = []
elements.forEach((element, index) => {
- this.chartData.push(this.dataJson[this.chartInfo.id + '_' + index].data.result)
+ const data = this.dataJson[this.chartInfo.id + '_' + index].data.result.map(item => {
+ this.allDataLength++
+ return {
+ ...item,
+ elements: element
+ }
+ })
+ this.chartData.push(data)
})
break
}