index.vue 8.2 KB

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