Commit 2dc6c0414c0766d1300b647e4c2d4e5bf852f1a3
1 parent
0ac0991c
设备信息
Showing
2 changed files
with
33 additions
and
20 deletions
src/components/VEquipment.vue
1 | 1 | <template> |
2 | 2 | <div class="theme-wrap"> |
3 | 3 | <card-title> <span>设备监控消息</span></card-title> |
4 | - <!--<div>{{equipment.PDA}}/{{equipment.PDATotal}}</div>--> | |
4 | + | |
5 | 5 | <ul class="theme-body" style="padding: 10px 20px 20px 0;"> |
6 | 6 | <li class="equipment-section"> |
7 | 7 | <div class="normal-status front"> |
8 | - <div class="text-blue">{{equipment.pdaper}}%</div> | |
8 | + <p class="text-blue">{{equipment.pdaper}}%</p> | |
9 | 9 | <p>PDA在线率</p> |
10 | 10 | </div> |
11 | 11 | <div class="rotate-status back"> |
12 | - <div class="text-blue">{{equipment.PDA}}/{{equipment.PDATotal}}</div> | |
12 | + <p class="text-blue">{{equipment.PDA}}/{{equipment.PDATotal}}</p> | |
13 | 13 | <p>PDA/PDA在线</p> |
14 | 14 | </div> |
15 | 15 | </li> |
16 | - <li class="equipment-section"> | |
16 | + <li class="equipment-section" > | |
17 | 17 | <div class="normal-status front"> |
18 | - <div class="text-blue">{{equipment.berthper}}%</div> | |
18 | + <p class="text-blue">{{equipment.berthper}}%</p> | |
19 | 19 | <p>地磁在线率</p> |
20 | 20 | </div> |
21 | 21 | <div class="rotate-status back"> |
... | ... | @@ -23,19 +23,19 @@ |
23 | 23 | <p>地磁/地磁</p> |
24 | 24 | </div> |
25 | 25 | </li> |
26 | - <li class="equipment-section"> | |
26 | + <li class="equipment-section" > | |
27 | 27 | <div class="normal-status front"> |
28 | - <div class="text-orange">23.4%</div> | |
28 | + <p class="text-orange">{{equipment.daozhaper}}%</p> | |
29 | 29 | <p>道闸在线率</p> |
30 | 30 | </div> |
31 | 31 | <div class="rotate-status back"> |
32 | - <div class="text-orange">{{equipment.daozha}}/{{equipment.daozhaTotal}}</div> | |
32 | + <p class="text-orange">{{equipment.daozha}}/{{equipment.daozhaTotal}}</p> | |
33 | 33 | <p>道闸/道闸在线</p> |
34 | 34 | </div> |
35 | 35 | </li> |
36 | - <li class="equipment-section"> | |
36 | + <li class="equipment-section" > | |
37 | 37 | <div class="normal-status front"> |
38 | - <p class="text-orange">23.4%</p> | |
38 | + <p class="text-orange">{{equipment.ydpper}}%</p> | |
39 | 39 | <p>诱导屏在线率</p> |
40 | 40 | </div> |
41 | 41 | <div class="rotate-status back"> |
... | ... | @@ -101,7 +101,7 @@ export default { |
101 | 101 | transform-style:preserve-3d; |
102 | 102 | /*transition:1s;*/ |
103 | 103 | animation:myfirst 6s linear infinite; |
104 | - >div{ | |
104 | + div{ | |
105 | 105 | width: 95%; |
106 | 106 | height: 95%; |
107 | 107 | position: absolute; |
... | ... | @@ -110,21 +110,16 @@ export default { |
110 | 110 | padding: 15px 0 10px 0; |
111 | 111 | text-align: center; |
112 | 112 | |
113 | - p,div{ | |
113 | + p{ | |
114 | 114 | height: 50%; |
115 | 115 | display: flex; |
116 | 116 | align-items: center; |
117 | 117 | justify-content: center; |
118 | 118 | } |
119 | - .text-blue{ | |
120 | - @include fontStyle(24px); | |
121 | - background-image: $fontBlue; | |
122 | - } | |
123 | - .text-orange{ | |
124 | - @include fontStyle(24px); | |
125 | - background-image: $fontOrange; | |
126 | - } | |
119 | + | |
120 | + | |
127 | 121 | } |
122 | + | |
128 | 123 | .normal-status{ |
129 | 124 | |
130 | 125 | } | ... | ... |
src/style/reset.css
... | ... | @@ -216,4 +216,22 @@ table { |
216 | 216 | text-overflow: ellipsis; |
217 | 217 | } |
218 | 218 | |
219 | +.text-blue{ | |
220 | +/*//@include fontStyle(24px);*/ | |
221 | +/*//background-image: $fontBlue;*/ | |
222 | + font-size: 24px; | |
223 | + font-weight:bold; | |
224 | + -webkit-background-clip: text; | |
225 | + -webkit-text-fill-color: transparent; | |
226 | + background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(rgba(0,202,254, 1)), to(rgba(39,114,244, 1))); | |
227 | + | |
228 | +} | |
229 | +.text-orange{ | |
230 | + font-size: 24px; | |
231 | + font-weight:bold; | |
232 | + -webkit-background-clip: text; | |
233 | + -webkit-text-fill-color: transparent; | |
234 | + background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(rgba(255,186,0, 1)), to(rgba(255,129,0, 1))); | |
235 | +} | |
236 | + | |
219 | 237 | ... | ... |