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: {