From 01d10de71ebe88575a20ebafa7850c7cb4e594e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Tue, 28 Mar 2023 10:21:49 +0800 Subject: [PATCH] =?UTF-8?q?CN-950:=20NetworkOverview=E9=A1=B5=EF=BC=8C?= =?UTF-8?q?=E4=B8=8B=E9=92=BB=E5=90=8E=E9=A1=B6=E9=83=A8=E6=97=A0metric?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/constants.js | 1 + src/views/charts2/Panel.vue | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/utils/constants.js b/src/utils/constants.js index 1e374637..b7828cba 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -55,6 +55,7 @@ export const fromRoute = { /* panel类别和名称之间的映射 */ export const panelTypeAndRouteMapping = { networkOverview: 1, + networkOverviewDrillDown: 13, networkAppPerformance: 2, dnsServiceInsights: 3, ipEntityDetail: 4, diff --git a/src/views/charts2/Panel.vue b/src/views/charts2/Panel.vue index 4e8cfca2..fc3464d7 100644 --- a/src/views/charts2/Panel.vue +++ b/src/views/charts2/Panel.vue @@ -15,7 +15,7 @@ v-model="metric" placeholder="" popper-class="common-select" - v-if="panelType === panelTypeAndRouteMapping.networkOverview" + v-if="showMetric" :popper-append-to-body="false" @change="metricChange" > @@ -99,6 +99,10 @@ export default { // npmThirdLevelMenuScore () { // return this.$store.getters.getNpmThirdLevelMenuScore // } + // 显示顶部的Metric单位选项标识 + showMetric () { + return this.panelType === panelTypeAndRouteMapping.networkOverview || this.panelType === panelTypeAndRouteMapping.networkOverviewDrillDown + } }, watch: { // npmThirdLevelMenuScore: {