stationIndex.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <template>
  2. <view class="warn">
  3. <view class="box-bg">
  4. <uni-nav-bar :fixed="true" dark left-icon="left" background-color='#202246' :title="stationName"
  5. @clickLeft="back" />
  6. </view>
  7. <view class="warn_main">
  8. <view class="warn_main_one">
  9. <view class="warn_main_one_top flex justify-between">
  10. <view class="warn_main_one_top_left">
  11. <image src="../../static/jnImage/powerPage/warnOne.png" mode=""></image>
  12. <text>离线</text>
  13. </view>
  14. <view class="warn_main_one_top_right">
  15. <text>88</text>
  16. </view>
  17. </view>
  18. <view class="warn_main_one_bot">
  19. <uni-row class="warn_data_row">
  20. <uni-col :span="12" v-for="(item,index) in warnData" :key="index">
  21. <view class="warn_data_col flex">
  22. <view class="warn_data_col_left">
  23. <text>{{item.name}}</text>
  24. </view>
  25. <view class="warn_data_col_right flex justify-between">
  26. <text>{{item.inPower}}</text>
  27. <text>台</text>
  28. </view>
  29. </view>
  30. </uni-col>
  31. </uni-row>
  32. </view>
  33. </view>
  34. <view class="warn_main_com flex justify-between" style="margin:10px 0">
  35. <view class="warn_main_com_left">
  36. <image src="../../static/jnImage/powerPage/warnTwo.png" mode=""></image>
  37. <text>实时故障预警</text>
  38. </view>
  39. <view class="warn_main_com_right" style="background-color: #F14E51;">
  40. <text>88</text>
  41. </view>
  42. </view>
  43. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  44. <view class="warn_main_com_left">
  45. <image src="../../static/jnImage/powerPage/warnThree.png" mode=""></image>
  46. <text>阈值预警</text>
  47. </view>
  48. <view class="warn_main_com_right" style="background-color: #1A41AD;">
  49. <text>88</text>
  50. </view>
  51. </view>
  52. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  53. <view class="warn_main_com_left">
  54. <image src="../../static/jnImage/powerPage/warnFour.png" mode=""></image>
  55. <text>温升预警</text>
  56. </view>
  57. <view class="warn_main_com_right" style="background-color: #3963AB;">
  58. <text>88</text>
  59. </view>
  60. </view>
  61. <view class="warn_main_com flex justify-between" style="margin:1px 0 10px 0">
  62. <view class="warn_main_com_left">
  63. <image src="../../static/jnImage/powerPage/warnFive.png" mode=""></image>
  64. <text>差值预警</text>
  65. </view>
  66. <view class="warn_main_com_right" style="background-color: #4E8CC8;">
  67. <text>88</text>
  68. </view>
  69. </view>
  70. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  71. <view class="warn_main_com_left">
  72. <image src="../../static/jnImage/powerPage/warnSix.png" mode=""></image>
  73. <text>风场平均风速达标未启机预警</text>
  74. </view>
  75. <view class="warn_main_com_right" style="background-color: #208A73;">
  76. <text>88</text>
  77. </view>
  78. </view>
  79. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  80. <view class="warn_main_com_left">
  81. <image src="../../static/jnImage/powerPage/warnSeven.png" mode=""></image>
  82. <text>风机平均风速达标未启机预警</text>
  83. </view>
  84. <view class="warn_main_com_right" style="background-color: #5EAC88;">
  85. <text>88</text>
  86. </view>
  87. </view>
  88. <view class="warn_main_com flex justify-between" style="margin:1px 0">
  89. <view class="warn_main_com_left">
  90. <image src="../../static/jnImage/powerPage/warnEight.png" mode=""></image>
  91. <text>设备更换周期提醒</text>
  92. </view>
  93. <view class="warn_main_com_right" style="background-color: #43B99F;">
  94. <text>88</text>
  95. </view>
  96. </view>
  97. </view>
  98. <station-bar ref="stationBar"></station-bar>
  99. </view>
  100. </template>
  101. <script>
  102. import stationBar from '../common/stationTab.vue'
  103. export default {
  104. onLoad: function() {
  105. this.stationName = uni.getStorageSync('stationName')
  106. },
  107. components: {
  108. stationBar
  109. },
  110. data() {
  111. return {
  112. stationName: '',
  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. mounted() {
  165. this.$refs.stationBar.showTab = '故障预警'
  166. },
  167. methods: {
  168. back() {
  169. this.$tab.switchTab('/pages/warn/index')
  170. },
  171. changeMsg() {
  172. this.$tab.navigateTo('/pages/common/messagePage')
  173. },
  174. changeStation() {
  175. this.$tab.navigateTo('/pages/common/stationListPage')
  176. },
  177. }
  178. }
  179. </script>
  180. <style lang="scss">
  181. page {
  182. background-color: #202246;
  183. }
  184. .warn {
  185. width: 100vw;
  186. background: url('../../static/jnImage/loginPage/windBack.png'), url('../../static/jnImage/loginPage/backWav.png');
  187. background-repeat: no-repeat, repeat;
  188. background-size: 100% 260px, 100% 5px;
  189. .home_header {
  190. width: calc(100% -32px);
  191. display: flex;
  192. justify-content: space-between;
  193. height: 60px;
  194. padding-top: 16px;
  195. // position: fixed;
  196. .header_message {
  197. width: 15%;
  198. image {
  199. position: relative;
  200. top: 5px;
  201. left: 10px;
  202. width: 25px;
  203. height: 25px;
  204. }
  205. }
  206. .header_title {
  207. width: 70%;
  208. position: relative;
  209. left: 5px;
  210. image {
  211. width: 28px;
  212. height: 22px;
  213. position: relative;
  214. top: 5px;
  215. }
  216. .titleName {
  217. line-height: 20px;
  218. font-size: 36upx;
  219. font-family: FZZhengHeiS-M-GB;
  220. font-weight: 600;
  221. color: #fff;
  222. position: relative;
  223. top: 8px;
  224. }
  225. }
  226. .header_more {
  227. width: 15%;
  228. position: relative;
  229. top: 10px;
  230. left: 10px;
  231. image {
  232. width: 25px;
  233. height: 18px;
  234. }
  235. }
  236. }
  237. .warn_main {
  238. padding: 0 20px;
  239. .warn_main_one {
  240. padding: 5px 10px;
  241. background-color: #3F4572;
  242. border-radius: 5px;
  243. .warn_main_one_top {
  244. .warn_main_one_top_left {
  245. image {
  246. width: 30px;
  247. height: 30px;
  248. position: relative;
  249. top: 1px;
  250. margin-right: 5px;
  251. }
  252. text {
  253. font-size: 30upx;
  254. color: #9A9BA6;
  255. position: relative;
  256. top: -10px;
  257. }
  258. }
  259. .warn_main_one_top_right {
  260. width: 20px;
  261. height: 20px;
  262. background-color: #686868;
  263. text-align: center;
  264. border-radius: 10px;
  265. position: relative;
  266. top: 6px;
  267. text {
  268. color: #fff;
  269. position: relative;
  270. top: 4px;
  271. }
  272. }
  273. }
  274. .warn_main_one_bot {
  275. margin-top: 5px;
  276. .warn_data_row {
  277. .warn_data_col {
  278. width: 98%;
  279. height: 20px;
  280. margin-bottom: 5px;
  281. background: #2E336D;
  282. border-radius: 5px;
  283. .warn_data_col_left {
  284. width: 50%;
  285. height: 20px;
  286. color: #fff;
  287. font-size: 30upx;
  288. background: #0B143E;
  289. border-radius: 5px;
  290. text {
  291. margin-left: 5px;
  292. }
  293. }
  294. .warn_data_col_right {
  295. height: 20px;
  296. color: #fff;
  297. font-size: 32upx;
  298. width: 48%;
  299. text:nth-of-type(1) {
  300. margin-left: 5px;
  301. width: 50%;
  302. font-size: 32upx;
  303. color: #fff;
  304. position: relative;
  305. top: 3px;
  306. }
  307. text:nth-of-type(2) {
  308. font-size: 22upx;
  309. color: #96B5D5;
  310. position: relative;
  311. top: 3px;
  312. }
  313. }
  314. }
  315. }
  316. }
  317. }
  318. .warn_main_com {
  319. padding: 5px 10px;
  320. background-color: #3F4572;
  321. border-radius: 5px;
  322. .warn_main_com_left {
  323. image {
  324. width: 30px;
  325. height: 30px;
  326. position: relative;
  327. top: 1px;
  328. margin-right: 5px;
  329. }
  330. text {
  331. font-size: 30upx;
  332. color: #9A9BA6;
  333. position: relative;
  334. top: -10px;
  335. }
  336. }
  337. .warn_main_com_right {
  338. width: 20px;
  339. height: 20px;
  340. text-align: center;
  341. border-radius: 10px;
  342. position: relative;
  343. top: 6px;
  344. text {
  345. color: #fff;
  346. position: relative;
  347. top: 4px;
  348. }
  349. }
  350. }
  351. }
  352. }
  353. </style>