湖里大屏(劳务管理):人员类型接口对接
This commit is contained in:
parent
f20bc48e6f
commit
f7a2f91311
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="rightBox">
|
<div class="rightBox">
|
||||||
<div class="rightTop">
|
<div class="rightTop">
|
||||||
<rightTop title="人员类型"></rightTop>
|
<rightTop title="人员类型" :statisticsCount="statisticsCount"></rightTop>
|
||||||
</div>
|
</div>
|
||||||
<div class="rightCenter">
|
<div class="rightCenter">
|
||||||
<rightCenter title="安全培训" :statisticsCount="statisticsCount" />
|
<rightCenter title="安全培训" :statisticsCount="statisticsCount" />
|
||||||
|
|||||||
@ -13,6 +13,9 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "default title"
|
default: "default title"
|
||||||
|
},
|
||||||
|
statisticsCount:{
|
||||||
|
type: Object,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -26,7 +29,7 @@ export default {
|
|||||||
const myChart = echarts.init(this.$refs.myChart);
|
const myChart = echarts.init(this.$refs.myChart);
|
||||||
const option = {
|
const option = {
|
||||||
title:{
|
title:{
|
||||||
text:'1450',
|
text:this.statisticsCount.workercount.totalPerson,
|
||||||
subtext:'在册总人数',
|
subtext:'在册总人数',
|
||||||
x:'48%',
|
x:'48%',
|
||||||
y:'40%',
|
y:'40%',
|
||||||
@ -46,8 +49,8 @@ export default {
|
|||||||
{
|
{
|
||||||
type: "pie",
|
type: "pie",
|
||||||
roseType: "radius",
|
roseType: "radius",
|
||||||
radius: [40, 70],
|
radius: [45, 70],
|
||||||
color:['#43d7b5','#f7d400','#5181f6','#786ff0','#5be2f6'],
|
color:['#5ce2f6','#557ded','#64f8ff'],
|
||||||
left: "center",
|
left: "center",
|
||||||
width: 400,
|
width: 400,
|
||||||
label: {
|
label: {
|
||||||
@ -68,11 +71,9 @@ export default {
|
|||||||
maxSurfaceAngle: 80
|
maxSurfaceAngle: 80
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
{ name: "项目管理人员", value: 210 },
|
{ name: "管理人员", value: this.statisticsCount.workercount.lwPersonTotal },
|
||||||
{ name: "特种作业人员", value: 103 },
|
{ name: "劳务人员", value: this.statisticsCount.workercount.lwAndGlPersonTotal },
|
||||||
{ name: "临时工", value: 52 },
|
{ name: "临时人员", value: this.statisticsCount.workercount.lsPersonTotal },
|
||||||
{ name: "外包工", value: 123 },
|
|
||||||
{ name: "一般作用人员", value: 80 }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user