From 0bdd25b91540c812bb45d130b85b031fee80755e Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Thu, 28 May 2020 11:20:50 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E5=AE=8C=E5=96=84=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 40 +++++++++---------- .../dashboard/admin/components/PanelGroup.vue | 8 ++-- src/views/dashboard/admin/index.vue | 10 ++--- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/main.js b/src/main.js index 556b911..9098f67 100644 --- a/src/main.js +++ b/src/main.js @@ -18,27 +18,27 @@ import './permission' // permission control // import './mock' // simulation data import * as filters from './filters' // global filters -import VueAMap from 'vue-amap' -Vue.use(VueAMap) +// import VueAMap from 'vue-amap' +// Vue.use(VueAMap) -VueAMap.initAMapApiLoader({ - key: '49842c6fe4d24df80871faec2e272a00', - plugin: [ - 'AMap.Geolocation', - 'AMap.Driving', - 'AMap.Walking', - 'AMap.Autocomplete', - 'AMap.PlaceSearch', - 'AMap.Scale', - 'AMap.OverView', - 'AMap.ToolBar', - 'AMap.MapType', - 'AMap.PolyEditor', - 'AMap.CircleEditor' - ], - // 默认高德 sdk 版本为 1.4.4 - v: '1.4.4' -}) +// VueAMap.initAMapApiLoader({ +// key: '49842c6fe4d24df80871faec2e272a00', +// plugin: [ +// 'AMap.Geolocation', +// 'AMap.Driving', +// 'AMap.Walking', +// 'AMap.Autocomplete', +// 'AMap.PlaceSearch', +// 'AMap.Scale', +// 'AMap.OverView', +// 'AMap.ToolBar', +// 'AMap.MapType', +// 'AMap.PolyEditor', +// 'AMap.CircleEditor' +// ], +// // 默认高德 sdk 版本为 1.4.4 +// v: '1.4.4' +// }) Vue.use(Element, { size: 'medium', // set element-ui default size diff --git a/src/views/dashboard/admin/components/PanelGroup.vue b/src/views/dashboard/admin/components/PanelGroup.vue index 71caa0f..02d3cd0 100644 --- a/src/views/dashboard/admin/components/PanelGroup.vue +++ b/src/views/dashboard/admin/components/PanelGroup.vue @@ -7,7 +7,7 @@
Monthly Mosquito
- +
@@ -23,7 +23,7 @@ -
+
@@ -34,7 +34,7 @@
-
+
@@ -52,7 +52,7 @@ import CountTo from 'vue-count-to' export default { props: { - totalCount: Number, + monthAgoCount: Number, dailyCount: Number, onlineCount: Number, offlineCount: Number diff --git a/src/views/dashboard/admin/index.vue b/src/views/dashboard/admin/index.vue index dbf281b..aa94296 100644 --- a/src/views/dashboard/admin/index.vue +++ b/src/views/dashboard/admin/index.vue @@ -4,7 +4,7 @@ { - const logData = response.data - this.totalCount = logData['total_count'] - this.dailyCount = logData['daily_count'] + const data = response.data + this.monthAgoCount = data['month_ago_count'] + this.dailyCount = data['daily_count'] }) }, handleHistoryLine(historyList) {