From 8422f5312e85353abfdc276f9d80ac1f27bdb8ce Mon Sep 17 00:00:00 2001 From: quantulr <35954003+quantulr@users.noreply.github.com> Date: Thu, 20 Oct 2022 23:46:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E6=95=B0=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 21 +++++++++++----- src/views/Overview/ProjectPersonCount.vue | 26 +++++++++++++------- src/views/Overview/ProjectTotal.vue | 23 +++++++++++++----- src/views/Overview/index.vue | 29 ++++++++++++++++++----- 4 files changed, 73 insertions(+), 26 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index b0396b4..94b5fea 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,13 +7,22 @@ const routes = [ { path: "/amap", component: () => import("../components/AMap.vue") }, // { path: "/", component: () => import("../views/Overview/index.vue") }, { - path: "/", component: () => import("../views/Layout.vue"), children: [ + path: "/", + component: () => import("../views/Layout.vue"), + children: [ { - path: '', component: () => import('../views/Overview/index.vue') + path: "", + component: () => import("../views/Overview/index.vue"), }, - { path: "monitor", component: () => import("../views/Monitor/index.vue") }, - { path: "/monitor/detail", component: () => import("../views/Monitor/monitor-detail.vue") }, - ] + { + path: "monitor", + component: () => import("../views/Monitor/index.vue"), + }, + { + path: "/monitor/detail", + component: () => import("../views/Monitor/monitor-detail.vue"), + }, + ], }, ]; @@ -23,7 +32,7 @@ const routes = [ const router = createRouter({ // 4. 内部提供了 history 模式的实现。为了简单起见,我们在这里使用 hash 模式。 history: createWebHashHistory(), - routes, // `routes: routes` 的缩写 + routes, }); export default router; diff --git a/src/views/Overview/ProjectPersonCount.vue b/src/views/Overview/ProjectPersonCount.vue index 1e32a3e..bba14d6 100644 --- a/src/views/Overview/ProjectPersonCount.vue +++ b/src/views/Overview/ProjectPersonCount.vue @@ -3,36 +3,46 @@
- 4936 + {{ data.NORMALCOUNT }}
-
人员总数
+
昨日实际出勤人数
- 3405 + {{ data.ABSENTEEISMCOUNT }}
-
实时人数
+
昨日矿工人数
- 4800 + {{ data.ALLCOUNT }}
-
今日出勤人数
+
昨日应出席人数
- 88% + {{ data.LATECOUNT }} +
-
今日出勤率
+
昨日迟到人数