From b7c1b02760e64e66e12302ab7a7d4b7f424e3180 Mon Sep 17 00:00:00 2001
From: wally <18603454788@163.com>
Date: Mon, 15 Nov 2021 21:34:17 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AE=BE=E5=A4=87=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E9=A2=9C=E8=89=B2=E8=B0=83=E6=95=B4;2.=E8=BF=9C?=
=?UTF-8?q?=E5=8A=A8=E5=8F=82=E6=95=B0=E5=88=A0=E9=99=A44=E4=B8=AA?=
=?UTF-8?q?=E9=87=91=E5=B1=9E=E9=80=9A=E9=81=93=E7=B1=BB=E5=9E=8B;?=
=?UTF-8?q?=E5=AE=9A=E6=97=B6=E6=95=B0=E6=8D=AE=E6=8E=92=E5=BA=8F,?=
=?UTF-8?q?=E7=9B=90=E5=88=86=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=94=B9;?=
=?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE=E4=B8=8E=E7=BB=9F=E8=AE=A1?=
=?UTF-8?q?=E5=AF=BC=E8=88=AA=E9=A1=BA=E5=BA=8F=E4=BA=92=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/apis/index.js | 6 +--
.../config/function-config-pending.vue | 35 +------------
.../overview/chart-device-detail.vue | 50 ++++++++++++++-----
...data-report.vue => stastistical-chart.vue} | 0
src/config/config.js | 4 --
src/routers/index.js | 22 ++++----
src/utils/overview.js | 24 +++++++--
src/views/config.vue | 2 +-
src/views/data-realtime.vue | 37 +++++++-------
src/views/statistical-report.vue | 4 +-
10 files changed, 95 insertions(+), 89 deletions(-)
rename src/components/statistical/{data-report.vue => stastistical-chart.vue} (100%)
diff --git a/src/apis/index.js b/src/apis/index.js
index 3f460aa..1b7f8f2 100644
--- a/src/apis/index.js
+++ b/src/apis/index.js
@@ -19,10 +19,10 @@ export const getDevicesCount = () => {
setTimeout(() => {
resolve({
total: 100,
- online: 10,
- offline: 90,
+ online: 90,
+ offline: 10,
fault: 10,
- warning: 5,
+ warning: 15,
});
}, 100);
});
diff --git a/src/components/config/function-config-pending.vue b/src/components/config/function-config-pending.vue
index 1bf03d4..9937a26 100644
--- a/src/components/config/function-config-pending.vue
+++ b/src/components/config/function-config-pending.vue
@@ -69,37 +69,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -163,11 +132,9 @@ import cloneDeep from 'lodash/cloneDeep';
import isDate from 'lodash/isDate';
import { createConfigFunction, getConfigAppliedFunction } from 'apis';
import Refresh from 'components/config/refresh.vue';
-import { corrosiveTypes, functionConfig } from '@/config/config';
+import { functionConfig } from '@/config/config';
const data = ref(functionConfig);
-// 金属腐蚀的类型
-const types = ref(corrosiveTypes);
const functionForm = ref(null); // form
const store = useStore();
diff --git a/src/components/overview/chart-device-detail.vue b/src/components/overview/chart-device-detail.vue
index 598ae7a..729621a 100644
--- a/src/components/overview/chart-device-detail.vue
+++ b/src/components/overview/chart-device-detail.vue
@@ -1,38 +1,64 @@
-
+
在线数量
- 12
+ {{ count.online }}
离线数量
- 12
-
-
+
{{ count.offline }}
+
- 故障数量
- 12
+ 报警数量
+ {{ count.warning }}
- 报警数量
- 12
+ 故障数量
+ {{ count.fault }}
+
+