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
| <template>
| <div style="padding: 10px; background-color: #f8f8f8">
| <el-row :gutter="20" style="margin: 10px 0px 20px 0px">
| <el-col :xs="24" :sm="24" :md="24" :lg="14" :xl="14">
| <div style="overflow: hidden; border: 1px solid #ccc">
| <div ref="map" style="height: 650px"></div>
| </div>
| </el-col>
|
| <el-col :xs="24" :sm="24" :md="24" :lg="10" :xl="10">
| <el-card shadow="none" style="">
| <h3 style="font-weight: bold">
| <i class="el-icon-s-data"></i>
| 设备统计
| </h3>
| <el-row :gutter="40" class="panel-group">
| <el-col :span="12" class="card-panel-col">
| <div class="card-panel">
| <div class="card-panel-icon-wrapper icon-blue">
| <svg-icon icon-class="device" class-name="card-panel-icon" />
| </div>
| <div class="card-panel-description">
| <div class="card-panel-text">设备数量</div>
| <count-to :start-val="0" :end-val="deviceStatistic.deviceCount" :duration="3000" class="card-panel-num" />
| </div>
| </div>
| </el-col>
| <el-col :span="12" class="card-panel-col">
| <div class="card-panel">
| <div class="card-panel-icon-wrapper icon-red">
| <svg-icon icon-class="monitor-a" class-name="card-panel-icon" />
| </div>
| <div class="card-panel-description">
| <div class="card-panel-text">监测数据</div>
| <count-to :start-val="0" :end-val="deviceStatistic.monitorCount" :duration="3000" class="card-panel-num" />
| </div>
| </div>
| </el-col>
| <el-col :span="12" class="card-panel-col">
| <div class="card-panel">
| <div class="card-panel-icon-wrapper icon-blue">
| <svg-icon icon-class="model" class-name="card-panel-icon" />
| </div>
| <div class="card-panel-description">
| <div class="card-panel-text">产品数量</div>
| <count-to :start-val="0" :end-val="deviceStatistic.productCount" :duration="1000" class="card-panel-num" />
| </div>
| </div>
| </el-col>
| <el-col :span="12" class="card-panel-col">
| <div class="card-panel">
| <div class="card-panel-icon-wrapper icon-red">
| <svg-icon icon-class="alert" class-name="card-panel-icon" />
| </div>
| <div class="card-panel-description">
| <div class="card-panel-text">告警数量</div>
| <count-to :start-val="0" :end-val="deviceStatistic.alertCount" :duration="1000" class="card-panel-num" />
| </div>
| </div>
| </el-col>
| <el-col :span="12" class="card-panel-col">
| <div class="card-panel">
| <div class="card-panel-icon-wrapper icon-blue">
| <svg-icon icon-class="log-a" class-name="card-panel-icon" />
| </div>
| <div class="card-panel-description">
| <div class="card-panel-text">操作记录</div>
| <count-to :start-val="0" :end-val="deviceStatistic.functionCount" :duration="2000" class="card-panel-num" />
| </div>
| </div>
| </el-col>
| <el-col :span="12" class="card-panel-col">
| <div class="card-panel">
| <div class="card-panel-icon-wrapper icon-red">
| <svg-icon icon-class="event-a" class-name="card-panel-icon" />
| </div>
| <div class="card-panel-description">
| <div class="card-panel-text">上报事件</div>
| <count-to :start-val="0" :end-val="deviceStatistic.eventCount" :duration="2000" class="card-panel-num" />
| </div>
| </div>
| </el-col>
| </el-row>
| </el-card>
| <el-card shadow="none" style="margin-top: 22px; height: 302px">
| <h3 style="font-weight: bold; margin-bottom: 10px">
| <i class="el-icon-s-order"></i>
| 信息栏
| </h3>
| <div style="cursor: pointer; display: table; width: 100%; line-height: 36px" @click="openDetail(item.noticeId)" v-for="item in noticeList" :key="item.noticeId">
| <div style="display: table-cell; padding-right: 10px">
| <el-tag size="mini" effect="dark" type="warning" v-if="item.noticeType == 2">公告</el-tag>
| <el-tag size="mini" effect="dark" v-else>信息</el-tag>
| {{ item.noticeTitle }}
| </div>
| <div style="display: table-cell; width: 90px; font-size: 14px">
| <i class="el-icon-time"></i>
| {{ parseTime(item.createTime, '{y}-{m}-{d}') }}
| </div>
| </div>
| </el-card>
| </el-col>
| </el-row>
|
| <el-card shadow="none" style="margin: 10px 10px 20px 10px">
| <el-row :gutter="120" v-if="isAdmin">
| <el-col :xs="24" :sm="24" :md="24" :lg="8" :xl="8">
| <div style="padding: 20px">
| <div ref="pieCpu" style="height: 161px"></div>
| </div>
| </el-col>
| <el-col :xs="24" :sm="24" :md="24" :lg="8" :xl="8">
| <div style="padding: 20px">
| <div ref="pieMemery" style="height: 161px"></div>
| </div>
| </el-col>
| <el-col :xs="24" :sm="24" :md="24" :lg="8" :xl="8">
| <div style="padding: 20px">
| <div ref="pieDisk" style="height: 161px"></div>
| </div>
| </el-col>
| </el-row>
| </el-card>
|
|
| <!--通知公告详情 -->
| <el-dialog :title="notice.noticeTitle" :visible.sync="open" width="800px" append-to-body>
| <div style="margin-top: -20px; margin-bottom: 10px">
| <el-tag size="mini" effect="dark" type="warning" v-if="notice.noticeType == 2">公告</el-tag>
| <el-tag size="mini" effect="dark" v-else>信息</el-tag>
| <span style="margin-left: 20px">{{ notice.createTime }}</span>
| </div>
| <div v-loading="loading" class="content">
| <div v-html="notice.noticeContent"></div>
| </div>
| <div slot="footer" class="dialog-footer">
| <el-button type="primary" @click="closeDetail">关 闭</el-button>
| </div>
| </el-dialog>
|
| <div style="width: 100%; text-align: center; font-size: 14px; color: #666; line-height: 32px; margin-top: 150px">
| <span>
| Copyright © 2004-2023 泰瑞数创科技(北京)股份有限公司版权所有 | 京公网安备 11010802036351号 | 京ICP证140146号
| </span>
| <br />
|
| </div>
| </div>
| </template>
|
| <script>
| import { getDeviceStatistic } from '@/api/iot/device';
| import { listNotice, getNotice } from '@/api/system/notice';
| import CountTo from 'vue-count-to';
| import { loadBMap } from '@/utils/map.js';
| //安装的是echarts完整包,里面包含百度地图扩展,路径为 echarts/extension/bmap/bmap.js,将其引入
| //ECharts的百度地图扩展,可以在百度地图上展现点图,线图,热力图等可视化
| require('echarts/extension/bmap/bmap');
| import { getServer } from '@/api/monitor/server';
| import { listAllDeviceShort } from '@/api/iot/device';
|
| export default {
| name: 'Index',
| components: {
| CountTo,
| },
| data() {
| return {
| // 遮罩层
| loading: true,
| // 是否显示弹出层
| open: false,
| // 信息列表
| noticeList: [],
| // 信息详情
| notice: {},
| // 是否为管理员
| isAdmin: false,
| // 设备列表
| deviceList: [],
| // 设备统计信息
| deviceStatistic: {},
| // 设备总数
| deviceCount: 0,
| // 版本号
| version: '3.8.0',
| // 服务器信息
| server: {
| jvm: {
| name: '',
| version: '',
| startTime: '',
| runTime: '',
| used: '',
| total: 100,
| },
| sys: {
| computerName: '',
| osName: '',
| computerIp: '',
| osArch: '',
| },
| cpu: {
| cpuNum: 1,
| },
| mem: {
| total: 2,
| },
| },
| tableData: [],
| };
| },
| created() {
| this.init();
| this.getAllDevice();
| this.getNoticeList();
| this.getDeviceStatistic();
| },
| methods: {
| init() {
| if (this.$store.state.user.roles.indexOf('tenant') === -1 && this.$store.state.user.roles.indexOf('general') === -1) {
| this.isAdmin = true;
| this.getServer();
| }
| },
| //刷新iframe
| flushIframe() {
| var iframe = window.parent.document.getElementById('iframe');
| iframe.contentWindow.location.reload(true);
| },
| /** 查询设备统计信息 */
| getDeviceStatistic() {
| getDeviceStatistic().then((response) => {
| this.deviceStatistic = response.data;
| });
| },
| /** 查询公告列表 */
| getNoticeList() {
| let queryParams = {
| pageNum: 1,
| pageSize: 6,
| };
| listNotice(queryParams).then((response) => {
| this.noticeList = response.rows.splice(0, 6);
| });
| },
| // 打开信息详情
| openDetail(id) {
| this.open = true;
| this.loading = true;
| getNotice(id).then((response) => {
| this.notice = response.data;
| this.open = true;
| this.loading = false;
| });
| },
| // 取消按钮
| closeDetail() {
| this.title = '';
| this.open = false;
| },
| /**查询所有设备 */
| getAllDevice() {
| listAllDeviceShort(this.queryParams).then((response) => {
| this.deviceList = response.rows;
| this.deviceCount = response.total;
| this.loadMap();
| });
| },
| /**加载地图*/
| loadMap() {
| this.$nextTick(() => {
| loadBMap().then(() => {
| this.getmap();
| });
| });
| },
| /** 查询服务器信息 */
| getServer() {
| getServer().then((response) => {
| this.server = response.data;
| this.tableData = [
| {
| server: '服务器名',
| serverContent: this.server.sys.computerName,
| java: 'Java名称',
| javaContent: this.server.jvm.name,
| },
| {
| server: '服务器IP',
| serverContent: this.server.sys.computerIp,
| java: '启动时间',
| javaContent: this.server.jvm.startTime,
| },
| {
| server: '操作系统',
| serverContent: this.server.sys.osName,
| java: 'Java版本',
| javaContent: this.server.jvm.version,
| },
| {
| server: '系统架构',
| serverContent: this.server.sys.osArch,
| java: '运行时长',
| javaContent: this.server.jvm.runTime,
| },
| {
| server: 'CPU核心',
| serverContent: this.server.cpu.cpuNum,
| java: '占用内存',
| javaContent: this.server.jvm.used,
| },
| {
| server: '内存大小',
| serverContent: this.server.mem.total,
| java: 'JVM总内存',
| javaContent: this.server.jvm.total,
| },
| ];
| this.$nextTick(() => {
| this.drawPieCpu();
| this.drawPieMemery();
| this.drawPieDisk();
| });
| });
| },
|
| /** 地图 */
| getmap() {
| var myChart = this.$echarts.init(this.$refs.map);
| var option;
|
| // 单击事件
| myChart.on('click', (params) => {
| if (params.data.deviceId) {
| this.$router.push({
| path: '/iot/device-edit',
| query: {
| t: Date.now(),
| deviceId: params.data.deviceId,
| },
| });
| }
| });
|
| // 格式化数据
| let convertData = function (data, status) {
| var res = [];
| for (var i = 0; i < data.length; i++) {
| var geoCoord = [data[i].longitude, data[i].latitude];
| if (geoCoord && data[i].status == status) {
| res.push({
| name: data[i].deviceName,
| value: geoCoord,
| serialNumber: data[i].serialNumber,
| status: data[i].status,
| isShadow: data[i].isShadow,
| firmwareVersion: data[i].firmwareVersion,
| networkAddress: data[i].networkAddress,
| productName: data[i].productName,
| activeTime: data[i].activeTime == null ? '' : data[i].activeTime,
| deviceId: data[i].deviceId,
| serialNumber: data[i].serialNumber,
| locationWay: data[i].locationWay,
| });
| }
| }
| return res;
| };
| option = {
| title: {
| text: '设备分布(在线数 ' + this.deviceList.filter((x) => x.status == 3).length + ')',
| subtext: 'fastbee open source iot platform',
| sublink: 'https://iot.fastbee.cn',
| target: '_blank',
| textStyle: {
| color: '#333',
| textBorderColor: '#fff',
| textBorderWidth: 10,
| },
| top: 10,
| left: 'center',
| },
| tooltip: {
| trigger: 'item',
| formatter: function (params) {
| var htmlStr = '<div style="padding:5px;line-height:28px;">';
| htmlStr += "设备名称: <span style='color:#409EFF'>" + params.data.name + '</span><br />';
| htmlStr += '设备编号: ' + params.data.serialNumber + '<br />';
| htmlStr += '设备状态: ';
| if (params.data.status == 1) {
| htmlStr += "<span style='color:#E6A23C'>未激活</span>" + '<br />';
| } else if (params.data.status == 2) {
| htmlStr += "<span style='color:#F56C6C'>禁用</span>" + '<br />';
| } else if (params.data.status == 3) {
| htmlStr += "<span style='color:#67C23A'>在线</span>" + '<br />';
| } else if (params.data.status == 4) {
| htmlStr += "<span style='color:#909399'>离线</span>" + '<br />';
| }
| if (params.data.isShadow == 1) {
| htmlStr += '设备影子: ' + "<span style='color:#67C23A'>启用</span>" + '<br />';
| } else {
| htmlStr += '设备影子: ' + "<span style='color:#909399'>未启用</span>" + '<br />';
| }
| htmlStr += '产品名称: ' + params.data.productName + '<br />';
| htmlStr += '固件版本: Version ' + params.data.firmwareVersion + '<br />';
| htmlStr += '激活时间: ' + params.data.activeTime + '<br />';
| htmlStr += '定位方式: ';
| if (params.data.locationWay == 1) {
| htmlStr += '自动定位' + '<br />';
| } else if (params.data.locationWay == 2) {
| htmlStr += '设备定位' + '<br />';
| } else if (params.data.locationWay == 3) {
| htmlStr += '自定义位置' + '<br />';
| } else {
| htmlStr += '未知' + '<br />';
| }
| htmlStr += '所在地址: ' + params.data.networkAddress + '<br />';
| htmlStr += '</div>';
| return htmlStr;
| },
| },
| bmap: {
| center: [133, 38],
| zoom: 5,
| roam: true,
| mapStyle: {
| styleJson: [
| {
| featureType: 'water',
| elementType: 'all',
| stylers: {
| color: '#a0cfff',
| },
| },
| {
| featureType: 'land',
| elementType: 'all',
| stylers: {
| color: '#fafafa', // #fffff8 淡黄色
| },
| },
| {
| featureType: 'railway',
| elementType: 'all',
| stylers: {
| visibility: 'off',
| },
| },
| {
| featureType: 'highway',
| elementType: 'all',
| stylers: {
| color: '#fdfdfd',
| },
| },
| {
| featureType: 'highway',
| elementType: 'labels',
| stylers: {
| visibility: 'off',
| },
| },
| {
| featureType: 'arterial',
| elementType: 'geometry',
| stylers: {
| color: '#fefefe',
| },
| },
| {
| featureType: 'arterial',
| elementType: 'geometry.fill',
| stylers: {
| color: '#fefefe',
| },
| },
| {
| featureType: 'poi',
| elementType: 'all',
| stylers: {
| visibility: 'off',
| },
| },
| {
| featureType: 'green',
| elementType: 'all',
| stylers: {
| visibility: 'off',
| },
| },
| {
| featureType: 'subway',
| elementType: 'all',
| stylers: {
| visibility: 'off',
| },
| },
| {
| 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: '#999999',
| },
| },
| {
| featureType: 'building',
| elementType: 'all',
| stylers: {
| color: '#d1d1d1',
| },
| },
| {
| featureType: 'label',
| elementType: 'labels.text.fill',
| stylers: {
| color: '#999999',
| },
| },
| ],
| },
| },
| series: [
| {
| type: 'scatter',
| coordinateSystem: 'bmap',
| data: convertData(this.deviceList, 1),
| symbolSize: 15,
| itemStyle: {
| color: '#E6A23C',
| },
| },
| {
| type: 'scatter',
| coordinateSystem: 'bmap',
| data: convertData(this.deviceList, 2),
| symbolSize: 15,
| itemStyle: {
| color: '#F56C6C',
| },
| },
| {
| type: 'scatter',
| coordinateSystem: 'bmap',
| data: convertData(this.deviceList, 4),
| symbolSize: 15,
| itemStyle: {
| color: '#909399',
| },
| },
| {
| type: 'effectScatter',
| coordinateSystem: 'bmap',
| data: convertData(this.deviceList, 3),
| symbolSize: 15,
| showEffectOn: 'render',
| rippleEffect: {
| brushType: 'stroke',
| scale: 5,
| },
| label: {
| formatter: '{b}',
| position: 'right',
| show: false,
| },
| itemStyle: {
| color: '#67C23A',
| shadowBlur: 100,
| shadowColor: '#333',
| },
| zlevel: 1,
| },
| ],
| };
|
| option && myChart.setOption(option);
| },
|
| drawPieCpu() {
| // 基于准备好的dom,初始化echarts实例
| let myChart = this.$echarts.init(this.$refs.pieCpu);
| var option;
| option = {
| title: {
| text: 'CPU使用率',
| left: 'left',
| textStyle: {
| fontSize: 16,
| },
| },
| tooltip: {
| trigger: 'item',
| },
| legend: {
| orient: 'vertical',
| left: 'right',
| },
| color: ['#E6A23C', '#F56C6C', '#DDD'],
| series: [
| {
| name: 'CPU使用率 %',
| type: 'pie',
| radius: '55%',
| label: {
| show: false,
| },
| labelLine: {
| normal: {
| position: 'inner',
| show: false,
| },
| },
| data: [
| {
| value: this.server.cpu.used,
| name: '用户',
| },
| {
| value: this.server.cpu.sys,
| name: '系统',
| },
| {
| value: this.server.cpu.free,
| name: '空闲',
| },
| ],
| },
| ],
| };
| option && myChart.setOption(option);
| },
| drawPieMemery() {
| // 基于准备好的dom,初始化echarts实例
| let myChart = this.$echarts.init(this.$refs.pieMemery);
| var option;
| option = {
| title: {
| text: '内存使用率',
| left: 'left',
| textStyle: {
| fontSize: 16,
| },
| },
| tooltip: {
| trigger: 'item',
| },
| legend: {
| orient: 'vertical',
| left: 'right',
| },
| color: ['#F56C6C', '#DDD'],
| series: [
| {
| name: '内存使用率 G',
| type: 'pie',
| radius: '55%',
| label: {
| show: false,
| },
| labelLine: {
| normal: {
| position: 'inner',
| show: false,
| },
| },
| data: [
| {
| value: this.server.mem.used,
| name: '已用',
| },
| {
| value: this.server.mem.free,
| name: '剩余',
| },
| ],
| },
| ],
| };
| option && myChart.setOption(option);
| },
| drawPieDisk() {
| // 基于准备好的dom,初始化echarts实例
| let myChart = this.$echarts.init(this.$refs.pieDisk);
| var option;
| let one = this.server.sysFiles[0].used.replace('GB', '');
| let two = this.server.sysFiles[0].free.replace('GB', '');
| option = {
| title: {
| text: '系统盘使用率',
| left: 'left',
| textStyle: {
| fontSize: 16,
| },
| },
| tooltip: {
| trigger: 'item',
| },
| legend: {
| orient: 'vertical',
| left: 'right',
| },
| color: ['#F56C6C', '#DDD'],
| series: [
| {
| name: '磁盘状态 G',
| type: 'pie',
| radius: '55%',
| label: {
| show: false,
| },
| labelLine: {
| normal: {
| position: 'inner',
| show: false,
| },
| },
| data: [
| {
| value: one,
| name: '已用',
| },
| {
| value: two,
| name: '可用',
| },
| ],
| },
| ],
| };
| option && myChart.setOption(option);
| },
| },
| };
| </script>
|
| <style lang="scss" scoped>
| .phone {
| height: 729px;
| width: 370px;
| background-image: url('../assets/images/phone.png');
| background-size: cover;
| margin: 0 auto;
| }
|
| .phone-container {
| height: 618px;
| width: 343px;
| position: relative;
| top: 46px;
| left: 12px;
| background-color: #fff;
| }
|
| .content {
| line-height: 24px;
| padding: 10px;
| border: 1px solid #eee;
| border-radius: 10px;
| }
|
| .description {
| font-size: 12px;
|
| tr {
| line-height: 20px;
| }
| }
|
| .panel-group {
| .card-panel-col {
| margin-bottom: 10px;
| }
|
| .card-panel {
| height: 68px;
| cursor: pointer;
| position: relative;
| overflow: hidden;
| color: #666;
| border: 1px solid #eee;
| border-radius: 5px;
| //box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08);
| background-color: #fff;
|
| &:hover {
| .card-panel-icon-wrapper {
| color: #fff;
| }
|
| .icon-blue {
| background: #36a3f7;
| }
|
| .icon-green {
| background: #34bfa3;
| }
|
| .icon-red {
| background: #f56c6c;
| }
|
| .icon-orange {
| background: #e6a23c;
| }
| }
|
| .icon-blue {
| color: #36a3f7;
| }
|
| .icon-green {
| color: #34bfa3;
| }
|
| .icon-red {
| color: #f56c6c;
| }
|
| .icon-orange {
| color: #e6a23c;
| }
|
| .card-panel-icon-wrapper {
| float: left;
| margin: 10px;
| padding: 10px;
| transition: all 0.38s ease-out;
| border-radius: 6px;
| }
|
| .card-panel-icon {
| float: left;
| font-size: 30px;
| }
|
| .card-panel-description {
| float: right;
| font-weight: bold;
| margin: 15px;
| margin-left: 0px;
|
| .card-panel-text {
| line-height: 14px;
| color: rgba(0, 0, 0, 0.45);
| font-size: 14px;
| margin-bottom: 12px;
| text-align: right;
| }
|
| .card-panel-num {
| font-size: 18px;
| }
| }
| }
| }
| </style>
|
|