From 9c59167cdd32cc7a94e75abf46989c2590a1edc7 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Wed, 23 Sep 2020 18:37:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:overview=E5=9C=B0=E5=9B=BE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=8A=A0=E5=87=8F=E6=8E=A7=E5=88=B6=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/stylus/main.scss | 22 +++++++++++++++++++ .../page/dashboard/overview/chart.vue | 6 +++++ .../page/dashboard/overview/overview2.vue | 15 ++++++++++++- 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index b2571239f..f255da836 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -2050,3 +2050,25 @@ li{ max-width: 500px; line-height: 20px; } + +.right-bottom-zoom{ + position: absolute; + top: calc(100% - 100px); + left: calc(100% - 45px); + height: 90px; + width: 35px; + border: 1px solid #E7EAED; + box-shadow: -1px 1px 9px -1px rgba(205,205,205,0.77); + .zoom-option{ + width: 100%; + height: 50%; + opacity: 0.42; + background: #FFF; + align-items: center; + display: flex; + justify-content: center; + } + .zoom-option:hover{ + cursor: pointer; + } +} diff --git a/nezha-fronted/src/components/page/dashboard/overview/chart.vue b/nezha-fronted/src/components/page/dashboard/overview/chart.vue index eadaa7a87..6a711df00 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/chart.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/chart.vue @@ -74,6 +74,12 @@ this.legend=legend.filter((item,index)=>index
{{$t("dashboard.overview.dataCenter.dataCenter")}}
- + +
+
+
+
+
@@ -1145,6 +1150,14 @@ } }); }, + zoomMap:function(val){ + let geo=this.$refs.dataCenterMap.getOption().geo; + if(geo&&geo.length>0){ + let zoom=geo[0].zoom + this.$refs.dataCenterMap.setOption({geo:{zoom:zoom+val}}) + } + console.log(geo) + }, trendTool(type, param1, param2, param3) { if (type == 'difference') { //两个数组的差集 return trendSelectDifference(param1, param2);