杨磊
2024-07-24 48fbf705ee51a803081bfd09e7ff173d8475cdc9
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
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
<template>
    <view class="relative">
        <headNav :idIndex="idIndex" text="历代人物" />
        <view class="Midde flex">
            <el-button class="MiddeBack flex flex-center" @click="goBack">返回</el-button>
            <view style="width: 70%;" class="flex flex-center flex-column">
                <view  style="font-weight: bold;font-size: .20rem;">李时珍</view>
                <ul class="flex" style="line-height: 1.2;margin: .15rem 0 ;">
                    <li v-for="item in 4"
                        style="background-color: #fff; padding: 0 .08rem ;  border: .01rem solid #000;border-radius:.1rem ;font-size: .12rem;text-align: center;margin-right: .15rem;">
                        VSDS</li>
                </ul>
                <view class="fz font-family"
                    style="font-size: .13rem;font-weight: normal;line-height: .2rem;letter-spacing: .03rem;">
                    李时珍(1518年-1593年),字:
                    东璧,时人谓之:李东璧。号濒湖,晚年自号濒湖山人,湖北薪州(今湖北省黄冈市薪春县薪州镇)人,汉族,生于明武宗正德十三年(公元1518年),卒于神宗万历二十二年(公元1593年)。是中国明代与万密斋齐名的医学家、药物学家、博物学家、著述家。李时珍对道家医学的继承是多方面的,曾参考历代有关医药及其学术书籍八百余种,结合自身经验和调查研究,历时27年编成《本草纲目》一书,是我国古代药物学的总结性巨著,在国内外均有很高的评价,已有几种文字的译本或节译本,其著有《濒湖脉学》
                </view>
                <view class="flex" style="width: 100%;margin: .25rem 0 .15rem 0;">
                    <view >
                        <!-- <el-button style="padding: 10rpx;" size="mini" icon="el-icon-folder-add">收藏</el-button> -->
                        <el-button style="padding: .05rem .085rem;" class="yinyong flex">
                            <img src="@/static/image/yinyong.png" alt="" />引用</el-button>
                    </view>
                    <view  style="font-size: .12rem;color: #244A7B;" @click="ProfileClick">阅读更多></view>
                </view>
            </view>
            <view  style="width: 5%;"></view>
        </view>
        <el-row style="padding: 0 1.2rem 0;padding-top: .24rem;">
            <!-- 左侧 -->
            <el-col :span="5" class="BoxLeft" style="padding-right: .2rem;width: 2.8rem;">
                <div class="grid-content bg-purple-dark flex flex-column">
                    <el-card class="box-card" style="width: 100%;height: 2.06rem;">
                        <div class="clearfix flex" style="font-weight: 900;font-size: .14rem;padding-bottom: .1rem;">
                            <span style="margin-left: .12rem;font-size: .14rem;font-weight: 900;">关系图谱</span>
                            <!-- <el-button icon="el-icon-rank" style="float: right; padding: 3px 0;" type="text"></el-button> -->
                            <img src="@/static/image/fangda.png" @click="fangdaClick(1)"
                                style="width: .18rem;height: .18rem;" alt="" />
                        </div>
                        <view id="relation" style="height: 1.51rem;width: 100%;"></view>
                    </el-card>
                    <el-card class="box-card" style="width: 100%;height: 2.06rem; margin: .26rem 0;">
                        <div class="clearfix flex" style="font-weight: 900;font-size: .14rem;padding-bottom: .1rem;">
                            <span>时空地图</span>
                            <!-- <el-button icon="el-icon-rank" style="float: right; padding: 3px 0" type="text"></el-button> -->
                            <img src="@/static/image/fangda.png" @click="fangdaClick(2)"
                                style="width: .18rem;height: .18rem;" alt="" />
                        </div>
                        <view id="spaceTime" style="height: 1.51rem;width: 100%;position: relative;"></view>
                    </el-card>
                    <el-card style="width: 100%;height: 2.06rem;">
                        <div class="clearfix" style="font-weight: 900;font-size: .14rem;padding-bottom: .1rem;">
                            <span>来源</span>
                        </div>
                        <ul class="font-family" style="height: 300rpx;font-size: .12rem;line-height: .3rem;">
                            <li>1.《明史·卷二百九十九·列作品. p52</li>
                            <li>2.《进(本草纲目)疏》 p52</li>
                        </ul>
                    </el-card>
                </div>
            </el-col>
            <!-- 右侧 -->
            <el-col :span="18" class="BoxRight">
                <div class="grid-content bg-purple-dark" style="width: 100%;">
                    <el-card class="box-card" style="padding: 0;">
                        <div class="clearfix" style="font-weight: 900;font-size: .14rem;padding-bottom: .1rem;">
                            <span>基础信息</span>
                        </div>
                        <!-- 基础信息  -->
                        <cc-defineTable :tableData="tableArr"></cc-defineTable>
                    </el-card>
                    <el-card class="box-card" style=" min-height: 1.91rem; margin: .2rem 0;">
                        <el-tabs ref="tabs" v-model="activeName" @tab-click="handleClick">
                            <el-tab-pane label="代表著作" data-id="1" name="representative">
                                <Table1 :data="tableData" :columns="tableColumns" />
                            </el-tab-pane>
                            <el-tab-pane label="亲属关系" data-id="2" name="family ">
                                亲属关系
                            </el-tab-pane>
                            <el-tab-pane label="师承关系" data-id="3" name="mentoring ">师承关系</el-tab-pane>
                            <el-tab-pane label="社会关系" data-id="4" name="society">社会关系</el-tab-pane>
                            <el-tab-pane label="活动年谱" data-id="5" name="activity">活动年谱</el-tab-pane>
                        </el-tabs>
                    </el-card>
                    <el-card style=" margin-bottom: .2rem ;">
                        <div class="clearfix" style="font-weight: 900;font-size: .14rem;padding-bottom: .1rem;">
                            <span>相关附表/图像</span>
                        </div>
                        <view class="flex">
                            <el-image v-for="item in 4" :key="item" style="width: 2.05rem; height: 1.4rem"
                                src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
                                fit="fill"></el-image>
                        </view>
                    </el-card>
                    <el-card class="box-card">
                        <div class="clearfix" style="font-weight: 900;font-size: .14rem;padding-bottom: .1rem;">
                            <span>相关附表/图像</span>
                        </div>
                        <ul class="font-family" style="font-size: .13rem;line-height: 2;">
                            <li>
                                [1|刘炜,谢蓉,张磊,等.向人文研究的国家数据基础设施建设[J|.中国图书馆学报,2016,42(5):29-39.
                            </li>
                            <li>
                                [2|周晨.国际数字人文研究特征与知识结构|J图书馆论坛2017.37(4):1-8.
                            </li>
                            <li>
                                [3]傅德华,于翠艳,李春博,关于创建“20 世纪中国人物传记资料全文数据库治的构想[川,中国者引,2009,714):24-26.
                            </li>
                            <li>
                                [4|于翠艳,傅德华,李春博,关于“20世纪中国人物传记资料全文数据库治的进展与困惑[J1.中国常引,2012.10111:20-22
                            </li>
                            <li>
                                [5]贾武。《湖南近代人物数据率》资源收录范围研究|J河南图书馆学利,2015,35(7):126.127.140.
                            </li>
                        </ul>
                    </el-card>
                </div>
            </el-col>
        </el-row>
 
        <!-- 个人小传 -->
        <el-dialog :visible.sync="isProfile">
            <view class="ProfileNav flex flex-center">
                个人小传
            </view>
            <view  style="padding: .44rem .3rem;min-height: 7.32rem;">
                <view 
                    style="margin-bottom: .2rem; background-color: #F0F0F0;padding: .18rem .1rem .1rem .27rem;font-size: .12rem;line-height: .24rem;font-weight: 400;">
                    <view  style="color: #2C2C2C;">
                        蕙展丁丑同里日岩额序先考月池翁著《四彭酸明》八卷,皆精指奥室,茂犀未能疯造,珍因撮粹想菜,僵撰此唐,以便智睛,服指南。世之雷病雨家,咸以服焉首务,不知派乃四能之末,谓之巧者雨。上士欲舍其全,非四不可。
                    </view>
                    <view class="flex">
                        <view ></view>
                        <view  style="font-weight: 700;color: #2C2C2C;">——《奇八服考》P 3</view>
                    </view>
                </view>
            </view>
        </el-dialog>
 
 
 
        <!-- 返回顶部 -->
        <el-col style="position: absolute;bottom: 1rem;left:1.2rem ;">
            <el-button style="width: .50rem;height: .50rem;font-size: .3rem;" icon="el-icon-top" circle
                @click="scrollToTop"></el-button>
        </el-col>
    </view>
</template>
 
<script>
    import * as echarts from 'echarts';
    import 'echarts/extension/bmap/bmap';
    import {
        loadBMap
    } from "@/static/map.js"
    import Table1 from '@/components/table1/table1.vue'
    export default {
        components: {
            Table1
        },
        data() {
            return {
                // 标题顶部栏需要的东西
                idIndex: 0,
                // -------
                // 小传
                isProfile: false,
                // 关系图谱
                activeName: 'representative',
                // 基础信息
                tableArr: [{
                        'list': [{
                                'name': '别名',
                                'value': '李东璧、药圣、李三七'
                            },
                            {
                                'name': '字',
                                'value': '东璧'
                            },
                            {
                                'name': '号',
                                'value': '频湖山人'
                            },
                            {
                                'name': '所处时期',
                                'value': '明朝'
                            },
                            {
                                'name': '民族',
                                'value': '166g'
                            }
                        ]
 
                    },
                    {
                        'list': [{
                                'name': '籍贯',
                                'value': '黄州府薪州 (今湖北省薪春县)'
                            },
                            {
                                'name': '性别',
                                'value': '男'
                            },
                            {
                                'name': '职官',
                                'value': '太医院判'
                            },
                            {
                                'name': '流派',
                                'value': '医经学派'
                            },
                            {
                                'name': '学术特点',
                                'value': '考古证今、穷究物理'
                            }
                        ]
                    }
                ],
                // 代表著作
                tableColumns: [{
                        prop: 'worksName',
                        label: '作品名'
                    },
                    {
                        prop: 'works',
                        label: '作品'
                    },
                    {
                        prop: 'literature',
                        label: '文献关系'
                    },
                    {
                        prop: 'epoch',
                        label: '著作时期'
                    }, {
                        prop: 'category',
                        label: '类别'
                    },
                    // { type: 'button', action: 'edit', label: 'Edit' }
                ],
                tableData: [{
                    worksName: '本草纲目',
                    works: '李二牛',
                    literature: '作者',
                    epoch: '现代',
                    category: '中医学',
                    id: 1
                }, {
                    worksName: '本草纲目',
                    works: '李二牛',
                    literature: '作者',
                    epoch: '现代',
                    category: '中医学',
                    id: 1
 
                }]
            }
        },
        onLoad(options) {
            this.idIndex = options.id
        },
        mounted() {
 
            // 关系图谱
            this.relation()
            // 时空地图
            loadBMap('5USVDAhhS4ssz44HLq3gNPZai7naXf4Q').then(() => {
                this.spaceTime()
            })
            this.$nextTick(() => {
                // 获取第一个选项卡的 DOM 元素
                const firstTab = this.$refs.tabs.$el.querySelector('.el-tabs__active-bar');
                firstTab.style.transform = 'translateX(' + '-.2rem' + ')'
            });
 
 
            // 监听窗口大小变化
            window.addEventListener('resize', this.relation);
        },
        methods: {
            // 放大地图跳转
            fangdaClick(index) {
                if (index == 1) {
                    uni.navigateTo({
                        url: '/pages/character/index'
                    })
                } else if (index == 2) {
                    uni.navigateTo({
                        url: '/pages/characterMap/characterMap'
                    })
                }
            },
            // 小传
            ProfileClick() {
                this.isProfile = !this.isProfile
            },
            // 返回上一页
            goBack() {
                this.$router.go(-1);
            },
            // 返回顶部
            scrollToTop() {
                window.scrollTo({
                    top: 0,
                    behavior: "smooth" // 使用平滑滚动
                });
            },
            handleClick(tab) {
                let index = tab.$attrs['data-id'] - 1
                this.$nextTick(() => {
                    let firstTab = this.$refs.tabs.$el.querySelector('.el-tabs__active-bar');
                    if (index == 0) {
                        firstTab.style.transform = 'translateX(-' + .2 + 'rem)'
                    } else if (index == 1) {
                        firstTab.style.transform = 'translateX(' + .85 * index + 'rem)'
                    } else if (index == 2) {
                        firstTab.style.transform = 'translateX(' + .93 * index + 'rem)'
                    } else if (index == 3) {
                        firstTab.style.transform = 'translateX(' + .95 * index + 'rem)'
                    } else if (index == 4) {
                        firstTab.style.transform = 'translateX(' + .97 * index + 'rem)'
                    } else {
                        let firstTab = this.$refs.tabs.$el.querySelector('.el-tabs__active-bar');
                        firstTab.style.transform = 'translateX(' + '-.2' + 'rem)'
                    }
                })
            },
            // 关系图谱
            relation() {
                var chartDom = document.getElementById('relation');
                var myChart = echarts.init(chartDom);
 
                // 假设您有节点名称和它们之间的关系数据
                var nodes = ['李时珍', '成就', '传承', '亲友', '著作'];
                var relationships = [{
                        source: '李时珍',
                        target: '成就'
                    },
                    {
                        source: '李时珍',
                        target: '传承'
                    },
                    {
                        source: '李时珍',
                        target: '亲友'
                    },
                    {
                        source: '李时珍',
                        target: '著作'
                    },
                    // 其他关系...
                ];
 
                // 根据关系数据生成连接线
                var links = [];
                relationships.forEach(function(relationship) {
                    var sourceIndex = nodes.indexOf(relationship.source);
                    var targetIndex = nodes.indexOf(relationship.target);
                    if (sourceIndex !== -1 && targetIndex !== -1) {
                        links.push({
                            source: sourceIndex,
                            target: targetIndex
                        });
                    }
 
                });
                let FontSize = 12; // 字体大小
                let BorderWidth = 2; // 边框大小
                let SymbolSize = 80; // 尺寸距离
                // 不同尺寸下修改echarts的字体
                if (window.innerWidth > 2560 && window.innerWidth <= 3840) {
                    FontSize = 28
                    BorderWidth = 5
                    SymbolSize = 100
                } else if (window.innerWidth > 1920 && window.innerWidth <= 2560) {
                    FontSize = 28
                    BorderWidth = 4
                    SymbolSize = 90
                } else if (window.innerWidth >= 1366 && window.innerWidth <= 1920) {
                    FontSize = 18
                    BorderWidth = 4
                    SymbolSize = 70
                }
                // 根据nodes动态生成节点数据
                var nodeData = nodes.map(function(node, index) {
                    return {
                        name: node,
                        x: Math.random() * 1000, // 设置随机x坐标位置
                        y: Math.random() * 600, // 设置随机y坐标位置
                        itemStyle: {
                            color: getColorByIndex(index), // 可以根据索引设置不同的颜色
                            borderWidth: BorderWidth,
                            borderColor: getColorByIndex(index + 1),
                        }
                    };
                });
                // 设置颜色
                function getColorByIndex(index) {
                    var colors = ['#ecf4ff', '#dd9795', '#f1edbe', '#ecf4ff', '#c5dbd8']; // 可以根据实际情况设置颜色数组
                    return colors[index % colors.length];
                }
 
                var option;
                option = {
                    tooltip: {},
                    animationDurationUpdate: 1500,
                    animationEasingUpdate: 'quinticInOut',
                    series: [{
                        type: 'graph',
                        layout: 'none',
                        symbolSize: SymbolSize, // 调整节点大小
                        label: {
                            show: true,
                            color: 'black', // 设置节点文字颜色为黑色
                            fontSize: FontSize, // 设置文字大小
                        },
                        edgeSymbol: ['circle'],
                        edgeSymbolSize: [4, 10],
                        edgeLabel: {
                            fontSize: 40
                        },
                        data: nodeData,
                        links: [{
                                source: 0,
                                target: 1,
                                symbolSize: [5, 20]
                            },
                            {
                                source: 'Node 2',
                                target: 'Node 1'
                            },
                            {
                                source: 'Node 1',
                                target: 'Node 3'
                            },
                            {
                                source: 'Node 2',
                                target: 'Node 3'
                            },
                            {
                                source: 'Node 2',
                                target: 'Node 4'
                            },
                            {
                                source: 'Node 1',
                                target: 'Node 4'
                            }
                        ],
                        lineStyle: {
                            opacity: 0.9,
                            width: 2,
                            curveness: 0
                        }
                    }]
                };
 
                // 将生成的连接线添加到echarts图表的option中
                option.series[0].links = links;
                option && myChart.setOption(option);
            },
            // 时空地图
            spaceTime() {
                var chartDom = document.getElementById('spaceTime');
                var myChart = echarts.init(chartDom);
                var option;
 
                const data = [{
                        name: '海门',
                        value: 9
                    },
                    {
                        name: '金昌',
                        value: 19
                    },
                    {
                        name: '泉州',
                        value: 21
                    },
                    {
                        name: '衢州',
                        value: 177
                    },
                    {
                        name: '廊坊',
                        value: 193
                    },
                    {
                        name: '菏泽',
                        value: 194
                    },
                    {
                        name: '合肥',
                        value: 229
                    },
                    {
                        name: '武汉',
                        value: 273
                    },
                    {
                        name: '大庆',
                        value: 279
                    }
                ];
                const geoCoordMap = {
                    海门: [121.15, 31.89],
                    鄂尔多斯: [109.781327, 39.608266],
                    招远: [120.38, 37.35],
                    平顶山: [113.29, 33.75],
                    邢台: [114.48, 37.05],
                    德州: [116.29, 37.45],
                    济宁: [116.59, 35.38],
                    荆州: [112.239741, 30.335165],
                    宜昌: [111.3, 30.7],
                    义乌: [120.06, 29.32],
                    丽水: [119.92, 28.45],
                    洛阳: [112.44, 34.7],
                    秦皇岛: [119.57, 39.95],
                    株洲: [113.16, 27.83],
                    石家庄: [114.48, 38.03],
                    莱芜: [117.67, 36.19],
                    常德: [111.69, 29.05],
                    保定: [115.48, 38.85],
                    湘潭: [112.91, 27.87],
                    金华: [119.64, 29.12],
                    岳阳: [113.09, 29.37],
                    长沙: [113, 28.21],
                    衢州: [118.88, 28.97],
                    廊坊: [116.7, 39.53],
                    菏泽: [115.480656, 35.23375],
                    合肥: [117.27, 31.86],
                    武汉: [114.31, 30.52],
                    大庆: [125.03, 46.58]
                };
                const convertData = function(data) {
                    var res = [];
                    for (var i = 0; i < data.length; i++) {
                        var geoCoord = geoCoordMap[data[i].name];
                        if (geoCoord) {
                            res.push({
                                name: data[i].name,
                                value: geoCoord.concat(data[i].value)
                            });
                        }
                    }
                    return res;
                };
                option = {
                    tooltip: {
                        trigger: 'item'
                    },
                    bmap: {
                        center: [104.114129, 37.550339],
                        zoom: 1,
                        roam: true,
                        mapStyle: {
                            styleJson: [{
                                    featureType: 'water',
                                    elementType: 'all',
                                    stylers: {
                                        color: '#d1d1d1'
                                    }
                                },
                                {
                                    featureType: 'land',
                                    elementType: 'all',
                                    stylers: {
                                        color: '#f3f3f3'
                                    }
                                },
                                {
                                    featureType: 'manmade',
                                    elementType: 'all',
                                    stylers: {
                                        color: '#d1d1d1'
                                    }
                                },
                                {
                                    featureType: 'local',
                                    elementType: 'all',
                                    stylers: {
                                        color: '#d1d1d1'
                                    }
                                },
                                {
                                    featureType: 'arterial',
                                    elementType: 'labels',
                                    stylers: {
                                        visibility: 'off'
                                    }
                                },
                                {
                                    featureType: 'boundary',
                                    elementType: 'all',
                                    stylers: {
                                        color: '#fefefe'
                                    }
                                },
                                {
                                    featureType: 'building',
                                    elementType: 'all',
                                    stylers: {
                                        color: '#d1d1d1'
                                    }
                                },
                                {
                                    featureType: 'label',
                                    elementType: 'labels.text.fill',
                                    stylers: {
                                        color: '#999999'
                                    }
                                }
                            ]
                        }
                    },
                    series: [{
                            name: 'pm2.5',
                            type: 'scatter',
                            coordinateSystem: 'bmap',
                            data: convertData(data),
                            symbolSize: function(val) {
                                return val[2] / 10;
                            },
                            encode: {
                                value: 2
                            },
                            credits: {
                                enabled: false
                            },
                            label: {
                                formatter: '{b}',
                                position: 'right',
                                show: false
                            },
                            emphasis: {
                                label: {
                                    show: true
                                }
                            }
                        },
                        {
                            name: 'Top 5',
                            type: 'effectScatter',
                            coordinateSystem: 'bmap',
                            data: convertData(
                                data
                                .sort(function(a, b) {
                                    return b.value - a.value;
                                })
                                .slice(0, 6)
                            ),
                            symbolSize: function(val) {
                                return val[2] / 10;
                            },
                            encode: {
                                value: 2
                            },
                            showEffectOn: 'render',
                            rippleEffect: {
                                brushType: 'stroke'
                            },
                            label: {
                                formatter: '{b}',
                                position: 'right',
                                show: true
                            },
                            itemStyle: {
                                shadowBlur: 10,
                                shadowColor: '#333'
                            },
                            emphasis: {
                                scale: true
                            },
                            zlevel: 1
                        }
                    ]
                };
 
 
                option && myChart.setOption(option);
 
            },
 
        }
    }
</script>
 
<style>
    /* Table1表格里面的数据 */
    ::v-deep .is-leaf {
        .cell {
            font-size: .14rem !important;
            height: .4rem !important;
            line-height: .4rem !important;
        }
    }
 
    ::v-deep .el-table__body {
        .cell {
            font-size: .14rem !important;
            height: .4rem !important;
            line-height: .4rem !important;
        }
    }
 
    /* --------------- */
 
    .BoxLeft ::v-deep.el-card__body {
        padding: .1rem .11rem !important;
    }
 
    ::v-deep .el-tabs__content {
        line-height: 1;
    }
 
 
    /* 个人小传 ------------------*/
    ::v-deep .el-dialog__header {
        display: none;
    }
 
    ::v-deep .el-dialog__body {
        padding: 0;
    }
 
    .ProfileNav {
        width: 100%;
        height: 0.7rem;
        background: url(@/static/image/ProfileBg.png);
        background-size: 100% 100%;
        font-size: .24rem;
        color: #2C2C2C;
        font-weight: bold;
    }
 
    /* ------------------- */
 
 
    img {
        width: 100%;
        height: 100%;
    }
 
    * {
        box-sizing: border-box;
    }
 
    .NavTop {
        background-color: #0c274c;
        padding: 15rpx 25rpx;
        color: #fff !important;
 
        img {
            width: 30rpx;
            height: 30rpx;
            vertical-align: middle;
        }
 
        .NavTopr {
            img {
                margin-right: 10rpx;
            }
        }
    }
 
    .mImage {
        width: 100%;
        height: 30rpx;
 
        img {
            vertical-align: top;
        }
    }
 
    .Midde {
        /* background-color: #dbeafd; */
        background-image: url(@/static/image/yongBg.png);
        background-size: 100% 100%;
        color: #000;
        align-items: flex-start;
        padding: .18rem .24rem ;
        
        view {
            color: #000;
        }
 
        .MiddeBack {
            width: 0.6rem;
            height: 0.24rem;
            font-size: .12rem;
            padding: 0;
            border: 1px solid  #9E9E9E;
        }
    }
 
    .yinyong {
        font-size: .12rem;
 
        img {
            width: .12rem;
            height: .1rem;
            vertical-align: top;
            margin-right: .03rem;
        }
    }
 
    .el-dialog__wrapper {
        background: rgba(0, 0, 0, .3);
    }
 
    .fz {
        /* line-height: 1.3;
        height: 100rpx;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical; */
        color: #2C2C2C;
    }
 
    ::v-deep .el-card__body {
        padding: .1rem !important;
    }
 
    /* echart地图水印 */
    ::v-deep .BMap_cpyCtrl {
        display: none;
    }
 
    ::v-deep .anchorBL {
        display: none;
    }
 
    ::v-deep .el-tabs__nav-wrap::after {
        background-color: transparent;
    }
 
    ::v-deep .el-tabs__nav {
        margin-bottom: .1rem !important;
 
    }
 
    ::v-deep .el-tabs__nav-scroll {
        display: flex;
        justify-content: center;
    }
 
    ::v-deep .el-tabs__item {
        width: 1rem;
        font-size: .14rem;
        line-height: .4rem;
        height: .4rem;
    }
 
    ::v-deep .el-tabs__header {
        margin: 0 0 10rpx;
    }
 
    ::v-deep .el-tabs__active-bar {
        /* 设置滚动条宽度 */
        width: 1rem !important;
        height: .03rem !important;
        background-color: #597AA5;
        transform: translateX(-20px);
        /* margin-top: .09rem; */
    }
 
    ::v-deep .el-tabs__active-bar {
        top: .37rem !important;
    }
 
    ::v-deep .el-table::before {
        background-color: #fff !important;
    }
 
    .BoxRight ::v-deep.el-card__body {
        padding: .2rem .14rem !important;
 
    }
 
    .BoxRight .box-card {
        margin-bottom: .2rem !important;
    }
</style>