From d3368c39cfda160bf31f51c7f71d560364ae95ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=9C=E5=BB=BA=E8=B6=85?= <3182967682@qq.com>
Date: Tue, 22 Sep 2020 11:33:00 +0800
Subject: [PATCH] fix
---
.../componments/chart-bar-form/index.vue | 100 ++++++++++++
.../chart/componments/chart-form/index.vue | 6 +-
.../chart/componments/query-form/index.vue | 154 ++++++++++++++++++
src/views/modules/result/chart/index.vue | 21 +--
4 files changed, 267 insertions(+), 14 deletions(-)
create mode 100644 src/views/modules/result/chart/componments/chart-bar-form/index.vue
diff --git a/src/views/modules/result/chart/componments/chart-bar-form/index.vue b/src/views/modules/result/chart/componments/chart-bar-form/index.vue
new file mode 100644
index 0000000..9d8b7d6
--- /dev/null
+++ b/src/views/modules/result/chart/componments/chart-bar-form/index.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
diff --git a/src/views/modules/result/chart/componments/chart-form/index.vue b/src/views/modules/result/chart/componments/chart-form/index.vue
index 5a7d05b..50f165a 100644
--- a/src/views/modules/result/chart/componments/chart-form/index.vue
+++ b/src/views/modules/result/chart/componments/chart-form/index.vue
@@ -36,7 +36,7 @@
legend: {
x: 'center',
y: '85%',
- show: true
+ show: false // 是否展示图例
},
series: {
center: ['50%', '40%'],
@@ -53,6 +53,7 @@
},
label: {
formatter: params => {
+ // if (params.data.value === 0) return ''
return `{a|${params.data.name} (${params.data.value}人})`
},
rich: {
@@ -60,8 +61,9 @@
textAlign: 'center'
}
}
+ },
+ labelLine: {
}
-
}
}
},
diff --git a/src/views/modules/result/chart/componments/query-form/index.vue b/src/views/modules/result/chart/componments/query-form/index.vue
index 844e3e1..b25512b 100644
--- a/src/views/modules/result/chart/componments/query-form/index.vue
+++ b/src/views/modules/result/chart/componments/query-form/index.vue
@@ -1,4 +1,157 @@
+
+
+
条件筛选
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ {{ data.departmentName }}
+ ({{ data.memberCount }})人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/result/chart/index.vue b/src/views/modules/result/chart/index.vue
index 2bd7577..b6ce943 100644
--- a/src/views/modules/result/chart/index.vue
+++ b/src/views/modules/result/chart/index.vue
@@ -3,20 +3,17 @@
-
+
-
+
-
+
-
-
-
-
+
@@ -27,16 +24,17 @@