1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
| <template>
| <div class="evaluate">
| <div class="div1">
| <div class="title">
| <span>全民健康</span>
| <img src="../../../assets/img/zonlan (9).png" alt="" />
| </div>
| <div class="content1">
| <div class="content11">
| <table>
| <tr class="tr1">
| <td class="td1">
| <div>三级医院</div>
| </td>
| <td class="td1">
| <div>二级医院</div>
| </td>
| <td class="td1">
| <div>一级医院</div>
| </td>
| </tr>
| <tr class="tr2">
| <td class="td2">{{ hospitalNum.sj }}</td>
| <td class="td2">{{ hospitalNum.ej }}</td>
| <td class="td2">{{ hospitalNum.yj }}</td>
| </tr>
| <tr class="tr3">
| <td class="td3"></td>
| <td class="td3"></td>
| <td class="td3"></td>
| </tr>
|
| <tr class="tr4">
| <td class="td4">
| <div>乡镇卫生院</div>
| </td>
| <td class="td4">
| <div>卫生室</div>
| </td>
| <td class="td4">
| <div>计生站</div>
| </td>
| </tr>
| <tr class="tr5">
| <td class="td5">{{ hospitalNum.xz }}</td>
| <td class="td5">{{ hospitalNum.wss }}</td>
| <td class="td5">{{ hospitalNum.jsz }}</td>
| </tr>
| <tr class="tr6">
| <td class="td6"></td>
| <td class="td6"></td>
| <td class="td6"></td>
| </tr>
| </table>
| </div>
|
| <div class="content12">
| <table>
| <tr class="tr21">
| <td colspan="2">互联网+服务库</td>
| </tr>
| <tr class="tr22">
| <td>
| <div class="dtr">
| 注册人数:<span>{{ sjjhNum.registerNum }}</span
| >人
| </div>
| </td>
| <td>
| <div class="dtr">
| 其中App注册数:<span>{{ sjjhNum.appuser }}</span
| >人
| </div>
| </td>
| </tr>
| <tr class="tr23">
| <td>
| <div class="dtr">
| 实名认证数:<span>{{ sjjhNum.certification }}</span
| >人
| </div>
| </td>
| <td>
| <div class="dtr">
| 微信绑定数:<span>{{ sjjhNum.wxuser }}</span
| >人
| </div>
| </td>
| </tr>
| <tr class="tr24">
| <td>
| <div class="dtr">
| 计生关系网上办理数:<span>{{ sjjhNum.jsrelation }}</span
| >人
| </div>
| </td>
| </tr>
| <tr class="tr25">
| <td>
| <div class="dtr">
| 一孩子生育网上办理数:<span>{{ sjjhNum.firstchild }}</span
| >人
| </div>
| </td>
| <td>
| <div class="dtr">
| 二孩子生育网上办理数:<span>{{ sjjhNum.secondchild }}</span
| >人
| </div>
| </td>
| </tr>
| <tr class="tr26">
| <td>
| <div class="dtr">
| 健康档案调阅次数:<span>{{ sjjhNum.healthTimes }}</span
| >人
| </div>
| </td>
| <td>
| <div class="dtr">
| 就诊信息调阅次数:<span>{{ sjjhNum.doctorTimes }}</span
| >人
| </div>
| </td>
| </tr>
| </table>
| </div>
| </div>
| </div>
| <div class="div2">
| <div class="title">
| <span>新冠疫苗</span>
| <img src="../../../assets/img/zonlan (9).png" alt="" />
| </div>
| <div class="content2">
| <div id="content21"></div>
| </div>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| //import引入的组件需要注入到对象中才能使用
| components: {},
| data() {
| //这里存放数据
| return {
| dataX1: [],
| dataY1: [],
| leftoption: {},
| hospitalNum: {},
| sjjhNum: {},
| };
| },
| //方法集合
| methods: {
| async getData() {
| const { data: dt } = await this.$http.get(
| "/jeecg-boot/hospital_num/hospitalNum/queryall"
| );
| const { data: dt1 } = await this.$http.get(
| "/jeecg-boot/sjjh_num/sjjhNum/queryall"
| );
| this.hospitalNum = dt.result[0];
| this.sjjhNum = dt1.result[0];
| },
| //获取数据
| async drawLine() {
| const { data: dt } = await this.$http.get(
| "/jeecg-boot/xgymjzdj/xgymjzdj/queryall"
| );
| this.GetChartDataLeft1(dt.result);
| },
|
| //左一饼图
| GetChartDataLeft1(val) {
| //数据赋值
| this.dataX1 = [];
| this.dataY1 = [];
| val.forEach((element) => {
| this.dataX1.push(element.hospital);
| this.dataY1.push(element.times);
| });
| // 基于准备好的dom,初始化echarts实例
| let leftChart = this.$echarts.init(document.getElementById("content21"));
|
| var colors = [
| "#A1232E",
| "#819335",
| "#F5AD1D",
| "#C16B2B",
| "#236771",
| "#CE6F56",
| "#83AF5D",
| "#CEB759",
| "#CA8E3D",
| "#03AAD6",
| "#AE4746",
| "#A6C56E",
| "#C8BF0C",
| "#C77053",
| "#22A4A8",
| ];
| this.leftoption = {
| tooltip: {
| trigger: "axis",
| axisPointer: {
| // 坐标轴指示器,坐标轴触发有效
| type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
| },
| },
| grid: {
| left: "7%",
| right: "4%",
| bottom: "4%",
| top: "16%",
| containLabel: true,
| },
| legend: {
| data: ["接种次数"],
| left: "center",
| top: 12,
| show: false,
| itemStyle: {
| color: "#0497C4",
| },
| textStyle: {
| fontSize: 30,
| color: "#fff",
| },
| itemWidth: 50,
| itemHeight: 35,
| },
| xAxis: {
| type: "category",
| data: this.dataX1,
| axisLine: {
| lineStyle: {
| color: "#034D8E",
| },
| },
| axisLabel: {
| rotate: 40,
| textStyle: {
| color: "#FFF",
| fontFamily: "Microsoft YaHei",
| },
| },
| splitLine: {
| show: true,
| lineStyle: {
| color: "#034D8E",
| },
| },
| },
|
| yAxis: {
| type: "value",
| axisLabel: {
| textStyle: {
| color: "#FFF",
| fontFamily: "Microsoft YaHei",
| },
| },
| axisLine: {
| show: true,
| lineStyle: {
| color: "#034D8E",
| },
| },
| splitLine: {
| show: true,
| lineStyle: {
| color: "#034D8E",
| },
| },
| },
| dataZoom: [
| {
| backgroundColor: "#063B63",
| show: true,
| height: 12,
| top: "10%",
| start: 0,
| end: 100,
| textStyle: {
| color: "#fff",
| },
| borderColor: "#045B8D",
| handleIcon:
| "path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z",
| handleSize: "110%",
| handleStyle: {
| color: "#0370AC",
| },
| },
| ],
| series: [
| {
| name: "接种次数",
| type: "bar",
| barWidth: "50%",
| itemStyle: {
| color: function (params) {
| //通过返回值的下标一一对应将颜色赋给柱子上
| var pindex = params.dataIndex % 15;
|
| return colors[pindex];
| },
| },
| data: this.dataY1,
| },
| ],
| };
|
| // 绘制图表
| leftChart.setOption(this.leftoption);
| },
| },
| mounted() {
| this.drawLine();
| },
| created() {
| this.getData();
| },
| };
| </script>
|
| <style lang="less" scoped="scoped">
| .evaluate {
| height: 50%;
| width: 100%;
| display: flex;
| flex-direction: row;
| background: rgba(8, 32, 58, 0.7);
| .title {
| width: 100%;
| position: relative;
|
| img {
| width: 100%;
| }
|
| span {
| font-size: 78px;
| font-weight: 400;
| color: #ffe86b;
| background: linear-gradient(0deg, #bce7ff 0%, #69efff 98.6572265625%);
| -webkit-background-clip: text;
| -webkit-text-fill-color: transparent;
| position: absolute;
| left: 50%;
| top: 0;
| transform: translateX(-50%);
| }
| }
| }
| .div1,
| .div2 {
| height: 90%;
| width: 50%;
| }
| .content1,
| .content2 {
| height: 100%;
| width: 100%;
| display: flex;
| flex-direction: row;
| }
|
| .content11,
| .content12 {
| height: 100%;
| width: 50%;
| }
|
| table {
| height: 100%;
| width: 100%;
| color: #fff;
| text-align: center;
| }
|
| .tr1,
| .tr4 {
| height: 10%;
| }
|
| .td1,
| .td4 {
| width: 33%;
| }
|
| .td1 div {
| display: flex;
| align-items: center;
| justify-content: center;
| height: 90%;
| width: 100%;
| background-image: url(../../../assets/img/医院标题.png);
| background-size: 100% 100%;
| font-size: 39px;
| }
|
| .td4 div {
| display: flex;
| align-items: center;
| justify-content: center;
| height: 90%;
| width: 100%;
| background-image: url(../../../assets/img/医院标题.png);
| background-size: 100% 100%;
| font-size: 39px;
| }
|
| .tr2,
| .tr5 {
| height: 10%;
| }
|
| .td2,
| .td5 {
| font-size: 76px;
| font-weight: bold;
| color: #fdbf46;
| background: linear-gradient(0deg, #faff67 0%, #ffffff 100%);
| -webkit-background-clip: text;
| -webkit-text-fill-color: transparent;
| }
|
| .tr3,
| .tr6 {
| height: 20%;
| }
|
| .td3,
| .td6 {
| background-image: url(../../../assets/img/医院.png);
| background-size: 100% 100%;
| }
|
| .content12 table {
| height: 100%;
| width: 100%;
| color: #ffffff;
| }
|
| .content12 table tr {
| height: 16.5%;
| }
|
| .tr21 td {
| height: 10%;
| font-size: 70px;
| }
|
| .tr22 td {
| height: 15%;
| }
|
| .tr23 td {
| height: 15%;
| }
|
| .tr24 td {
| height: 15%;
| }
|
| .tr25 td {
| height: 15%;
| }
|
| .tr26 td {
| height: 15%;
| }
|
| .dtr {
| width: 530px;
| height: 76px;
| background-image: url(../../../assets/img/huFu.png);
| background-size: 100% 100%;
| display: flex;
| align-items: center;
| font-size: 24px;
| text-indent: 80px;
| }
|
| .dtr span {
| text-indent: 0px;
| color: orange;
| }
|
| #content21 {
| height: 100%;
| width: 100%;
| }
| @media only screen and (max-width: 2560px) {
| .evaluate {
| height: 100%;
| overflow: visible;
| flex-direction: column;
| background: transparent;
| .div1,
| .div2 {
| height: 54%;
| width: 100%;
| .content1 {
| height: 8000px;
| flex-direction: column;
| .content11 {
| height: 20%;
| width: 100%;
| }
| .content12 {
| height: 20%;
| width: 100%;
| }
| }
|
| .dtr {
| justify-content: center;
| width: 90%;
| height: 80%;
| }
| }
| #content21 {
| height: 2400px;
| width: 100%;
| }
| }
| }
| </style>
|
|