stationIndex.vue 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. <template>
  2. <view class="home">
  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="home_main">
  8. <view class="main_time">
  9. <view class="mesTime">
  10. <image src="../../static/jnImage/indexPage/time.png"></image>
  11. <text>2023年11月20日</text>
  12. <text>星期一</text>
  13. <text>09:19</text>
  14. </view>
  15. <view class="mesAll">
  16. <uni-row class="mesEx">
  17. <uni-col :span="12" v-for="(item,index) in mesExData" :key="index">
  18. <view class="mesEx_left flex">
  19. <view class="mesEx_left_top">
  20. <text class="nameSty">{{item.leftName}}</text>
  21. </view>
  22. <view class="mesEx_left_end">
  23. <text>{{item.leftValue}}</text>
  24. <text>{{item.leftCode}}</text>
  25. </view>
  26. </view>
  27. </uni-col>
  28. </uni-row>
  29. <view class="windMsg">
  30. <view class="flex justify-center" style="margin-bottom: 6px;">
  31. <view class="windMsg_title">
  32. <image src="../../static/jnImage/indexPage/wancheng.png" mode=""></image>
  33. <text>风机状态</text>
  34. </view>
  35. </view>
  36. <view class="windMsg_main">
  37. <view class="windMsg_main_msg flex justify-between">
  38. <view class="windMsgSty flex">
  39. <view class="windMsgSty_left">
  40. <image src="../../static/jnImage/indexPage/yunxingNew.png" mode=""></image>
  41. <!-- <view class="windMsgCom" style="background-color: #c2c2c2">
  42. </view> -->
  43. <text>接入</text>
  44. </view>
  45. <view class="windMsgSty_right flex justify-between">
  46. <text>600</text>
  47. <text>台</text>
  48. </view>
  49. </view>
  50. <view class="windMsgSty flex">
  51. <view class="windMsgSty_left">
  52. <image src="../../static/jnImage/indexPage/daijiNew.png" mode=""></image>
  53. <text>待机</text>
  54. </view>
  55. <view class="windMsgSty_right flex justify-between">
  56. <text>600</text>
  57. <text>台</text>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="windMsg_main_msg flex justify-between">
  62. <view class="windMsgSty flex">
  63. <view class="windMsgSty_left">
  64. <image src="../../static/jnImage/indexPage/qidongNew.png" mode=""></image>
  65. <text>启动</text>
  66. </view>
  67. <view class="windMsgSty_right flex justify-between">
  68. <text>600</text>
  69. <text>台</text>
  70. </view>
  71. </view>
  72. <view class="windMsgSty flex">
  73. <view class="windMsgSty_left">
  74. <image src="../../static/jnImage/indexPage/gzdjNew.png" mode=""></image>
  75. <text class="fourFont">故障\n待机</text>
  76. </view>
  77. <view class="windMsgSty_right flex justify-between">
  78. <text>600</text>
  79. <text>台</text>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="windMsg_main_msg flex justify-between">
  84. <view class="windMsgSty flex">
  85. <view class="windMsgSty_left">
  86. <image src="../../static/jnImage/indexPage/tingjiNew.png" mode=""></image>
  87. <text>停机</text>
  88. </view>
  89. <view class="windMsgSty_right flex justify-between">
  90. <text>600</text>
  91. <text>台</text>
  92. </view>
  93. </view>
  94. <view class="windMsgSty flex">
  95. <view class="windMsgSty_left">
  96. <image src="../../static/jnImage/indexPage/lixianNew.png" mode=""></image>
  97. <text>离线</text>
  98. </view>
  99. <view class="windMsgSty_right flex justify-between">
  100. <text>600</text>
  101. <text>台</text>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="matrix">
  108. <view class="matrixItem" v-for="(item,index) in 2" :key="index">
  109. <view class="matrixText">乌力吉一期</view>
  110. <uni-row class="matrixItemRow">
  111. <uni-col :span="3" v-for="(item,index) in 45" :key="index">
  112. <view class="matrixItemRowOne">A01</view>
  113. </uni-col>
  114. </uni-row>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <station-bar @stationTab="stationTabXY"></station-bar>
  121. </view>
  122. </template>
  123. </template>
  124. <script>
  125. import stationBar from '../common/stationTab.vue'
  126. export default {
  127. onLoad: function(e) {
  128. this.stationName = e.stationName
  129. },
  130. components: {
  131. stationBar
  132. },
  133. data() {
  134. return {
  135. stationName: '',
  136. stationTab: '',
  137. mesExData: [],
  138. windPowerData: []
  139. }
  140. },
  141. created() {
  142. this.windPowerData = [{
  143. name: '实际风速',
  144. value: 7,
  145. code: '(m/s)',
  146. min: 6,
  147. max: 8
  148. },
  149. {
  150. name: '预测风速',
  151. value: 10,
  152. code: '(m/s)',
  153. min: 6,
  154. max: 20
  155. },
  156. {
  157. name: '实际功率',
  158. value: 191,
  159. code: '(万kW)',
  160. min: 0,
  161. max: 200
  162. },
  163. {
  164. name: '理论功率',
  165. value: 459,
  166. code: '(万kW)',
  167. min: 0,
  168. max: 500
  169. }
  170. ]
  171. this.mesExData = [{
  172. leftName: '容量',
  173. leftValue: 282.3,
  174. leftCode: '(WM)',
  175. },
  176. {
  177. leftName: '安全天数',
  178. leftValue: 20,
  179. leftCode: '(天)',
  180. },
  181. {
  182. leftName: '日发电量',
  183. leftValue: 282.3,
  184. leftCode: '(万kWh)'
  185. },
  186. {
  187. leftName: '预测电量',
  188. leftValue: 282.3,
  189. leftCode: '(万kWh)'
  190. },
  191. {
  192. leftName: '月发电量',
  193. leftValue: 282.3,
  194. leftCode: '(万kWh)'
  195. },
  196. {
  197. leftName: '年发电量',
  198. leftValue: 282.3,
  199. leftCode: '(万kWh)'
  200. },
  201. ]
  202. },
  203. methods: {
  204. changeMsg() {
  205. this.$tab.navigateTo('/pages/common/uniNavBar')
  206. },
  207. back() {
  208. this.$tab.switchTab('/pages/home/index')
  209. },
  210. changeStation() {
  211. this.$tab.navigateTo('/pages/common/stationListPage')
  212. },
  213. stationTabXY(it) {
  214. this.stationTab = it
  215. }
  216. }
  217. }
  218. </script>
  219. <style lang="scss">
  220. page {
  221. background-color: #202246;
  222. }
  223. .home {
  224. width: 100vw;
  225. background: url('../../static/jnImage/loginPage/windBack.png'), url('../../static/jnImage/loginPage/backWav.png');
  226. background-repeat: no-repeat, repeat;
  227. background-size: 100% 260px, 100% 5px;
  228. .box-bg {
  229. width: 100vw;
  230. padding: 5px 0;
  231. }
  232. .home_main {
  233. padding: 0 20px;
  234. .main_time {
  235. margin-top: 10px;
  236. .mesTime {
  237. display: flex;
  238. padding: 3px 0;
  239. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  240. image {
  241. width: 20px;
  242. height: 20px;
  243. }
  244. text {
  245. font-size: 34upx;
  246. color: #fff;
  247. margin-left: 15px;
  248. }
  249. text:nth-of-type(3) {
  250. position: relative;
  251. top: 3px;
  252. }
  253. }
  254. .mesAll {
  255. padding-bottom: 60px;
  256. .mesEx {
  257. // display: flex;
  258. line-height: 30px;
  259. color: #fff;
  260. .mesEx_left {
  261. width: 100%;
  262. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  263. padding: 3px 0;
  264. .mesEx_left_top {
  265. width: 40%;
  266. font-size: 28upx;
  267. .nameSty {
  268. width: 100%;
  269. display: inline-block;
  270. position: relative;
  271. text-align-last: justify;
  272. text-align: justify;
  273. }
  274. }
  275. .mesEx_left_end {
  276. width: 56%;
  277. margin: 0 10px;
  278. display: flex;
  279. justify-content: space-between;
  280. text:nth-of-type(1) {
  281. font-size: 34upx;
  282. }
  283. text:nth-of-type(2) {
  284. font-size: 20upx;
  285. color: #92949B;
  286. }
  287. }
  288. }
  289. }
  290. .windMsg {
  291. margin-top: 15px;
  292. .windMsg_title {
  293. width: 40%;
  294. height: 30px;
  295. display: flex;
  296. justify-content: center;
  297. align-items: center;
  298. padding: 6px 13px;
  299. background: rgba(51, 57, 118, 0.7);
  300. border-radius: 5px;
  301. image {
  302. width: 18px;
  303. height: 18px;
  304. }
  305. text {
  306. margin-left: 5px;
  307. font-size: 34upx;
  308. color: #fff;
  309. }
  310. }
  311. .windMsg_main {
  312. .windMsg_main_msg {
  313. margin-bottom: 8px;
  314. .windMsgSty {
  315. padding: 5px 8px;
  316. width: 49%;
  317. background: #3F4572;
  318. border-radius: 5px;
  319. .windMsgSty_left {
  320. width: 49%;
  321. height: 32px;
  322. image {
  323. width: 32px;
  324. height: 32px;
  325. }
  326. text {
  327. width: 100px;
  328. display: inline-block;
  329. color: #9A9BA6;
  330. font-size: 28upx;
  331. margin-left: 10px;
  332. position: relative;
  333. top: -26px;
  334. left: 28px;
  335. }
  336. .fourFont {
  337. top: -38px;
  338. }
  339. }
  340. .windMsgSty_right {
  341. width: 49%;
  342. position: relative;
  343. top: 9px;
  344. text:nth-of-type(1) {
  345. margin-left: 5px;
  346. width: 50%;
  347. font-size: 34upx;
  348. color: #fff;
  349. }
  350. text:nth-of-type(2) {
  351. font-size: 28upx;
  352. color: #9A9BA6;
  353. }
  354. }
  355. }
  356. }
  357. }
  358. }
  359. .matrix {
  360. .matrixItem {
  361. margin-top: 10px;
  362. .matrixText {
  363. font-size: 32upx;
  364. color: #9A9BA6;
  365. }
  366. .matrixItemRow {
  367. .matrixItemRowOne {
  368. width: 100%;
  369. height: 30px;
  370. background-color: #2675F6;
  371. text-align: center;
  372. line-height: 30px;
  373. color: #fff;
  374. font-size: 24upx;
  375. border-radius: 5px;
  376. // margin: 1px 2px;
  377. border: 1px solid #202246;
  378. }
  379. }
  380. }
  381. }
  382. }
  383. }
  384. }
  385. }
  386. </style>