From 48fc7dcfed5962aa4bce6419469d1e3848d24e2d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 27 Oct 2022 18:19:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=AE=BF=E5=AE=A2=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=95=B0=E9=87=8F=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/widgets/components/ticket.vue | 58 ++++++++------------ 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/src/views/home/widgets/components/ticket.vue b/src/views/home/widgets/components/ticket.vue index eeb4a8fe..dd622826 100644 --- a/src/views/home/widgets/components/ticket.vue +++ b/src/views/home/widgets/components/ticket.vue @@ -10,45 +10,25 @@
- +
危险作业
- +
相关方入厂
- +
拉送货
- +
来访
@@ -74,8 +54,7 @@
正式员工
- {{ userCount.count_employee }}  + {{ userCount.count_employee }} 
@@ -84,8 +63,7 @@
相关方
- {{ userCount.count_remployee }}  + {{ userCount.count_remployee }} 
@@ -94,8 +72,7 @@
货车司机
- {{ userCount.count_driver }}  + {{ userCount.count_driver }} 
@@ -104,8 +81,7 @@
访客
- {{ userCount.count_visitor }}  + {{ userCount.count_visitor }} 
@@ -143,7 +119,6 @@ export default { this.getManCount(); //人员统计$$ this.getOperation(); this.getRpj(); - this.getVisit(); this.getVisit2(); }, methods: { @@ -203,9 +178,14 @@ export default { //司机 getVisit2() { this.$API.vm.visit.list - .req({ page: 1, page_size: 1, state: 40, type: 50 }) + .req({ page: 1, page_size: 1, state: 40, purpose: 50 }) .then((res) => { this.visitnumber2 = res.count; + this.$API.vm.visit.list + .req({ page: 1, page_size: 1, state: 40 }) + .then((res2) => { + this.visitnumber = res2.count - this.visitnumber2; + }); }); }, }, @@ -218,6 +198,7 @@ export default { height: 45px; font-size: 25px; } + .welcome .logo { text-align: center; } @@ -261,10 +242,12 @@ export default { color: var(--el-color-primary); background: rgba(180, 180, 180, 0.1); } + .item { margin-top: 10px; margin-right: 40px; } + .tips-item-message { flex: 1; font-size: 14px; @@ -274,11 +257,14 @@ export default { background: url(/public/img/zuoye.png) no-repeat; background-size: 100% 100%; } + .actions { text-align: center; margin: 40px 0 20px 0; } + .screen-cockpits { + // margin-top: -15px; .cockpit-count { .count-list { @@ -287,6 +273,7 @@ export default { justify-content: space-around; align-items: center; height: 80px; + .count-list-item { width: 33.3333%; height: 50%; @@ -361,6 +348,7 @@ export default { display: flex; align-items: center; justify-content: space-between; + .countTypeWrap { font-size: 14px; @@ -497,12 +485,14 @@ export default { } } } + .card-header { display: flex; justify-content: space-between; align-items: center; height: 24px; } + .card-body { display: flex; justify-content: space-around;