From f7a2f91311137f5c17c94b8ba18c3df5a483cc17 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=AA=86=E4=B9=90?= <342503599@qq.com>
Date: Tue, 16 Aug 2022 16:01:55 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B9=96=E9=87=8C=E5=A4=A7=E5=B1=8F(=E5=8A=B3?=
=?UTF-8?q?=E5=8A=A1=E7=AE=A1=E7=90=86):=E4=BA=BA=E5=91=98=E7=B1=BB?=
=?UTF-8?q?=E5=9E=8B=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../projectAdmin/jlw/laborManage/index.vue | 2 +-
.../projectAdmin/jlw/laborManage/rightTop.vue | 17 +++++++++--------
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/views/projectAdmin/jlw/laborManage/index.vue b/src/views/projectAdmin/jlw/laborManage/index.vue
index 94b847bf..93feb5e8 100644
--- a/src/views/projectAdmin/jlw/laborManage/index.vue
+++ b/src/views/projectAdmin/jlw/laborManage/index.vue
@@ -21,7 +21,7 @@
-
+
diff --git a/src/views/projectAdmin/jlw/laborManage/rightTop.vue b/src/views/projectAdmin/jlw/laborManage/rightTop.vue
index 19edfb5a..fceaaa9d 100644
--- a/src/views/projectAdmin/jlw/laborManage/rightTop.vue
+++ b/src/views/projectAdmin/jlw/laborManage/rightTop.vue
@@ -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 },
]
}
]