Commit 2dc6c0414c0766d1300b647e4c2d4e5bf852f1a3
1 parent
0ac0991c
设备信息
Showing
2 changed files
with
33 additions
and
20 deletions
src/components/VEquipment.vue
| 1 | <template> | 1 | <template> |
| 2 | <div class="theme-wrap"> | 2 | <div class="theme-wrap"> |
| 3 | <card-title> <span>设备监控消息</span></card-title> | 3 | <card-title> <span>设备监控消息</span></card-title> |
| 4 | - <!--<div>{{equipment.PDA}}/{{equipment.PDATotal}}</div>--> | 4 | + |
| 5 | <ul class="theme-body" style="padding: 10px 20px 20px 0;"> | 5 | <ul class="theme-body" style="padding: 10px 20px 20px 0;"> |
| 6 | <li class="equipment-section"> | 6 | <li class="equipment-section"> |
| 7 | <div class="normal-status front"> | 7 | <div class="normal-status front"> |
| 8 | - <div class="text-blue">{{equipment.pdaper}}%</div> | 8 | + <p class="text-blue">{{equipment.pdaper}}%</p> |
| 9 | <p>PDA在线率</p> | 9 | <p>PDA在线率</p> |
| 10 | </div> | 10 | </div> |
| 11 | <div class="rotate-status back"> | 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 | <p>PDA/PDA在线</p> | 13 | <p>PDA/PDA在线</p> |
| 14 | </div> | 14 | </div> |
| 15 | </li> | 15 | </li> |
| 16 | - <li class="equipment-section"> | 16 | + <li class="equipment-section" > |
| 17 | <div class="normal-status front"> | 17 | <div class="normal-status front"> |
| 18 | - <div class="text-blue">{{equipment.berthper}}%</div> | 18 | + <p class="text-blue">{{equipment.berthper}}%</p> |
| 19 | <p>地磁在线率</p> | 19 | <p>地磁在线率</p> |
| 20 | </div> | 20 | </div> |
| 21 | <div class="rotate-status back"> | 21 | <div class="rotate-status back"> |
| @@ -23,19 +23,19 @@ | @@ -23,19 +23,19 @@ | ||
| 23 | <p>地磁/地磁</p> | 23 | <p>地磁/地磁</p> |
| 24 | </div> | 24 | </div> |
| 25 | </li> | 25 | </li> |
| 26 | - <li class="equipment-section"> | 26 | + <li class="equipment-section" > |
| 27 | <div class="normal-status front"> | 27 | <div class="normal-status front"> |
| 28 | - <div class="text-orange">23.4%</div> | 28 | + <p class="text-orange">{{equipment.daozhaper}}%</p> |
| 29 | <p>道闸在线率</p> | 29 | <p>道闸在线率</p> |
| 30 | </div> | 30 | </div> |
| 31 | <div class="rotate-status back"> | 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 | <p>道闸/道闸在线</p> | 33 | <p>道闸/道闸在线</p> |
| 34 | </div> | 34 | </div> |
| 35 | </li> | 35 | </li> |
| 36 | - <li class="equipment-section"> | 36 | + <li class="equipment-section" > |
| 37 | <div class="normal-status front"> | 37 | <div class="normal-status front"> |
| 38 | - <p class="text-orange">23.4%</p> | 38 | + <p class="text-orange">{{equipment.ydpper}}%</p> |
| 39 | <p>诱导屏在线率</p> | 39 | <p>诱导屏在线率</p> |
| 40 | </div> | 40 | </div> |
| 41 | <div class="rotate-status back"> | 41 | <div class="rotate-status back"> |
| @@ -101,7 +101,7 @@ export default { | @@ -101,7 +101,7 @@ export default { | ||
| 101 | transform-style:preserve-3d; | 101 | transform-style:preserve-3d; |
| 102 | /*transition:1s;*/ | 102 | /*transition:1s;*/ |
| 103 | animation:myfirst 6s linear infinite; | 103 | animation:myfirst 6s linear infinite; |
| 104 | - >div{ | 104 | + div{ |
| 105 | width: 95%; | 105 | width: 95%; |
| 106 | height: 95%; | 106 | height: 95%; |
| 107 | position: absolute; | 107 | position: absolute; |
| @@ -110,21 +110,16 @@ export default { | @@ -110,21 +110,16 @@ export default { | ||
| 110 | padding: 15px 0 10px 0; | 110 | padding: 15px 0 10px 0; |
| 111 | text-align: center; | 111 | text-align: center; |
| 112 | 112 | ||
| 113 | - p,div{ | 113 | + p{ |
| 114 | height: 50%; | 114 | height: 50%; |
| 115 | display: flex; | 115 | display: flex; |
| 116 | align-items: center; | 116 | align-items: center; |
| 117 | justify-content: center; | 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 | .normal-status{ | 123 | .normal-status{ |
| 129 | 124 | ||
| 130 | } | 125 | } |
src/style/reset.css
| @@ -216,4 +216,22 @@ table { | @@ -216,4 +216,22 @@ table { | ||
| 216 | text-overflow: ellipsis; | 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 |