stationIndex.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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 ref="stationBar"></station-bar>
  121. </view>
  122. </template>
  123. <script>
  124. import stationBar from '../common/stationTab.vue'
  125. export default {
  126. onLoad: function(e) {
  127. this.stationName = uni.getStorageSync('stationName')
  128. },
  129. components: {
  130. stationBar
  131. },
  132. data() {
  133. return {
  134. stationName: '',
  135. stationTab: '',
  136. mesExData: [],
  137. windPowerData: []
  138. }
  139. },
  140. created() {
  141. this.windPowerData = [{
  142. name: '实际风速',
  143. value: 7,
  144. code: '(m/s)',
  145. min: 6,
  146. max: 8
  147. },
  148. {
  149. name: '预测风速',
  150. value: 10,
  151. code: '(m/s)',
  152. min: 6,
  153. max: 20
  154. },
  155. {
  156. name: '实际功率',
  157. value: 191,
  158. code: '(万kW)',
  159. min: 0,
  160. max: 200
  161. },
  162. {
  163. name: '理论功率',
  164. value: 459,
  165. code: '(万kW)',
  166. min: 0,
  167. max: 500
  168. }
  169. ]
  170. this.mesExData = [{
  171. leftName: '容量',
  172. leftValue: 282.3,
  173. leftCode: '(WM)',
  174. },
  175. {
  176. leftName: '安全天数',
  177. leftValue: 20,
  178. leftCode: '(天)',
  179. },
  180. {
  181. leftName: '日发电量',
  182. leftValue: 282.3,
  183. leftCode: '(万kWh)'
  184. },
  185. {
  186. leftName: '预测电量',
  187. leftValue: 282.3,
  188. leftCode: '(万kWh)'
  189. },
  190. {
  191. leftName: '月发电量',
  192. leftValue: 282.3,
  193. leftCode: '(万kWh)'
  194. },
  195. {
  196. leftName: '年发电量',
  197. leftValue: 282.3,
  198. leftCode: '(万kWh)'
  199. },
  200. ]
  201. },
  202. mounted() {
  203. this.$refs.stationBar.showTab = '首页'
  204. },
  205. methods: {
  206. back() {
  207. this.$tab.switchTab('/pages/home/index')
  208. },
  209. stationTabXY(it) {
  210. this.stationTab = it
  211. }
  212. }
  213. }
  214. </script>
  215. <style lang="scss">
  216. page {
  217. background-color: #202246;
  218. }
  219. .home {
  220. width: 100vw;
  221. background: url('../../static/jnImage/loginPage/windBack.png'), url('../../static/jnImage/loginPage/backWav.png');
  222. background-repeat: no-repeat, repeat;
  223. background-size: 100% 260px, 100% 5px;
  224. .box-bg {
  225. width: 100vw;
  226. padding: 5px 0;
  227. }
  228. .home_main {
  229. padding: 0 20px;
  230. .main_time {
  231. margin-top: 10px;
  232. .mesTime {
  233. display: flex;
  234. padding: 3px 0;
  235. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  236. image {
  237. width: 20px;
  238. height: 20px;
  239. }
  240. text {
  241. font-size: 34upx;
  242. color: #fff;
  243. margin-left: 15px;
  244. }
  245. text:nth-of-type(3) {
  246. position: relative;
  247. top: 3px;
  248. }
  249. }
  250. .mesAll {
  251. padding-bottom: 60px;
  252. .mesEx {
  253. // display: flex;
  254. line-height: 30px;
  255. color: #fff;
  256. .mesEx_left {
  257. width: 100%;
  258. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  259. padding: 3px 0;
  260. .mesEx_left_top {
  261. width: 40%;
  262. font-size: 28upx;
  263. .nameSty {
  264. width: 100%;
  265. display: inline-block;
  266. position: relative;
  267. text-align-last: justify;
  268. text-align: justify;
  269. }
  270. }
  271. .mesEx_left_end {
  272. width: 56%;
  273. margin: 0 10px;
  274. display: flex;
  275. justify-content: space-between;
  276. text:nth-of-type(1) {
  277. font-size: 34upx;
  278. }
  279. text:nth-of-type(2) {
  280. font-size: 20upx;
  281. color: #92949B;
  282. }
  283. }
  284. }
  285. }
  286. .windMsg {
  287. margin-top: 15px;
  288. .windMsg_title {
  289. width: 40%;
  290. height: 30px;
  291. display: flex;
  292. justify-content: center;
  293. align-items: center;
  294. padding: 6px 13px;
  295. background: rgba(51, 57, 118, 0.7);
  296. border-radius: 5px;
  297. image {
  298. width: 18px;
  299. height: 18px;
  300. }
  301. text {
  302. margin-left: 5px;
  303. font-size: 34upx;
  304. color: #fff;
  305. }
  306. }
  307. .windMsg_main {
  308. .windMsg_main_msg {
  309. margin-bottom: 8px;
  310. .windMsgSty {
  311. padding: 5px 8px;
  312. width: 49%;
  313. background: #3F4572;
  314. border-radius: 5px;
  315. .windMsgSty_left {
  316. width: 49%;
  317. height: 32px;
  318. image {
  319. width: 32px;
  320. height: 32px;
  321. }
  322. text {
  323. width: 100px;
  324. display: inline-block;
  325. color: #9A9BA6;
  326. font-size: 28upx;
  327. margin-left: 10px;
  328. position: relative;
  329. top: -26px;
  330. left: 28px;
  331. }
  332. .fourFont {
  333. top: -38px;
  334. }
  335. }
  336. .windMsgSty_right {
  337. width: 49%;
  338. position: relative;
  339. top: 9px;
  340. text:nth-of-type(1) {
  341. margin-left: 5px;
  342. width: 50%;
  343. font-size: 34upx;
  344. color: #fff;
  345. }
  346. text:nth-of-type(2) {
  347. font-size: 28upx;
  348. color: #9A9BA6;
  349. }
  350. }
  351. }
  352. }
  353. }
  354. }
  355. .matrix {
  356. .matrixItem {
  357. margin-top: 10px;
  358. .matrixText {
  359. font-size: 32upx;
  360. color: #9A9BA6;
  361. }
  362. .matrixItemRow {
  363. .matrixItemRowOne {
  364. width: 100%;
  365. height: 30px;
  366. background-color: #2675F6;
  367. text-align: center;
  368. line-height: 30px;
  369. color: #fff;
  370. font-size: 24upx;
  371. border-radius: 5px;
  372. // margin: 1px 2px;
  373. border: 1px solid #202246;
  374. }
  375. }
  376. }
  377. }
  378. }
  379. }
  380. }
  381. }
  382. </style>