From 25a862442ad95446f410caca3c4e13e3316ab43b Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 6 Apr 2023 13:51:03 +0800 Subject: [PATCH] upup --- src/api/dashboard.js | 29 +- src/api/report/index.js | 9 + src/styles/iconfont.css | 14 +- src/views/dashboard/components/PanelGroup.vue | 142 ++-- src/views/dashboard/index.vue | 43 +- src/views/gate/visitlist.vue | 287 +++++--- src/views/visit/component/addCommon copy.vue | 660 ++++++++++++++++++ src/views/visit/component/addCommon.vue | 84 ++- src/views/visit/component/showVisit.vue | 8 +- 9 files changed, 1021 insertions(+), 255 deletions(-) create mode 100644 src/views/visit/component/addCommon copy.vue diff --git a/src/api/dashboard.js b/src/api/dashboard.js index 858d041..cfb3f79 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -1,26 +1,11 @@ import request from '@/utils/request' - -export function getCounts() { - return request({ - url: '/api/admin/get-counts', - method: 'get' - }) -} - - -export function getChartsData(params) { - return request({ - url: '/api/admin/get-charts-data', - method: 'get', - params: params - }) -} -export function getChartsHome(params) { - return request({ - url: '/api/admin/chart/home', - method: 'get', - params: params - }) + +export function getChartsHome(params){ + return request({ + url:'/api/admin/chart/home', + method:'get', + params + }) } diff --git a/src/api/report/index.js b/src/api/report/index.js index db8a51c..4b6ae29 100644 --- a/src/api/report/index.js +++ b/src/api/report/index.js @@ -23,3 +23,12 @@ export function carList(params){ params }) } + +export function homeList(params){ + return request({ + url:'/api/admin/chart/home', + method:'get', + params + }) +} + diff --git a/src/styles/iconfont.css b/src/styles/iconfont.css index bf1d02d..75dafe1 100644 --- a/src/styles/iconfont.css +++ b/src/styles/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 3929791 */ - src: url('//at.alicdn.com/t/c/font_3929791_iu3lev7rupa.woff2?t=1678430674262') format('woff2'), - url('//at.alicdn.com/t/c/font_3929791_iu3lev7rupa.woff?t=1678430674262') format('woff'), - url('//at.alicdn.com/t/c/font_3929791_iu3lev7rupa.ttf?t=1678430674262') format('truetype'); + src: url('//at.alicdn.com/t/c/font_3929791_sbvx2wsy0lk.woff2?t=1680504085128') format('woff2'), + url('//at.alicdn.com/t/c/font_3929791_sbvx2wsy0lk.woff?t=1680504085128') format('woff'), + url('//at.alicdn.com/t/c/font_3929791_sbvx2wsy0lk.ttf?t=1680504085128') format('truetype'); } .iconfont { @@ -13,6 +13,14 @@ -moz-osx-font-smoothing: grayscale; } +.icon-yunshuzhongwuliu-xianxing:before { + content: "\e882"; +} + +.icon-shigongdi:before { + content: "\e628"; +} + .icon-cheliangdangan:before { content: "\e616"; } diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index a866905..8092427 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -4,17 +4,24 @@
普通访客 - +
总人数/总入厂人数
-
- 3000 - 1500 +
+ + + + + + +
-
核销比:50%
+
核销比:{{toCaculateper(totaldata.common_visit.enter_visit,totaldata.common_visit.total)}}
@@ -22,10 +29,16 @@
- 80 - 40 + + + + + +
-
核销比:50%
+
核销比:{{toCaculateper(totaldata.common_visit.today_enter_visit,totaldata.common_visit.today_total)}}
@@ -34,17 +47,23 @@
施工访客 - +
总人数/总核销人数
- 3000 - 1500 + + + + + +
-
核销比:50%
+
核销比:{{toCaculateper(totaldata.work_visit.enter_visit,totaldata.work_visit.total)}}
@@ -52,55 +71,40 @@
- 80 - 40 + + + + + +
-
核销比:50%
+
核销比:{{toCaculateper(totaldata.work_visit.today_enter_visit,totaldata.work_visit.today_total)}}
- -
物流车辆 - +
总预约数/总核销人数
- 3000 - 1500 + + + + + +
-
核销比:50%
+
核销比:{{toCaculateper(totaldata.car_visit.enter_visit,totaldata.car_visit.total)}}
@@ -108,10 +112,16 @@
- 80 - 40 + + + + + +
-
核销比:50%
+
核销比:{{toCaculateper(totaldata.work_visit.today_enter_visit,totaldata.car_visit.today_total)}}
@@ -133,26 +143,24 @@ type: Object, default: { - "business": { - "server_money_total": 0, - "nurse_money_total": 0, - "remain_money_total": 0 - }, - "person_efficiency": { - "server_time_total": "0", - "expect": 0, - "act": 0 - }, - "customer": { - "active": 0, - "add": 0, - "wash": 0 + "common_visit": { + "enter_visit": 0, + "today_enter_visit": 0, + "today_total": 0, + "total":0 }, - "order": { - "server_total": 0, - "cycle_total": 0, - "unit_total": 0 + "work_visit": { + "enter_visit": 0, + "today_enter_visit": 0, + "today_total": 0, + "total":0 }, + "car_visit": { + "enter_visit": 0, + "today_enter_visit": 0, + "today_total": 0, + "total":0 + } } } }, diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 7f58d0e..7cac527 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,6 +1,6 @@ --> -