首页访客项目数量异常

This commit is contained in:
caoqianming 2022-10-27 18:19:52 +08:00
parent 3a79888312
commit 48fc7dcfed
1 changed files with 24 additions and 34 deletions

View File

@ -10,45 +10,25 @@
<div class="card-body"> <div class="card-body">
<div> <div>
<el-badge :value="operationnumber" class="item"> <el-badge :value="operationnumber" class="item">
<el-button <el-button class="projecting" icon="el-icon-bell" type="danger" size="small"></el-button>
class="projecting"
icon="el-icon-bell"
type="danger"
size="small"
></el-button>
</el-badge> </el-badge>
<div style="font-size: 16px">危险作业</div> <div style="font-size: 16px">危险作业</div>
</div> </div>
<div> <div>
<el-badge :value="rpjnumber" class="item"> <el-badge :value="rpjnumber" class="item">
<el-button <el-button class="projecting" icon="el-icon-user" type="success" size="small"></el-button>
class="projecting"
icon="el-icon-user"
type="success"
size="small"
></el-button>
</el-badge> </el-badge>
<div style="font-size: 16px">相关方入厂</div> <div style="font-size: 16px">相关方入厂</div>
</div> </div>
<div> <div>
<el-badge :value="visitnumber2" class="item"> <el-badge :value="visitnumber2" class="item">
<el-button <el-button class="projecting" icon="el-icon-van" type="warning" size="small"></el-button>
class="projecting"
icon="el-icon-van"
type="warning"
size="small"
></el-button>
</el-badge> </el-badge>
<div style="font-size: 16px">拉送货</div> <div style="font-size: 16px">拉送货</div>
</div> </div>
<div> <div>
<el-badge :value="visitnumber" class="item"> <el-badge :value="visitnumber" class="item">
<el-button <el-button class="projecting" icon="el-icon-view" type="primary" size="small"></el-button>
class="projecting"
icon="el-icon-view"
type="primary"
size="small"
></el-button>
</el-badge> </el-badge>
<div style="font-size: 16px">来访</div> <div style="font-size: 16px">来访</div>
</div> </div>
@ -74,8 +54,7 @@
<div class="item-info"> <div class="item-info">
<div title="正式员工" class="normal">正式员工</div> <div title="正式员工" class="normal">正式员工</div>
<div class="bottom"> <div class="bottom">
<span class="large">{{ userCount.count_employee }}</span <span class="large">{{ userCount.count_employee }}</span>&nbsp;<span class="normal"></span>
>&nbsp;<span class="normal"></span>
</div> </div>
</div> </div>
</div> </div>
@ -84,8 +63,7 @@
<div class="item-info"> <div class="item-info">
<div title="相关方" class="normal">相关方</div> <div title="相关方" class="normal">相关方</div>
<div class="bottom"> <div class="bottom">
<span class="large">{{ userCount.count_remployee }}</span <span class="large">{{ userCount.count_remployee }}</span>&nbsp;<span class="normal"></span>
>&nbsp;<span class="normal"></span>
</div> </div>
</div> </div>
</div> </div>
@ -94,8 +72,7 @@
<div class="item-info"> <div class="item-info">
<div title="司机" class="normal">货车司机</div> <div title="司机" class="normal">货车司机</div>
<div class="bottom"> <div class="bottom">
<span class="large">{{ userCount.count_driver }}</span <span class="large">{{ userCount.count_driver }}</span>&nbsp;<span class="normal"></span>
>&nbsp;<span class="normal"></span>
</div> </div>
</div> </div>
</div> </div>
@ -104,8 +81,7 @@
<div class="item-info"> <div class="item-info">
<div title="访客" class="normal">访客</div> <div title="访客" class="normal">访客</div>
<div class="bottom"> <div class="bottom">
<span class="large">{{ userCount.count_visitor }}</span <span class="large">{{ userCount.count_visitor }}</span>&nbsp;<span class="normal"></span>
>&nbsp;<span class="normal"></span>
</div> </div>
</div> </div>
</div> </div>
@ -143,7 +119,6 @@ export default {
this.getManCount(); //$$ this.getManCount(); //$$
this.getOperation(); this.getOperation();
this.getRpj(); this.getRpj();
this.getVisit();
this.getVisit2(); this.getVisit2();
}, },
methods: { methods: {
@ -203,9 +178,14 @@ export default {
// //
getVisit2() { getVisit2() {
this.$API.vm.visit.list 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) => { .then((res) => {
this.visitnumber2 = res.count; 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; height: 45px;
font-size: 25px; font-size: 25px;
} }
.welcome .logo { .welcome .logo {
text-align: center; text-align: center;
} }
@ -261,10 +242,12 @@ export default {
color: var(--el-color-primary); color: var(--el-color-primary);
background: rgba(180, 180, 180, 0.1); background: rgba(180, 180, 180, 0.1);
} }
.item { .item {
margin-top: 10px; margin-top: 10px;
margin-right: 40px; margin-right: 40px;
} }
.tips-item-message { .tips-item-message {
flex: 1; flex: 1;
font-size: 14px; font-size: 14px;
@ -274,11 +257,14 @@ export default {
background: url(/public/img/zuoye.png) no-repeat; background: url(/public/img/zuoye.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.actions { .actions {
text-align: center; text-align: center;
margin: 40px 0 20px 0; margin: 40px 0 20px 0;
} }
.screen-cockpits { .screen-cockpits {
// margin-top: -15px; // margin-top: -15px;
.cockpit-count { .cockpit-count {
.count-list { .count-list {
@ -287,6 +273,7 @@ export default {
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
height: 80px; height: 80px;
.count-list-item { .count-list-item {
width: 33.3333%; width: 33.3333%;
height: 50%; height: 50%;
@ -361,6 +348,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.countTypeWrap { .countTypeWrap {
font-size: 14px; font-size: 14px;
@ -497,12 +485,14 @@ export default {
} }
} }
} }
.card-header { .card-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
height: 24px; height: 24px;
} }
.card-body { .card-body {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;