|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+<template>
|
|
|
2
|
+ <div class="station-content-wrapper">
|
|
|
3
|
+
|
|
|
4
|
+
|
|
|
5
|
+ <div class="station-content">
|
|
|
6
|
+
|
|
|
7
|
+
|
|
|
8
|
+ <div class="content-row">
|
|
|
9
|
+ <InfoCard title="团队成员">
|
|
|
10
|
+ <div class="team-members-table">
|
|
|
11
|
+ <table>
|
|
|
12
|
+ <thead>
|
|
|
13
|
+ <tr>
|
|
|
14
|
+ <th>部门</th>
|
|
|
15
|
+ <th>员工数量</th>
|
|
|
16
|
+ <th>党员数量</th>
|
|
|
17
|
+ <th>平均年龄</th>
|
|
|
18
|
+ <th>平均工龄</th>
|
|
|
19
|
+ <th>职业资格证书等级</th>
|
|
|
20
|
+ <th>平均升级年龄</th>
|
|
|
21
|
+ <th>综合得分</th>
|
|
|
22
|
+ </tr>
|
|
|
23
|
+ </thead>
|
|
|
24
|
+ <tbody>
|
|
|
25
|
+ <tr>
|
|
|
26
|
+ <td>旅检一部</td>
|
|
|
27
|
+ <td>800</td>
|
|
|
28
|
+ <td>7</td>
|
|
|
29
|
+ <td>25</td>
|
|
|
30
|
+ <td>3</td>
|
|
|
31
|
+ <td>16</td>
|
|
|
32
|
+ <td>3</td>
|
|
|
33
|
+ <td>90</td>
|
|
|
34
|
+ </tr>
|
|
|
35
|
+ <tr>
|
|
|
36
|
+ <td>旅检二部</td>
|
|
|
37
|
+ <td>756</td>
|
|
|
38
|
+ <td>2</td>
|
|
|
39
|
+ <td>28</td>
|
|
|
40
|
+ <td>8</td>
|
|
|
41
|
+ <td>18</td>
|
|
|
42
|
+ <td>5</td>
|
|
|
43
|
+ <td>88</td>
|
|
|
44
|
+ </tr>
|
|
|
45
|
+ <tr>
|
|
|
46
|
+ <td>旅检三部</td>
|
|
|
47
|
+ <td>708</td>
|
|
|
48
|
+ <td>7</td>
|
|
|
49
|
+ <td>25</td>
|
|
|
50
|
+ <td>3</td>
|
|
|
51
|
+ <td>23</td>
|
|
|
52
|
+ <td>3</td>
|
|
|
53
|
+ <td>86</td>
|
|
|
54
|
+ </tr>
|
|
|
55
|
+ </tbody>
|
|
|
56
|
+ </table>
|
|
|
57
|
+ </div>
|
|
|
58
|
+ </InfoCard>
|
|
|
59
|
+ </div>
|
|
|
60
|
+
|
|
|
61
|
+ <div class="content-row">
|
|
|
62
|
+ <InfoCard title="成员基本情况分布">
|
|
|
63
|
+ <div class="member-distribution">
|
|
|
64
|
+ <div class="dist-item">
|
|
|
65
|
+ <h4>性别分布</h4>
|
|
|
66
|
+ <div ref="genderDistChartRef" class="dist-chart"></div>
|
|
|
67
|
+ </div>
|
|
|
68
|
+ <div class="dist-item">
|
|
|
69
|
+ <h4>民族分布</h4>
|
|
|
70
|
+ <div ref="nationDistChartRef" class="dist-chart"></div>
|
|
|
71
|
+ </div>
|
|
|
72
|
+ <div class="dist-item">
|
|
|
73
|
+ <h4>政治面貌分布</h4>
|
|
|
74
|
+ <div ref="politicalDistChartRef" class="dist-chart"></div>
|
|
|
75
|
+ </div>
|
|
|
76
|
+ </div>
|
|
|
77
|
+ </InfoCard>
|
|
|
78
|
+ </div>
|
|
|
79
|
+
|
|
|
80
|
+ <div class="content-row">
|
|
|
81
|
+ <InfoCard title="成员职位情况分布">
|
|
|
82
|
+ <div class="position-distribution">
|
|
|
83
|
+ <div class="dist-item">
|
|
|
84
|
+ <h4>职业资格等级分布</h4>
|
|
|
85
|
+ <div ref="qualificationLevelChartRef" class="dist-chart"></div>
|
|
|
86
|
+ </div>
|
|
|
87
|
+ <div class="dist-item">
|
|
|
88
|
+ <h4>开机年限分布</h4>
|
|
|
89
|
+ <div ref="experienceYearsChartRef" class="dist-chart"></div>
|
|
|
90
|
+ </div>
|
|
|
91
|
+ <div class="dist-item">
|
|
|
92
|
+ <h4>岗位资质分布</h4>
|
|
|
93
|
+ <div ref="positionQualificationChartRef" class="dist-chart"></div>
|
|
|
94
|
+ </div>
|
|
|
95
|
+ </div>
|
|
|
96
|
+ </InfoCard>
|
|
|
97
|
+ </div>
|
|
|
98
|
+ </div>
|
|
|
99
|
+ </div>
|
|
|
100
|
+</template>
|
|
|
101
|
+
|
|
|
102
|
+<script setup>
|
|
|
103
|
+import { ref, onMounted, onUnmounted, nextTick } from 'vue'
|
|
|
104
|
+import * as echarts from 'echarts'
|
|
|
105
|
+import InfoCard from '../../components/card.vue'
|
|
|
106
|
+
|
|
|
107
|
+
|
|
|
108
|
+
|
|
|
109
|
+const props = defineProps({
|
|
|
110
|
+ queryParams: {
|
|
|
111
|
+ type: Object,
|
|
|
112
|
+ default: () => ({})
|
|
|
113
|
+ }
|
|
|
114
|
+})
|
|
|
115
|
+
|
|
|
116
|
+
|
|
|
117
|
+const genderDistChartRef = ref(null)
|
|
|
118
|
+let genderDistChart = null
|
|
|
119
|
+const nationDistChartRef = ref(null)
|
|
|
120
|
+let nationDistChart = null
|
|
|
121
|
+const politicalDistChartRef = ref(null)
|
|
|
122
|
+let politicalDistChart = null
|
|
|
123
|
+const qualificationLevelChartRef = ref(null)
|
|
|
124
|
+let qualificationLevelChart = null
|
|
|
125
|
+const experienceYearsChartRef = ref(null)
|
|
|
126
|
+let experienceYearsChart = null
|
|
|
127
|
+const positionQualificationChartRef = ref(null)
|
|
|
128
|
+let positionQualificationChart = null
|
|
|
129
|
+
|
|
|
130
|
+const initGenderDistChart = () => {
|
|
|
131
|
+ if (!genderDistChartRef.value) return
|
|
|
132
|
+ genderDistChart = echarts.init(genderDistChartRef.value)
|
|
|
133
|
+ const option = {
|
|
|
134
|
+ series: [{
|
|
|
135
|
+ type: 'pie',
|
|
|
136
|
+ radius: ['50%', '70%'],
|
|
|
137
|
+ data: [
|
|
|
138
|
+ { value: 650, name: '女', itemStyle: { color: '#ff9f9f' } },
|
|
|
139
|
+ { value: 750, name: '男', itemStyle: { color: '#7effc4' } }
|
|
|
140
|
+ ],
|
|
|
141
|
+ label: { show: true, color: '#fff', fontSize: 11 },
|
|
|
142
|
+ labelLine: { show: true }
|
|
|
143
|
+ }]
|
|
|
144
|
+ }
|
|
|
145
|
+ genderDistChart.setOption(option)
|
|
|
146
|
+}
|
|
|
147
|
+
|
|
|
148
|
+const initNationDistChart = () => {
|
|
|
149
|
+ if (!nationDistChartRef.value) return
|
|
|
150
|
+ nationDistChart = echarts.init(nationDistChartRef.value)
|
|
|
151
|
+ const option = {
|
|
|
152
|
+ series: [{
|
|
|
153
|
+ type: 'pie',
|
|
|
154
|
+ radius: ['50%', '70%'],
|
|
|
155
|
+ data: [
|
|
|
156
|
+ { value: 615, name: '汉族', itemStyle: { color: '#7effc4' } },
|
|
|
157
|
+ { value: 484, name: '回族', itemStyle: { color: '#4da6ff' } },
|
|
|
158
|
+ { value: 156, name: '其他', itemStyle: { color: '#ffd93d' } }
|
|
|
159
|
+ ],
|
|
|
160
|
+ label: { show: true, color: '#fff', fontSize: 11 },
|
|
|
161
|
+ labelLine: { show: true }
|
|
|
162
|
+ }]
|
|
|
163
|
+ }
|
|
|
164
|
+ nationDistChart.setOption(option)
|
|
|
165
|
+}
|
|
|
166
|
+
|
|
|
167
|
+const initPoliticalDistChart = () => {
|
|
|
168
|
+ if (!politicalDistChartRef.value) return
|
|
|
169
|
+ politicalDistChart = echarts.init(politicalDistChartRef.value)
|
|
|
170
|
+ const option = {
|
|
|
171
|
+ series: [{
|
|
|
172
|
+ type: 'pie',
|
|
|
173
|
+ radius: ['50%', '70%'],
|
|
|
174
|
+ data: [
|
|
|
175
|
+ { value: 410, name: '群众', itemStyle: { color: '#ffd93d' } },
|
|
|
176
|
+ { value: 540, name: '共青团员', itemStyle: { color: '#4da6ff' } },
|
|
|
177
|
+ { value: 270, name: '中共党员', itemStyle: { color: '#ff6b6b' } },
|
|
|
178
|
+ { value: 138, name: '预备党员', itemStyle: { color: '#7effc4' } }
|
|
|
179
|
+ ],
|
|
|
180
|
+ label: { show: true, color: '#fff', fontSize: 11 },
|
|
|
181
|
+ labelLine: { show: true }
|
|
|
182
|
+ }]
|
|
|
183
|
+ }
|
|
|
184
|
+ politicalDistChart.setOption(option)
|
|
|
185
|
+}
|
|
|
186
|
+
|
|
|
187
|
+const initQualificationLevelChart = () => {
|
|
|
188
|
+ if (!qualificationLevelChartRef.value) return
|
|
|
189
|
+ qualificationLevelChart = echarts.init(qualificationLevelChartRef.value)
|
|
|
190
|
+ const option = {
|
|
|
191
|
+ tooltip: {
|
|
|
192
|
+ trigger: 'axis',
|
|
|
193
|
+ backgroundColor: 'rgba(13,80,122,0.95)',
|
|
|
194
|
+ borderColor: '#70CFE7',
|
|
|
195
|
+ textStyle: { color: '#fff' }
|
|
|
196
|
+ },
|
|
|
197
|
+ legend: {
|
|
|
198
|
+ data: ['人数'],
|
|
|
199
|
+ textStyle: { color: '#a0c4ff' },
|
|
|
200
|
+ top: 0
|
|
|
201
|
+ },
|
|
|
202
|
+ grid: {
|
|
|
203
|
+ left: '10%',
|
|
|
204
|
+ right: '10%',
|
|
|
205
|
+ bottom: '15%',
|
|
|
206
|
+ containLabel: true
|
|
|
207
|
+ },
|
|
|
208
|
+ xAxis: {
|
|
|
209
|
+ type: 'category',
|
|
|
210
|
+ data: ['等级1', '等级2', '等级3', '等级4', '等级5'],
|
|
|
211
|
+ axisLabel: { color: '#a0c4ff', fontSize: 10 },
|
|
|
212
|
+ axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } }
|
|
|
213
|
+ },
|
|
|
214
|
+ yAxis: {
|
|
|
215
|
+ type: 'value',
|
|
|
216
|
+ axisLabel: { color: '#a0c4ff' },
|
|
|
217
|
+ axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } },
|
|
|
218
|
+ splitLine: { lineStyle: { color: 'rgba(15,70,250,0.2)' } }
|
|
|
219
|
+ },
|
|
|
220
|
+ series: [{
|
|
|
221
|
+ name: '人数',
|
|
|
222
|
+ type: 'bar',
|
|
|
223
|
+ data: [450, 650, 900, 750, 550],
|
|
|
224
|
+ itemStyle: {
|
|
|
225
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
226
|
+ { offset: 0, color: '#ff6b9d' },
|
|
|
227
|
+ { offset: 1, color: '#ff6b6b' }
|
|
|
228
|
+ ])
|
|
|
229
|
+ },
|
|
|
230
|
+ barWidth: '50%'
|
|
|
231
|
+ }]
|
|
|
232
|
+ }
|
|
|
233
|
+ qualificationLevelChart.setOption(option)
|
|
|
234
|
+}
|
|
|
235
|
+
|
|
|
236
|
+const initExperienceYearsChart = () => {
|
|
|
237
|
+ if (!experienceYearsChartRef.value) return
|
|
|
238
|
+ experienceYearsChart = echarts.init(experienceYearsChartRef.value)
|
|
|
239
|
+ const option = {
|
|
|
240
|
+ tooltip: {
|
|
|
241
|
+ trigger: 'axis',
|
|
|
242
|
+ backgroundColor: 'rgba(13,80,122,0.95)',
|
|
|
243
|
+ borderColor: '#70CFE7',
|
|
|
244
|
+ textStyle: { color: '#fff' }
|
|
|
245
|
+ },
|
|
|
246
|
+ legend: {
|
|
|
247
|
+ data: ['人数'],
|
|
|
248
|
+ textStyle: { color: '#a0c4ff' },
|
|
|
249
|
+ top: 0
|
|
|
250
|
+ },
|
|
|
251
|
+ grid: {
|
|
|
252
|
+ left: '10%',
|
|
|
253
|
+ right: '10%',
|
|
|
254
|
+ bottom: '15%',
|
|
|
255
|
+ containLabel: true
|
|
|
256
|
+ },
|
|
|
257
|
+ xAxis: {
|
|
|
258
|
+ type: 'category',
|
|
|
259
|
+ data: ['0-3', '4-7', '8-11', '12-15', '16-19'],
|
|
|
260
|
+ axisLabel: { color: '#a0c4ff', fontSize: 10 },
|
|
|
261
|
+ axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } }
|
|
|
262
|
+ },
|
|
|
263
|
+ yAxis: {
|
|
|
264
|
+ type: 'value',
|
|
|
265
|
+ axisLabel: { color: '#a0c4ff' },
|
|
|
266
|
+ axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } },
|
|
|
267
|
+ splitLine: { lineStyle: { color: 'rgba(15,70,250,0.2)' } }
|
|
|
268
|
+ },
|
|
|
269
|
+ series: [{
|
|
|
270
|
+ name: '人数',
|
|
|
271
|
+ type: 'bar',
|
|
|
272
|
+ data: [650, 500, 400, 300, 550],
|
|
|
273
|
+ itemStyle: {
|
|
|
274
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
275
|
+ { offset: 0, color: '#a55eea' },
|
|
|
276
|
+ { offset: 1, color: '#bd03fb' }
|
|
|
277
|
+ ])
|
|
|
278
|
+ },
|
|
|
279
|
+ barWidth: '50%'
|
|
|
280
|
+ }]
|
|
|
281
|
+ }
|
|
|
282
|
+ experienceYearsChart.setOption(option)
|
|
|
283
|
+}
|
|
|
284
|
+
|
|
|
285
|
+const initPositionQualificationChart = () => {
|
|
|
286
|
+ if (!positionQualificationChartRef.value) return
|
|
|
287
|
+ positionQualificationChart = echarts.init(positionQualificationChartRef.value)
|
|
|
288
|
+ const option = {
|
|
|
289
|
+ tooltip: {
|
|
|
290
|
+ trigger: 'axis',
|
|
|
291
|
+ backgroundColor: 'rgba(13,80,122,0.95)',
|
|
|
292
|
+ borderColor: '#70CFE7',
|
|
|
293
|
+ textStyle: { color: '#fff' }
|
|
|
294
|
+ },
|
|
|
295
|
+ legend: {
|
|
|
296
|
+ data: ['人数'],
|
|
|
297
|
+ textStyle: { color: '#a0c4ff' },
|
|
|
298
|
+ top: 0
|
|
|
299
|
+ },
|
|
|
300
|
+ grid: {
|
|
|
301
|
+ left: '10%',
|
|
|
302
|
+ right: '10%',
|
|
|
303
|
+ bottom: '15%',
|
|
|
304
|
+ containLabel: true
|
|
|
305
|
+ },
|
|
|
306
|
+ xAxis: {
|
|
|
307
|
+ type: 'category',
|
|
|
308
|
+ data: ['仿伪', '炸探', '人身', '开包', '开检后', '开机'],
|
|
|
309
|
+ axisLabel: { color: '#a0c4ff', fontSize: 10 },
|
|
|
310
|
+ axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } }
|
|
|
311
|
+ },
|
|
|
312
|
+ yAxis: {
|
|
|
313
|
+ type: 'value',
|
|
|
314
|
+ axisLabel: { color: '#a0c4ff' },
|
|
|
315
|
+ axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } },
|
|
|
316
|
+ splitLine: { lineStyle: { color: 'rgba(15,70,250,0.2)' } }
|
|
|
317
|
+ },
|
|
|
318
|
+ series: [{
|
|
|
319
|
+ name: '人数',
|
|
|
320
|
+ type: 'bar',
|
|
|
321
|
+ data: [450, 600, 180, 150, 650, 550],
|
|
|
322
|
+ itemStyle: {
|
|
|
323
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
324
|
+ { offset: 0, color: '#ffd93d' },
|
|
|
325
|
+ { offset: 1, color: '#ffd9b3' }
|
|
|
326
|
+ ])
|
|
|
327
|
+ },
|
|
|
328
|
+ barWidth: '50%'
|
|
|
329
|
+ }]
|
|
|
330
|
+ }
|
|
|
331
|
+ positionQualificationChart.setOption(option)
|
|
|
332
|
+}
|
|
|
333
|
+
|
|
|
334
|
+const handleResize = () => {
|
|
|
335
|
+ if (genderDistChart) genderDistChart.resize()
|
|
|
336
|
+ if (nationDistChart) nationDistChart.resize()
|
|
|
337
|
+ if (politicalDistChart) politicalDistChart.resize()
|
|
|
338
|
+ if (qualificationLevelChart) qualificationLevelChart.resize()
|
|
|
339
|
+ if (experienceYearsChart) experienceYearsChart.resize()
|
|
|
340
|
+ if (positionQualificationChart) positionQualificationChart.resize()
|
|
|
341
|
+}
|
|
|
342
|
+
|
|
|
343
|
+onMounted(() => {
|
|
|
344
|
+ nextTick(() => {
|
|
|
345
|
+ setTimeout(() => {
|
|
|
346
|
+ initGenderDistChart()
|
|
|
347
|
+ initNationDistChart()
|
|
|
348
|
+ initPoliticalDistChart()
|
|
|
349
|
+ initQualificationLevelChart()
|
|
|
350
|
+ initExperienceYearsChart()
|
|
|
351
|
+ initPositionQualificationChart()
|
|
|
352
|
+ window.addEventListener('resize', handleResize)
|
|
|
353
|
+ }, 100)
|
|
|
354
|
+ })
|
|
|
355
|
+})
|
|
|
356
|
+
|
|
|
357
|
+onUnmounted(() => {
|
|
|
358
|
+ window.removeEventListener('resize', handleResize)
|
|
|
359
|
+ if (genderDistChart) genderDistChart.dispose()
|
|
|
360
|
+ if (nationDistChart) nationDistChart.dispose()
|
|
|
361
|
+ if (politicalDistChart) politicalDistChart.dispose()
|
|
|
362
|
+ if (qualificationLevelChart) qualificationLevelChart.dispose()
|
|
|
363
|
+ if (experienceYearsChart) experienceYearsChart.dispose()
|
|
|
364
|
+ if (positionQualificationChart) positionQualificationChart.dispose()
|
|
|
365
|
+})
|
|
|
366
|
+</script>
|
|
|
367
|
+
|
|
|
368
|
+<style lang="scss" scoped>
|
|
|
369
|
+.station-content-wrapper {
|
|
|
370
|
+ .station-content {
|
|
|
371
|
+ display: flex;
|
|
|
372
|
+ flex-direction: column;
|
|
|
373
|
+ gap: 20px;
|
|
|
374
|
+ padding: 0 20px 40px;
|
|
|
375
|
+ }
|
|
|
376
|
+
|
|
|
377
|
+ .content-row {
|
|
|
378
|
+ display: flex;
|
|
|
379
|
+ gap: 20px;
|
|
|
380
|
+
|
|
|
381
|
+ > .info-card {
|
|
|
382
|
+ flex: 1;
|
|
|
383
|
+ min-width: 0;
|
|
|
384
|
+ }
|
|
|
385
|
+ }
|
|
|
386
|
+
|
|
|
387
|
+ .team-members-table {
|
|
|
388
|
+ width: 100%;
|
|
|
389
|
+ overflow-x: auto;
|
|
|
390
|
+
|
|
|
391
|
+ table {
|
|
|
392
|
+ width: 100%;
|
|
|
393
|
+ border-collapse: collapse;
|
|
|
394
|
+ color: #fff;
|
|
|
395
|
+
|
|
|
396
|
+ th, td {
|
|
|
397
|
+ padding: 12px 15px;
|
|
|
398
|
+ text-align: center;
|
|
|
399
|
+ border: 1px solid rgba(15, 70, 250, 0.3);
|
|
|
400
|
+ }
|
|
|
401
|
+
|
|
|
402
|
+ th {
|
|
|
403
|
+ background: rgba(15, 70, 250, 0.2);
|
|
|
404
|
+ color: #a0c4ff;
|
|
|
405
|
+ font-weight: 600;
|
|
|
406
|
+ }
|
|
|
407
|
+
|
|
|
408
|
+ td {
|
|
|
409
|
+ background: rgba(33, 33, 58, 0.5);
|
|
|
410
|
+ }
|
|
|
411
|
+
|
|
|
412
|
+ tbody tr:hover td {
|
|
|
413
|
+ background: rgba(15, 70, 250, 0.3);
|
|
|
414
|
+ }
|
|
|
415
|
+ }
|
|
|
416
|
+ }
|
|
|
417
|
+
|
|
|
418
|
+ .member-distribution,
|
|
|
419
|
+ .position-distribution {
|
|
|
420
|
+ display: flex;
|
|
|
421
|
+ gap: 30px;
|
|
|
422
|
+ justify-content: space-around;
|
|
|
423
|
+ flex-wrap: wrap;
|
|
|
424
|
+
|
|
|
425
|
+ .dist-item {
|
|
|
426
|
+ flex: 1;
|
|
|
427
|
+ min-width: 200px;
|
|
|
428
|
+ text-align: center;
|
|
|
429
|
+
|
|
|
430
|
+ h4 {
|
|
|
431
|
+ color: #a0c4ff;
|
|
|
432
|
+ margin-bottom: 15px;
|
|
|
433
|
+ font-size: 16px;
|
|
|
434
|
+ }
|
|
|
435
|
+
|
|
|
436
|
+ .dist-chart {
|
|
|
437
|
+ width: 100%;
|
|
|
438
|
+ height: 200px;
|
|
|
439
|
+ }
|
|
|
440
|
+ }
|
|
|
441
|
+ }
|
|
|
442
|
+
|
|
|
443
|
+ .position-distribution {
|
|
|
444
|
+ .dist-chart {
|
|
|
445
|
+ height: 280px;
|
|
|
446
|
+ }
|
|
|
447
|
+ }
|
|
|
448
|
+}
|
|
|
449
|
+</style>
|