220 lines
5.7 KiB
Vue
Raw Normal View History

2022-10-17 10:13:22 +08:00
<template>
<Card title="人员概况">
<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>
</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>
<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>
</div>
<div class="cq">
2022-12-14 18:53:30 +08:00
<p>出勤人数</p>
<!-- <p class="number">{{ statisticsCount.workercount.jfGlPersonTotal +
statisticsCount.workercount.jlGlPersonTotal
+ statisticsCount.workercount.yfGlPersonTotal }}</p> -->
2022-12-14 18:53:30 +08:00
<p class="number">{{ statisticsCount.attendanceNumber }}</p>
</div>
<div class="tc">
2022-12-14 18:53:30 +08:00
<p>退场人数</p>
<p class="number">{{ statisticsCount.exitNumber }}</p>
</div>
</div>
</div>
2022-10-17 10:13:22 +08:00
</Card>
</template>
<script>
import Card from "../components/Card.vue";
import {
getWorkerStatisticsCountApi,
selectUfaceDevStatisticsCountApi,
selectWorkerManageStatisticsApi,//培训人数
} from "@/assets/js/api/company/project";
2022-10-17 10:13:22 +08:00
export default {
components: { Card },
data(){
return{
projectSn:"",
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
this.getWorkerStatisticsCount()
this.getSelectWorkerManageStatistics()
},
methods:{
//统计企业下项目各人员统计----人员概况模块渲染接口
getWorkerStatisticsCount() {
getWorkerStatisticsCountApi({ sn: this.projectSn }).then((res) => {
console.log('人员概况模块------1',res);
this.statisticsCount = res.result;
});
},
//出勤人员数据----人员概况模块渲染接口
getSelectWorkerManageStatistics(){
selectWorkerManageStatisticsApi({sn: this.projectSn }).then(res=>{
console.log('出勤人员数据---2',res);
})
},
//获取人脸设备数据
getData3(){
selectUfaceDevStatisticsCountApi({sn:this.searchsn}).then(res=>{
this.uFaceData=res.result;
})
},
}
};
</script>
<style lang="less" scoped>
.contentBox {
box-sizing: border-box;
padding-top: 20px;
padding-bottom: 10px;
.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
}
.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
}
}
.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
}
}
.lw{
margin-left: 40px;
2022-10-17 10:13:22 +08:00
}
}
}
</style>