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
| <template>
| <div id="centerLeft1">
| <div class="bg-color-black">
| <div class="d-flex pt-2 pl-2">
| <span>
| <icon name="chart-pie" style="background-color: #ffffff" class="text-icon"></icon>
| </span>
| <div class="d-flex">
| <span class="fs-xl text mx-2">过站合格率排行</span>
| <dv-decoration-1 class="dv-dec-1" />
| </div>
| </div>
| <div class="d-flex jc-center">
| <dv-scroll-ranking-board class="dv-scr-rank-board mt-1" :config="ranking" />
| <!-- <CenterLeft2Chart />-->
| </div>
| </div>
| </div>
| </template>
|
| <script>
| // import CenterLeft2Chart from "@/components/echart/centerLeft/centerLeft2Chart";
| export default {
| data() {
| return {
| ranking: {
| data: [
| {
| name: 'OP010',
| value: 99
| },
| {
| name: 'OP020',
| value: 98
| },
| {
| name: 'OP030',
| value: 100
| },
| {
| name: 'OP040',
| value: 99
| },
| {
| name: 'OP070',
| value: 97
| },
| {
| name: 'OP060',
| value: 99
| },
| {
| name: 'OP080',
| value: 97
| },
| {
| name: 'OP090',
| value: 100
| },
| {
| name: 'OP100',
| value: 98
| },
| {
| name: 'OP120-2',
| value: 99
| },
| {
| name: 'OP170',
| value: 98
| },
| {
| name: 'OP180',
| value: 98
| },
| {
| name: 'OP210',
| value: 98
| },
| {
| name: 'OP240',
| value: 100
| },
| ],
| carousel: 'single',
| unit: '%'
| },
| water: {
| data: [24, 45],
| shape: 'roundRect',
| formatter: '{value}%',
| waveNum: 3
| },
| }
| },
| mounted() {
| this.tops();
| this.changeTiming();
| },
| methods: {
| tops(){
| this.$http.get('http://192.168.0.249:8083/passingStationCollection/bottomLeftChart2')
| .then((response)=>{
| this.ranking = {
| data: response.data.data.xList,
| unit: '%'
| }
| })
| },
| changeTiming() {
| setInterval(() => {
| this.tops();
| }, 60000)
| },
| }
| };
| </script>
|
| <style lang="scss" scoped>
| #centerLeft1 {
| $box-width: 300px;
| $box-height: 410px;
| padding: 16px;
| height: $box-height;
| min-width: $box-width;
| border-radius: 5px;
| .bg-color-black {
| height: $box-height - 30px;
| border-radius: 10px;
| }
| .text {
| color: #c3cbde;
| font-size: 16px;
| margin-top: -1px;
| }
| .dv-dec-1 {
| position: relative;
| width: 100px;
| height: 20px;
| top: -3px;
| }
| .chart-box {
| margin-top: 16px;
| width: 170px;
| height: 170px;
| .active-ring-name {
| padding-top: 10px;
| }
| }
| .dv-scr-rank-board {
| height: 335px;
| }
| }
| </style>
|
|