diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue index 1f1b69e1b..341c59690 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue @@ -142,7 +142,7 @@ url:'', threshold:'', }, - elements:[], + elements:[{expression: "", legend: "", type: "expert", id: ""}], panel: '', sync: 0 }, diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index b101f244c..d87ec9288 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -331,7 +331,7 @@   - + {{item.label}} @@ -382,6 +382,7 @@ @@ -426,6 +427,7 @@
@@ -937,7 +939,7 @@ sync: this.editChart.sync }; if(this.editChart.type === 'singleStat'){ - params.param.statistics=this.statistics; + // params.param.statistics=this.statistics; } else { delete params.param.statistics; } @@ -1037,7 +1039,7 @@ return ; } if(this.editChart.type == 'singleStat'){ - this.$set(this.editChart.param, "statistics", this.statistics); + // this.$set(this.editChart.param, "statistics", this.statistics); } else { delete this.editChart.param.statistics; } @@ -1436,7 +1438,7 @@ sync: this.editChart.sync }; if(this.editChart.type === 'singleStat'){ - params.param.statistics=this.statistics; + // params.param.statistics=this.statistics; params.param.valueMapping=this.editChart.param.valueMapping; } else { delete params.param.statistics; diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 43d2dda69..d08698db5 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -123,7 +123,7 @@ import pickTime from "../../common/pickTime"; import exportXLSX from "../../common/exportXLSX"; import selectPanel from "../../common/popBox/selectPanel"; - + export default { name: "panel", data() { @@ -159,7 +159,7 @@ url:'', threshold:'', }, - elements:[], + elements:[{expression: "", legend: "", type: "expert", id: ""}], panel: '', sync: 0 },