湖里大屏(首页概览):人员概览接口对接

This commit is contained in:
骆乐 2022-08-18 10:04:26 +08:00
parent 84ac880d0f
commit 21dbd97024

View File

@ -8,7 +8,7 @@
<img src="@/assets/images/projectImg/num_purple.png" />
<div class="info">
<div class="num1">
{{ 363 }}
{{ statisticsCount.presencecount.totalPerson }}
</div>
<!-- 实名制人数 -->
<div class="label label1">
@ -20,7 +20,7 @@
<img src="@/assets/images/projectImg/num_skyblue.png" />
<div class="info">
<div class="num2">
{{ 70 }}
{{ statisticsCount.presencecount.lwPersonTotal }}
</div>
<!-- 在场人数 -->
<div class="label">
@ -46,8 +46,8 @@
<div class="person">
<div class="person-info">
<div class="person-rate">
<span style="color:rgb(53, 131, 153);">{{ 16 }}</span
>/{{ 16 }}
<span style="color:rgb(53, 131, 153);">{{ statisticsCount.presencecount.jfGlPersonTotal }}</span
>/{{ statisticsCount.workercount.jfGlPersonTotal }}
</div>
<div class="person-label">
<!-- 监理人员 -->{{ $t('message.dataBoard.PartyAPersonnel') }}
@ -57,8 +57,8 @@
<div class="person">
<div class="person-info">
<div class="person-rate">
<span style="color:rgb(53, 131, 153);">{{ 14 }}</span
>/{{ 14 }}
<span style="color:rgb(53, 131, 153);">{{ statisticsCount.presencecount.jlGlPersonTotal }}</span
>/{{ statisticsCount.workercount.jlGlPersonTotal }}
</div>
<div class="person-label">
<!-- 甲方人员 -->{{ $t('message.dataBoard.supervisoryStaff') }}
@ -68,8 +68,8 @@
<div class="person">
<div class="person-info">
<div class="person-rate">
<span style="color:rgb(53, 131, 153);">{{ 19 }}</span
>/{{ 26 }}
<span style="color:rgb(53, 131, 153);">{{ statisticsCount.presencecount.yfGlPersonTotal }}</span
>/{{ statisticsCount.workercount.yfGlPersonTotal }}
</div>
<div class="person-label">
<!-- 乙方人员 -->{{ $t('message.dataBoard.PartyBPersonnel') }}
@ -94,9 +94,25 @@
</template>
<script>
import { getWorkerStatisticsCountApi } from '@/assets/js/api/company/project'
export default {
data() {
return {
statisticsCount: {
currentMonthEducationPerson: 0,
workercount: {
jfGlPersonTotal: 0,
jlGlPersonTotal: 0,
lwPersonTotal: 0,
totalPerson: 0,
},
presencecount: {
jfGlPersonTotal: 0,
jlGlPersonTotal: 0,
lwPersonTotal: 0,
totalPerson: 0,
}
},
};
},
props: {
@ -104,6 +120,18 @@ export default {
type: String,
default: "default title"
}
},
created(){
this.getWorkerCount();
},
methods:{
getWorkerCount() {
getWorkerStatisticsCountApi({ sn: this.$store.state.projectSn }).then(
(res) => {
console.log('人员概览',res)
this.statisticsCount = res.result
})
}
}
}
</script>