首页访客项目数量异常

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>
<el-badge :value="operationnumber" class="item">
<el-button
class="projecting"
icon="el-icon-bell"
type="danger"
size="small"
></el-button>
<el-button class="projecting" icon="el-icon-bell" type="danger" size="small"></el-button>
</el-badge>
<div style="font-size: 16px">危险作业</div>
</div>
<div>
<el-badge :value="rpjnumber" class="item">
<el-button
class="projecting"
icon="el-icon-user"
type="success"
size="small"
></el-button>
<el-button class="projecting" icon="el-icon-user" type="success" size="small"></el-button>
</el-badge>
<div style="font-size: 16px">相关方入厂</div>
</div>
<div>
<el-badge :value="visitnumber2" class="item">
<el-button
class="projecting"
icon="el-icon-van"
type="warning"
size="small"
></el-button>
<el-button class="projecting" icon="el-icon-van" type="warning" size="small"></el-button>
</el-badge>
<div style="font-size: 16px">拉送货</div>
</div>
<div>
<el-badge :value="visitnumber" class="item">
<el-button
class="projecting"
icon="el-icon-view"
type="primary"
size="small"
></el-button>
<el-button class="projecting" icon="el-icon-view" type="primary" size="small"></el-button>
</el-badge>
<div style="font-size: 16px">来访</div>
</div>
@ -74,8 +54,7 @@
<div class="item-info">
<div title="正式员工" class="normal">正式员工</div>
<div class="bottom">
<span class="large">{{ userCount.count_employee }}</span
>&nbsp;<span class="normal"></span>
<span class="large">{{ userCount.count_employee }}</span>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
@ -84,8 +63,7 @@
<div class="item-info">
<div title="相关方" class="normal">相关方</div>
<div class="bottom">
<span class="large">{{ userCount.count_remployee }}</span
>&nbsp;<span class="normal"></span>
<span class="large">{{ userCount.count_remployee }}</span>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
@ -94,8 +72,7 @@
<div class="item-info">
<div title="司机" class="normal">货车司机</div>
<div class="bottom">
<span class="large">{{ userCount.count_driver }}</span
>&nbsp;<span class="normal"></span>
<span class="large">{{ userCount.count_driver }}</span>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
@ -104,8 +81,7 @@
<div class="item-info">
<div title="访客" class="normal">访客</div>
<div class="bottom">
<span class="large">{{ userCount.count_visitor }}</span
>&nbsp;<span class="normal"></span>
<span class="large">{{ userCount.count_visitor }}</span>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
@ -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;