From 21af829654d1b2e09c604012b900e2a848ac29bc Mon Sep 17 00:00:00 2001 From: zyh Date: Fri, 1 Jul 2022 15:42:08 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1992=20feat=EF=BC=9Aexplore=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=E8=A1=A8=E8=BE=BE=E5=BC=8F=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=90=AF=E7=94=A8=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/dashboard/explore/exploreItem.vue | 455 ++++++++++-------- .../page/dashboard/explore/promqlInput.vue | 47 +- 2 files changed, 275 insertions(+), 227 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue index 3b1ab336f..e5b2ba1af 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue @@ -29,27 +29,27 @@ - + @@ -60,15 +60,17 @@ :from-father-data="true" :metricOptionsParent="metricOptions" v-for="index of promqlKeys.length" - :id="promqlKeys[index-1]" + :id="promqlKeys[index-1].id" :pqid="tabIndex.toString()" - :key="promqlKeys[index-1]" + :key="promqlKeys[index-1].id" :ref="'promql-'+(index-1)" :expression-list="expressions" + :enable="promqlKeys[index-1].enable" :index="index-1" - :plugins="['metric-selector', 'metric-input', 'add', 'remove', 'copy']" + :plugins="['metric-selector', 'metric-input', 'add', 'remove', 'copy','enable']" :styleType="1" type="metric" + @enableExpression="enableExpression" @addExpression="addExpression" @copyExpression="copyExpression" @removeExpression="removeExpression" @@ -78,15 +80,17 @@