湖里大屏(劳务管理):人员类型接口对接

This commit is contained in:
骆乐 2022-08-16 16:01:55 +08:00
parent f20bc48e6f
commit f7a2f91311
2 changed files with 10 additions and 9 deletions

View File

@ -21,7 +21,7 @@
</div>
<div class="rightBox">
<div class="rightTop">
<rightTop title="人员类型"></rightTop>
<rightTop title="人员类型" :statisticsCount="statisticsCount"></rightTop>
</div>
<div class="rightCenter">
<rightCenter title="安全培训" :statisticsCount="statisticsCount" />

View File

@ -13,6 +13,9 @@ export default {
title: {
type: String,
default: "default title"
},
statisticsCount:{
type: Object,
}
},
data() {
@ -26,7 +29,7 @@ export default {
const myChart = echarts.init(this.$refs.myChart);
const option = {
title:{
text:'1450',
text:this.statisticsCount.workercount.totalPerson,
subtext:'在册总人数',
x:'48%',
y:'40%',
@ -46,8 +49,8 @@ export default {
{
type: "pie",
roseType: "radius",
radius: [40, 70],
color:['#43d7b5','#f7d400','#5181f6','#786ff0','#5be2f6'],
radius: [45, 70],
color:['#5ce2f6','#557ded','#64f8ff'],
left: "center",
width: 400,
label: {
@ -68,11 +71,9 @@ export default {
maxSurfaceAngle: 80
},
data: [
{ name: "项目管理人员", value: 210 },
{ name: "特种作业人员", value: 103 },
{ name: "临时工", value: 52 },
{ name: "外包工", value: 123 },
{ name: "一般作用人员", value: 80 }
{ name: "管理人员", value: this.statisticsCount.workercount.lwPersonTotal },
{ name: "劳务人员", value: this.statisticsCount.workercount.lwAndGlPersonTotal },
{ name: "临时人员", value: this.statisticsCount.workercount.lsPersonTotal },
]
}
]