From ab693a92e8729f8be2fe4ed0952669d68e609352 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Tue, 16 Nov 2021 15:58:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=AE=BE=E5=A4=87=E6=A6=82=E8=A7=88):?= =?UTF-8?q?=20=E8=AE=BE=E5=A4=87=E6=A6=82=E8=A7=88=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/index.js | 1 + .../overview/chart-device-count.vue | 2 +- .../overview/chart-device-detail.vue | 18 +++++- src/utils/overview.js | 56 ++++++++++++++++--- 4 files changed, 68 insertions(+), 9 deletions(-) diff --git a/src/apis/index.js b/src/apis/index.js index 1b7f8f2..753797c 100644 --- a/src/apis/index.js +++ b/src/apis/index.js @@ -23,6 +23,7 @@ export const getDevicesCount = () => { offline: 10, fault: 10, warning: 15, + normal: 65, }); }, 100); }); diff --git a/src/components/overview/chart-device-count.vue b/src/components/overview/chart-device-count.vue index 5e12fdc..9f15aaf 100644 --- a/src/components/overview/chart-device-count.vue +++ b/src/components/overview/chart-device-count.vue @@ -1,5 +1,5 @@