diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index d29b543a0..ebfdc4ad6 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -1779,7 +1779,7 @@ li{ line-height: 25px !important; } -.el-textarea textarea { +.el-textarea:not(.not-fixed-height) textarea { height: 140px !important; } .nz-message .el-textarea textarea { diff --git a/nezha-fronted/src/components/charts/chart-detail.vue b/nezha-fronted/src/components/charts/chart-detail.vue index 5f6c24922..d2f221a75 100644 --- a/nezha-fronted/src/components/charts/chart-detail.vue +++ b/nezha-fronted/src/components/charts/chart-detail.vue @@ -390,6 +390,7 @@ show:true, } }); + console.info(labels) return labels; }, replaceSplit(key){ diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue index 14ccd5bc6..ad8470490 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue @@ -67,7 +67,7 @@ - + @@ -186,8 +186,9 @@ }, /*图表相关操作--start*/ toAddChart: function () { + this.rightBox.show = true; this.$refs.addChartModal.setTitle(this.$t("dashboard.panel.createChartTitle")); - this.$refs.addChartModal.show(true); + //this.$refs.addChartModal.show(true); this.$refs.addChartModal.createData(this.panelId); //初始化创建图表需要的初始数据 }, // 切换tab diff --git a/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue b/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue index d2ef0dda3..cdadfaf83 100644 --- a/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue @@ -28,10 +28,17 @@
{{alertRule.alertName}}
- + + @@ -122,14 +129,22 @@ - - diff --git a/nezha-fronted/src/components/page/dashboard/explore/explore.vue b/nezha-fronted/src/components/page/dashboard/explore/explore.vue index 4fd188a86..67ca20388 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/explore.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/explore.vue @@ -35,6 +35,8 @@ :key="promqlKeys[index-1]" :expression-list="expressions" :index="index-1" + :styleType="1" + :plugins="['metric-selector', 'metric-input', 'add', 'remove']" @change="expressionChange" @addExpression="addExpression" @removeExpression="removeExpression" @@ -191,7 +193,7 @@ instance_cpu_time_ns{app="fox", proc="widget", rev="4d3a513", env="prod", job="c - +
-
- - - Metric   - - -
-
- - -
{{errorMsg}}
-
{{appendMsg}}
-
+ + + +
-
+
-
-
+
+
- +
+
+
+
@@ -36,7 +62,9 @@ }, props:{ index:{type:Number}, - expressionList:{} + expressionList:{}, + plugins: {type: Array}, + styleType: Number }, data(){ return { @@ -149,7 +177,7 @@ } - diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 709d82caa..6b6485b69 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -104,7 +104,7 @@ - + @@ -290,9 +290,11 @@ }, /*图表相关操作--start*/ toAddChart: function () { - this.$refs.addChartModal.setTitle(this.$t("dashboard.panel.createChartTitle")); - this.$refs.addChartModal.show(true); - this.$refs.addChartModal.createData(this.showPanel.id); //初始化创建图表需要的初始数据 + this.rightBox.show = true; + this.$nextTick(() => { + this.$refs.addChartModal.setTitle(this.$t("dashboard.panel.createChartTitle")); + this.$refs.addChartModal.createData(this.showPanel.id); //初始化创建图表需要的初始数据 + }); }, scrollbarHeightHandler() { setTimeout(() => { @@ -316,9 +318,11 @@ }, // 编辑图表信息,打开编辑弹窗 editData(data) { - this.$refs.addChartModal.setTitle(this.$t("dashboard.panel.editChartTitle")); - this.$refs.addChartModal.show(true); - this.$refs.addChartModal.editData(data, this.showPanel.id); + this.rightBox.show = true; + this.$nextTick(() => { + this.$refs.addChartModal.setTitle(this.$t("dashboard.panel.editChartTitle")); + this.$refs.addChartModal.editData(data, this.showPanel.id); + }); }, // 移除图表:弹出确认框询问 removeData(data,from) {