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
| <template>
| <div class="chartListBox" :childData="childData">
| <div class="aside-title">{{ childData.title }}</div>
| <div class="echartBox">
| <div class="chartMenu" v-for="(item, key) in childData.val" :key="key">
| <table class="chartTable">
| <tr>
| <td></td>
| <td>{{ item.t1 }}</td>
| <td>{{ item.t2 }}</td>
| </tr>
|
| <tr>
| <td class="chartTd" colspan="3">
| <div class="elDriver">
| </div>
| </td>
| </tr>
| <tr>
| <td>{{ item.name }}</td>
| <td style="color:#67c23a">{{ item.v1 }}</td>
| <td style="color:#f56c6c"> {{ item.v2 }}</td>
| </tr>
| </table>
|
| </div>
|
| </div>
| </div>
| </template>
|
| <script>
|
|
| export default {
| props: {
| childData: {
| type: Object,
| default: null
| }
| },
| data() {
| return {
| // childData:null,
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .chartListBox {
| width: 100%;
| height: 100%;
| position: relative;
| display: flex;
| flex-direction: column;
|
| .aside-title {
| box-sizing: border-box;
| padding-left: 30px;
| font-size: 15px;
| font-family: YouSheBiaoTiHei, YouSheBiaoTiHei-Regular;
| color: #fff;
| width: 100%;
| height: 45px;
| line-height: 45px;
| background-size: 100% 100%;
| background-repeat: no-repeat;
| }
|
| .echartBox {
| flex: 1;
| padding: 5px;
| position: relative;
| color: white;
| display: flex;
| flex-direction: column;
| justify-content: space-around;
|
| .chartTd {
| width: 100%;
| padding: 0px !important;
| }
|
| .elDriver {
| width: 100%;
| height: 2px;
| background: #409EFF;
| margin: 10px 0px;
|
| }
|
| .chartTable {
| width: 100%;
|
| td {
| text-align: center;
| }
| }
|
| }
| }
| </style>
|
|