index.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <template>
  2. <view class="warn">
  3. <company-header></company-header>
  4. <view class="warn_main">
  5. <view class="warn_main_one">
  6. <view class="warn_main_one_top flex justify-between">
  7. <view class="warn_main_one_top_left">
  8. <image src="../../static/jnImage/powerPage/warnOne.png" mode=""></image>
  9. <text>离线</text>
  10. </view>
  11. <view class="warn_main_one_top_right">
  12. <text>88</text>
  13. </view>
  14. </view>
  15. <view class="warn_main_one_bot">
  16. <uni-row class="warn_data_row">
  17. <uni-col :span="12" v-for="(item,index) in warnData" :key="index">
  18. <view class="warn_data_col flex">
  19. <view class="warn_data_col_left">
  20. <text>{{item.name}}</text>
  21. </view>
  22. <view class="warn_data_col_right flex justify-between">
  23. <text>{{item.inPower}}</text>
  24. <text>台</text>
  25. </view>
  26. </view>
  27. </uni-col>
  28. </uni-row>
  29. </view>
  30. </view>
  31. <view class="warn_main_com flex justify-between" style="margin:10px 0">
  32. <view class="warn_main_com_left">
  33. <image src="../../static/jnImage/powerPage/warnTwo.png" mode=""></image>
  34. <text>实时故障预警</text>
  35. </view>
  36. <view class="warn_main_com_right" style="background-color: #F14E51;">
  37. <text>88</text>
  38. </view>
  39. </view>
  40. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  41. <view class="warn_main_com_left">
  42. <image src="../../static/jnImage/powerPage/warnThree.png" mode=""></image>
  43. <text>阈值预警</text>
  44. </view>
  45. <view class="warn_main_com_right" style="background-color: #1A41AD;">
  46. <text>88</text>
  47. </view>
  48. </view>
  49. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  50. <view class="warn_main_com_left">
  51. <image src="../../static/jnImage/powerPage/warnFour.png" mode=""></image>
  52. <text>温升预警</text>
  53. </view>
  54. <view class="warn_main_com_right" style="background-color: #3963AB;">
  55. <text>88</text>
  56. </view>
  57. </view>
  58. <view class="warn_main_com flex justify-between" style="margin:1px 0 10px 0">
  59. <view class="warn_main_com_left">
  60. <image src="../../static/jnImage/powerPage/warnFive.png" mode=""></image>
  61. <text>差值预警</text>
  62. </view>
  63. <view class="warn_main_com_right" style="background-color: #4E8CC8;">
  64. <text>88</text>
  65. </view>
  66. </view>
  67. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  68. <view class="warn_main_com_left">
  69. <image src="../../static/jnImage/powerPage/warnSix.png" mode=""></image>
  70. <text>风场平均风速达标未启机预警</text>
  71. </view>
  72. <view class="warn_main_com_right" style="background-color: #208A73;">
  73. <text>88</text>
  74. </view>
  75. </view>
  76. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  77. <view class="warn_main_com_left">
  78. <image src="../../static/jnImage/powerPage/warnSeven.png" mode=""></image>
  79. <text>风机平均风速达标未启机预警</text>
  80. </view>
  81. <view class="warn_main_com_right" style="background-color: #5EAC88;">
  82. <text>88</text>
  83. </view>
  84. </view>
  85. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  86. <view class="warn_main_com_left">
  87. <image src="../../static/jnImage/powerPage/warnEight.png" mode=""></image>
  88. <text>设备更换周期提醒</text>
  89. </view>
  90. <view class="warn_main_com_right" style="background-color: #43B99F;">
  91. <text>88</text>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </template>
  97. <script>
  98. import companyHeader from '../common/companyHeader.vue'
  99. export default {
  100. onLoad: function() {},
  101. components: {
  102. companyHeader
  103. },
  104. data() {
  105. return {
  106. warnData: []
  107. }
  108. },
  109. created() {
  110. this.warnData = [{
  111. inPower: 961,
  112. allPower: 1865,
  113. name: '宝龙山'
  114. },
  115. {
  116. inPower: 852,
  117. allPower: 1865,
  118. name: '乌力吉'
  119. },
  120. {
  121. inPower: 696,
  122. allPower: 1865,
  123. name: '浩日格吐'
  124. },
  125. {
  126. inPower: 527,
  127. allPower: 1865,
  128. name: '开鲁'
  129. },
  130. {
  131. inPower: 935,
  132. allPower: 1865,
  133. name: '景观'
  134. },
  135. {
  136. inPower: 1022,
  137. allPower: 1865,
  138. name: '高力板'
  139. },
  140. {
  141. inPower: 752,
  142. allPower: 1865,
  143. name: '书声'
  144. },
  145. {
  146. inPower: 1520,
  147. allPower: 1865,
  148. name: '宝力根花'
  149. },
  150. {
  151. inPower: 365.6,
  152. allPower: 1865,
  153. name: '振发'
  154. }
  155. ]
  156. },
  157. methods: {
  158. }
  159. }
  160. </script>
  161. <style lang="scss">
  162. page {
  163. background-color: #202246;
  164. }
  165. .warn {
  166. width: 100vw;
  167. background: url('../../static/jnImage/loginPage/windBack.png'), url('../../static/jnImage/loginPage/backWav.png');
  168. background-repeat: no-repeat, repeat;
  169. background-size: 100% 260px, 100% 5px;
  170. .warn_main {
  171. padding: 0 20px;
  172. .warn_main_one {
  173. padding: 5px 10px;
  174. background-color: #3F4572;
  175. border-radius: 5px;
  176. .warn_main_one_top {
  177. .warn_main_one_top_left {
  178. image {
  179. width: 30px;
  180. height: 30px;
  181. position: relative;
  182. top: 1px;
  183. margin-right: 5px;
  184. }
  185. text {
  186. font-size: 30upx;
  187. color: #9A9BA6;
  188. position: relative;
  189. top: -10px;
  190. }
  191. }
  192. .warn_main_one_top_right {
  193. width: 20px;
  194. height: 20px;
  195. background-color: #686868;
  196. text-align: center;
  197. border-radius: 10px;
  198. position: relative;
  199. top: 6px;
  200. text {
  201. color: #fff;
  202. position: relative;
  203. top: 4px;
  204. }
  205. }
  206. }
  207. .warn_main_one_bot {
  208. margin-top: 5px;
  209. .warn_data_row {
  210. .warn_data_col {
  211. width: 98%;
  212. height: 20px;
  213. margin-bottom: 5px;
  214. background: #2E336D;
  215. border-radius: 5px;
  216. .warn_data_col_left {
  217. width: 50%;
  218. height: 20px;
  219. color: #fff;
  220. font-size: 30upx;
  221. background: #0B143E;
  222. border-radius: 5px;
  223. text {
  224. margin-left: 5px;
  225. }
  226. }
  227. .warn_data_col_right {
  228. height: 20px;
  229. color: #fff;
  230. font-size: 32upx;
  231. width: 48%;
  232. text:nth-of-type(1) {
  233. margin-left: 5px;
  234. width: 50%;
  235. font-size: 32upx;
  236. color: #fff;
  237. position: relative;
  238. top: 3px;
  239. }
  240. text:nth-of-type(2) {
  241. font-size: 22upx;
  242. color: #96B5D5;
  243. position: relative;
  244. top: 3px;
  245. }
  246. }
  247. }
  248. }
  249. }
  250. }
  251. .warn_main_com {
  252. padding: 5px 10px;
  253. background-color: #3F4572;
  254. border-radius: 5px;
  255. .warn_main_com_left {
  256. image {
  257. width: 30px;
  258. height: 30px;
  259. position: relative;
  260. top: 1px;
  261. margin-right: 5px;
  262. }
  263. text {
  264. font-size: 30upx;
  265. color: #9A9BA6;
  266. position: relative;
  267. top: -10px;
  268. }
  269. }
  270. .warn_main_com_right {
  271. width: 20px;
  272. height: 20px;
  273. text-align: center;
  274. border-radius: 10px;
  275. position: relative;
  276. top: 6px;
  277. text {
  278. color: #fff;
  279. position: relative;
  280. top: 4px;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. </style>