2022-10-17 10:13:22 +08:00
|
|
|
<template>
|
|
|
|
|
<Card title="人员概况">
|
2022-10-17 17:46:04 +08:00
|
|
|
<div class="contentBox">
|
|
|
|
|
<div class="contentTop">
|
|
|
|
|
<div class="img">
|
|
|
|
|
<img src="../assets/images/common/num_skyblue.png" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="contentBtn">
|
2022-12-14 18:53:30 +08:00
|
|
|
<p class="num1">{{statisticsCount.sumNumber}}</p>
|
2022-12-12 13:43:14 +08:00
|
|
|
<p class="text">在场总人数</p>
|
2022-10-17 17:46:04 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="img">
|
|
|
|
|
<img style=" margin-left: 25px;" src="../assets/images/common/icon_hs.png" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="contentBtn">
|
2022-12-14 18:53:30 +08:00
|
|
|
<p class="num2">{{statisticsCount.realNameNumber}}</p>
|
2022-10-17 17:46:04 +08:00
|
|
|
<p class="text">实名制人数</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="contentbut">
|
|
|
|
|
<div class="lw">
|
|
|
|
|
<p>劳务人数</p>
|
2022-12-14 18:53:30 +08:00
|
|
|
<p class="number">{{statisticsCount.lwNumber}}</p>
|
2022-10-17 17:46:04 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="cq">
|
2022-12-14 18:53:30 +08:00
|
|
|
<p>出勤人数</p>
|
2022-12-03 18:06:25 +08:00
|
|
|
<!-- <p class="number">{{ statisticsCount.workercount.jfGlPersonTotal +
|
2022-10-24 09:11:31 +08:00
|
|
|
statisticsCount.workercount.jlGlPersonTotal
|
2022-12-03 18:06:25 +08:00
|
|
|
+ statisticsCount.workercount.yfGlPersonTotal }}</p> -->
|
2022-12-14 18:53:30 +08:00
|
|
|
<p class="number">{{ statisticsCount.attendanceNumber }}</p>
|
2022-10-17 17:46:04 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="tc">
|
2022-12-14 18:53:30 +08:00
|
|
|
<p>退场人数</p>
|
|
|
|
|
<p class="number">{{ statisticsCount.exitNumber }}</p>
|
2022-10-17 17:46:04 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-10-17 10:13:22 +08:00
|
|
|
</Card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-10-17 17:46:04 +08:00
|
|
|
import Card from "../components/Card.vue";
|
2022-10-24 09:11:31 +08:00
|
|
|
import {
|
2022-12-03 18:06:25 +08:00
|
|
|
getWorkerStatisticsCountApi,
|
|
|
|
|
selectUfaceDevStatisticsCountApi,
|
|
|
|
|
selectWorkerManageStatisticsApi,//培训人数
|
2022-10-24 09:11:31 +08:00
|
|
|
} from "@/assets/js/api/company/project";
|
2022-10-17 10:13:22 +08:00
|
|
|
export default {
|
2022-10-24 09:11:31 +08:00
|
|
|
components: { Card },
|
|
|
|
|
data(){
|
|
|
|
|
return{
|
2022-11-07 18:47:58 +08:00
|
|
|
projectSn:"",
|
2022-10-24 09:11:31 +08:00
|
|
|
statisticsCount: {
|
|
|
|
|
currentMonthEducationPerson: 0,
|
|
|
|
|
projectcount: {
|
|
|
|
|
constructionStageCount14: 0,
|
|
|
|
|
constructionStageCount13: 0,
|
|
|
|
|
constructionStageCount15: 0,
|
|
|
|
|
constructionStageCount10: 0,
|
|
|
|
|
constructionStageCount12: 0,
|
|
|
|
|
constructionStageCount11: 0,
|
|
|
|
|
constructionStageCount1: 0,
|
|
|
|
|
saleAcreageTotal: 0,
|
|
|
|
|
constructionStageCount9: 0,
|
|
|
|
|
constructionStageCount8: 0,
|
|
|
|
|
constructionStageCount7: 0,
|
|
|
|
|
constructionStageCount6: 0,
|
|
|
|
|
constructionStageCount5: 0,
|
|
|
|
|
constructionStageCount4: 0,
|
|
|
|
|
constructionStageCount3: 0,
|
|
|
|
|
constructionStageCount2: 0,
|
|
|
|
|
projectNum: 0,
|
|
|
|
|
},
|
|
|
|
|
workercount: {
|
|
|
|
|
lwPersonYesterdayAdd: 0,
|
|
|
|
|
eduPersonTotal: 0,
|
|
|
|
|
jfGlPersonTotal: 0,
|
|
|
|
|
age18: 0,
|
|
|
|
|
age18to25: 0,
|
|
|
|
|
womanPersonTotal: 0,
|
|
|
|
|
lsPersonTotal: 0,
|
|
|
|
|
jlGlPersonTotal: 0,
|
|
|
|
|
age45to60: 0,
|
|
|
|
|
lwPersonTotal: 0,
|
|
|
|
|
manPersonTotal: 0,
|
|
|
|
|
totalPerson: 0,
|
|
|
|
|
age25to35: 0,
|
|
|
|
|
glPersonTotal: 0,
|
|
|
|
|
yfGlPersonTotal: 0,
|
|
|
|
|
avgage: 0,
|
|
|
|
|
age35to45: 0,
|
|
|
|
|
glPersonYesterdayAdd: 0,
|
|
|
|
|
age60: 0,
|
|
|
|
|
},
|
|
|
|
|
devcount: { ufaceDevNum: 0, videoNum: 0, environmentDevNum: 0 },
|
|
|
|
|
presencecount: {
|
|
|
|
|
jfGlPersonTotal: 0,
|
|
|
|
|
age18: 0,
|
|
|
|
|
age18to25: 0,
|
|
|
|
|
womanPersonTotal: 0,
|
|
|
|
|
lsPersonTotal: 0,
|
|
|
|
|
jlGlPersonTotal: 0,
|
|
|
|
|
age45to60: 0,
|
|
|
|
|
lwPersonTotal: 0,
|
|
|
|
|
manPersonTotal: 0,
|
|
|
|
|
totalPerson: 0,
|
|
|
|
|
age25to35: 0,
|
|
|
|
|
glPersonTotal: 0,
|
|
|
|
|
yfGlPersonTotal: 0,
|
|
|
|
|
avgage: 0,
|
|
|
|
|
age35to45: 0,
|
|
|
|
|
age60: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
uFaceData:{
|
|
|
|
|
currentAttendance:{
|
|
|
|
|
glPersonTotal: 0,
|
|
|
|
|
lwPersonTotal: 0
|
|
|
|
|
},yesterdayAttendance:{
|
|
|
|
|
glPersonTotal: 0,
|
|
|
|
|
lwPersonTotal: 0,totalNum: 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created(){
|
2022-11-08 10:59:30 +08:00
|
|
|
this.projectSn = this.$store.state.projectSn
|
2022-10-24 09:11:31 +08:00
|
|
|
this.getWorkerStatisticsCount()
|
2022-12-03 18:06:25 +08:00
|
|
|
this.getSelectWorkerManageStatistics()
|
2022-10-24 09:11:31 +08:00
|
|
|
},
|
|
|
|
|
methods:{
|
2022-12-03 18:06:25 +08:00
|
|
|
//统计企业下项目各人员统计----人员概况模块渲染接口
|
2022-10-24 09:11:31 +08:00
|
|
|
getWorkerStatisticsCount() {
|
2022-11-07 18:47:58 +08:00
|
|
|
getWorkerStatisticsCountApi({ sn: this.projectSn }).then((res) => {
|
2022-12-03 18:06:25 +08:00
|
|
|
console.log('人员概况模块------1',res);
|
|
|
|
|
|
2022-10-24 09:11:31 +08:00
|
|
|
this.statisticsCount = res.result;
|
2022-12-03 18:06:25 +08:00
|
|
|
|
2022-10-24 09:11:31 +08:00
|
|
|
});
|
2022-12-03 18:06:25 +08:00
|
|
|
},
|
|
|
|
|
//出勤人员数据----人员概况模块渲染接口
|
|
|
|
|
getSelectWorkerManageStatistics(){
|
|
|
|
|
selectWorkerManageStatisticsApi({sn: this.projectSn }).then(res=>{
|
|
|
|
|
console.log('出勤人员数据---2',res);
|
|
|
|
|
})
|
2022-10-24 09:11:31 +08:00
|
|
|
},
|
|
|
|
|
//获取人脸设备数据
|
|
|
|
|
getData3(){
|
|
|
|
|
selectUfaceDevStatisticsCountApi({sn:this.searchsn}).then(res=>{
|
|
|
|
|
this.uFaceData=res.result;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
2022-10-17 17:46:04 +08:00
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.contentBox {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding-top: 20px;
|
2022-10-19 17:23:08 +08:00
|
|
|
padding-bottom: 10px;
|
2022-10-17 17:46:04 +08:00
|
|
|
.contentTop {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding-left: 45px;
|
|
|
|
|
display: flex;
|
|
|
|
|
// justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
img {
|
|
|
|
|
height: 56px;
|
|
|
|
|
width: 56px;
|
2022-10-17 10:13:22 +08:00
|
|
|
}
|
2022-10-17 17:46:04 +08:00
|
|
|
.contentBtn {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
margin-right: 34px;
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
.num1 {
|
|
|
|
|
color: #66D4D9;
|
|
|
|
|
}
|
|
|
|
|
.num2 {
|
|
|
|
|
color: #f56c35;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
color: rgb(255, 255, 255);
|
|
|
|
|
font-size: 16px;
|
2022-10-17 10:13:22 +08:00
|
|
|
}
|
2022-10-17 17:46:04 +08:00
|
|
|
}
|
|
|
|
|
.contentbut {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
color: rgb(255, 255, 255);
|
|
|
|
|
.lw,
|
|
|
|
|
.cq,
|
|
|
|
|
.tc {
|
|
|
|
|
width: 102px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-right: 50px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
margin-top: 21px;
|
|
|
|
|
.number {
|
|
|
|
|
height: 43px;
|
|
|
|
|
width: 102px;
|
|
|
|
|
line-height: 43px;
|
|
|
|
|
font-size: 19px;
|
|
|
|
|
background-image: url(../assets/images/common/num_bg.png);
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100%;
|
|
|
|
|
color: #66D4D9;
|
2022-10-17 10:13:22 +08:00
|
|
|
}
|
2022-10-17 17:46:04 +08:00
|
|
|
}
|
|
|
|
|
.lw{
|
|
|
|
|
margin-left: 40px;
|
2022-10-17 10:13:22 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|