index.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. <template>
  2. <view class="home">
  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. <text class="titleName">发电场站生产实时运营管理平台</text>
  9. </view>
  10. <view class="header_more" @click="changeStation">
  11. <image src="../../static/jnImage/indexPage/moreNew.png"></image>
  12. </view>
  13. </view>
  14. <view class="home_main">
  15. <view class="main_time">
  16. <view class="mesTime">
  17. <image src="../../static/jnImage/indexPage/time.png"></image>
  18. <text>2023年11月20日</text>
  19. <text>星期一</text>
  20. <text>09:19</text>
  21. </view>
  22. <view class="mesAll">
  23. <uni-row class="mesEx">
  24. <uni-col :span="12" v-for="(item,index) in mesExData" :key="index">
  25. <view class="mesEx_left flex">
  26. <view class="mesEx_left_top">
  27. <text class="nameSty">{{item.leftName}}</text>
  28. </view>
  29. <view class="mesEx_left_end">
  30. <text>{{item.leftValue}}</text>
  31. <text>{{item.leftCode}}</text>
  32. </view>
  33. </view>
  34. </uni-col>
  35. </uni-row>
  36. <uni-row class="windpowerCl">
  37. <uni-col :span="12" v-for="(item,index) in windPowerData" :key="index">
  38. <view class="windpowerMsg">
  39. <view class="windpowerMsg_com flex justify-between">
  40. <text style="font-size: 28upx">{{item.name}}</text>
  41. <text>{{item.code}}</text>
  42. </view>
  43. <view class="windpowerMsg_Data">
  44. <text>{{item.value}}</text>
  45. </view>
  46. <view class="windpowerMsg_com flex justify-between">
  47. <text>min:{{item.min}}</text>
  48. <text>max:{{item.max}}</text>
  49. </view>
  50. </view>
  51. </uni-col>
  52. </uni-row>
  53. <view class="windMsg">
  54. <view class="flex justify-center" style="margin-bottom: 6px;">
  55. <view class="windMsg_title">
  56. <image src="../../static/jnImage/indexPage/wancheng.png" mode=""></image>
  57. <text>风机状态</text>
  58. </view>
  59. </view>
  60. <view class="windMsg_main">
  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/yunxingNew.png" mode=""></image>
  65. <!-- <view class="windMsgCom" style="background-color: #c2c2c2">
  66. </view> -->
  67. <text>接入</text>
  68. </view>
  69. <view class="windMsgSty_right flex justify-between">
  70. <text>600</text>
  71. <text>台</text>
  72. </view>
  73. </view>
  74. <view class="windMsgSty flex">
  75. <view class="windMsgSty_left">
  76. <image src="../../static/jnImage/indexPage/daijiNew.png" mode=""></image>
  77. <text>待机</text>
  78. </view>
  79. <view class="windMsgSty_right flex justify-between">
  80. <text>600</text>
  81. <text>台</text>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="windMsg_main_msg flex justify-between">
  86. <view class="windMsgSty flex">
  87. <view class="windMsgSty_left">
  88. <image src="../../static/jnImage/indexPage/qidongNew.png" mode=""></image>
  89. <text>启动</text>
  90. </view>
  91. <view class="windMsgSty_right flex justify-between">
  92. <text>600</text>
  93. <text>台</text>
  94. </view>
  95. </view>
  96. <view class="windMsgSty flex">
  97. <view class="windMsgSty_left">
  98. <image src="../../static/jnImage/indexPage/gzdjNew.png" mode=""></image>
  99. <text class="fourFont">故障\n待机</text>
  100. </view>
  101. <view class="windMsgSty_right flex justify-between">
  102. <text>600</text>
  103. <text>台</text>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="windMsg_main_msg flex justify-between">
  108. <view class="windMsgSty flex">
  109. <view class="windMsgSty_left">
  110. <image src="../../static/jnImage/indexPage/tingjiNew.png" mode=""></image>
  111. <text>停机</text>
  112. </view>
  113. <view class="windMsgSty_right flex justify-between">
  114. <text>600</text>
  115. <text>台</text>
  116. </view>
  117. </view>
  118. <view class="windMsgSty flex">
  119. <view class="windMsgSty_left">
  120. <image src="../../static/jnImage/indexPage/lixianNew.png" mode=""></image>
  121. <text>离线</text>
  122. </view>
  123. <view class="windMsgSty_right flex justify-between">
  124. <text>600</text>
  125. <text>台</text>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </view>
  131. <view class="powerMsg">
  132. <view class="flex justify-center" style="margin-bottom: 6px;">
  133. <view class="windMsg_title">
  134. <image src="../../static/jnImage/indexPage/wancheng.png" mode=""></image>
  135. <text>光伏状态</text>
  136. </view>
  137. </view>
  138. <view class="windMsg_main">
  139. <view class="windMsg_main_msg flex justify-between">
  140. <view class="windMsgSty flex">
  141. <view class="windMsgSty_left">
  142. <image src="../../static/jnImage/indexPage/yunxingGFNew.png" mode=""></image>
  143. <text>接入</text>
  144. </view>
  145. <view class="windMsgSty_right flex justify-between">
  146. <text>600</text>
  147. <text>台</text>
  148. </view>
  149. </view>
  150. <view class="windMsgSty flex">
  151. <view class="windMsgSty_left">
  152. <image src="../../static/jnImage/indexPage/daijiP.png" mode=""></image>
  153. <text>待机</text>
  154. </view>
  155. <view class="windMsgSty_right flex justify-between">
  156. <text>600</text>
  157. <text>台</text>
  158. </view>
  159. </view>
  160. </view>
  161. <view class="windMsg_main_msg flex justify-between">
  162. <view class="windMsgSty flex">
  163. <view class="windMsgSty_left">
  164. <image src="../../static/jnImage/indexPage/yunxingP.png" mode=""></image>
  165. <text>运行</text>
  166. </view>
  167. <view class="windMsgSty_right flex justify-between">
  168. <text>600</text>
  169. <text>台</text>
  170. </view>
  171. </view>
  172. <view class="windMsgSty flex">
  173. <view class="windMsgSty_left">
  174. <image src="../../static/jnImage/indexPage/guzhangNew.png" mode=""></image>
  175. <text>故障</text>
  176. </view>
  177. <view class="windMsgSty_right flex justify-between">
  178. <text>600</text>
  179. <text>台</text>
  180. </view>
  181. </view>
  182. </view>
  183. <view class="windMsg_main_msg flex justify-between">
  184. <view class="windMsgSty flex">
  185. <view class="windMsgSty_left">
  186. <image src="../../static/jnImage/indexPage/gzwhNew.png" mode=""></image>
  187. <text>维护</text>
  188. </view>
  189. <view class="windMsgSty_right flex justify-between">
  190. <text>600</text>
  191. <text>台</text>
  192. </view>
  193. </view>
  194. <view class="windMsgSty flex">
  195. <view class="windMsgSty_left">
  196. <image src="../../static/jnImage/indexPage/lixianNew.png" mode=""></image>
  197. <text>离线</text>
  198. </view>
  199. <view class="windMsgSty_right flex justify-between">
  200. <text>600</text>
  201. <text>台</text>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. <view class="ssjk">
  208. <view class="ssjk_title flex justify-center">
  209. <image src="../../static/jnImage/indexPage/timeNow.png" mode=""></image>
  210. <text>实时监控</text>
  211. </view>
  212. <view class="ssjk_main">
  213. <view class="ssjk_main_msg">
  214. <view class="ssjk_main_msg_tit flex">
  215. <image src="../../static/jnImage/indexPage/windIcon.png" mode=""></image>
  216. <text>宝龙山</text>
  217. </view>
  218. <view class="ssjk_main_msg_data flex">
  219. <view class="msg_data_sty flex">
  220. <view class="msg_data_name">
  221. <text>风速</text>
  222. </view>
  223. <view class="dataSty flex">
  224. <text>0.00</text>
  225. <text>m/s</text>
  226. </view>
  227. </view>
  228. <view class="msg_data_sty flex">
  229. <view class="msg_data_name">
  230. <text>有功功率</text>
  231. </view>
  232. <view class="dataSty flex">
  233. <text>0.00</text>
  234. <text>MW</text>
  235. </view>
  236. </view>
  237. <view class="msg_data_sty flex">
  238. <view class="msg_data_name">
  239. <text>AGC指令</text>
  240. </view>
  241. <view class="dataSty flex">
  242. <text>0.00</text>
  243. <text>MW</text>
  244. </view>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. </view>
  250. </view>
  251. </view>
  252. </view>
  253. </view>
  254. </template>
  255. </template>
  256. <script>
  257. export default {
  258. onLoad: function() {},
  259. data() {
  260. return {
  261. mesExData: [],
  262. windPowerData: []
  263. }
  264. },
  265. created() {
  266. this.windPowerData = [{
  267. name: '实际风速',
  268. value: 7,
  269. code: '(m/s)',
  270. min: 6,
  271. max: 8
  272. },
  273. {
  274. name: '预测风速',
  275. value: 10,
  276. code: '(m/s)',
  277. min: 6,
  278. max: 20
  279. },
  280. {
  281. name: '实际功率',
  282. value: 191,
  283. code: '(万kW)',
  284. min: 0,
  285. max: 200
  286. },
  287. {
  288. name: '理论功率',
  289. value: 459,
  290. code: '(万kW)',
  291. min: 0,
  292. max: 500
  293. }
  294. ]
  295. this.mesExData = [{
  296. leftName: '容量',
  297. leftValue: 282.3,
  298. leftCode: '(WM)',
  299. },
  300. {
  301. leftName: '安全天数',
  302. leftValue: 20,
  303. leftCode: '(天)',
  304. },
  305. {
  306. leftName: '日发电量',
  307. leftValue: 282.3,
  308. leftCode: '(万kWh)'
  309. },
  310. {
  311. leftName: '预测电量',
  312. leftValue: 282.3,
  313. leftCode: '(万kWh)'
  314. },
  315. {
  316. leftName: '月发电量',
  317. leftValue: 282.3,
  318. leftCode: '(万kWh)'
  319. },
  320. {
  321. leftName: '年发电量',
  322. leftValue: 282.3,
  323. leftCode: '(万kWh)'
  324. },
  325. ]
  326. },
  327. methods: {
  328. changeMsg() {
  329. this.$tab.navigateTo('/pages/common/messagePage')
  330. },
  331. changeStation() {
  332. this.$tab.navigateTo('/pages/common/stationListPage')
  333. }
  334. }
  335. }
  336. </script>
  337. <style lang="scss">
  338. page {
  339. background-color: #202246;
  340. }
  341. .home {
  342. width: 100vw;
  343. background: url('../../static/jnImage/loginPage/windBack.png'), url('../../static/jnImage/loginPage/backWav.png');
  344. background-repeat: no-repeat, repeat;
  345. background-size: 100% 260px, 100% 5px;
  346. .home_header {
  347. width: calc(100% -32px);
  348. display: flex;
  349. justify-content: space-between;
  350. height: 60px;
  351. padding-top: 16px;
  352. // position: fixed;
  353. .header_message {
  354. width: 15%;
  355. image {
  356. position: relative;
  357. top: 5px;
  358. left: 10px;
  359. width: 25px;
  360. height: 25px;
  361. }
  362. }
  363. .header_title {
  364. width: 70%;
  365. position: relative;
  366. left: 5px;
  367. image {
  368. width: 28px;
  369. height: 22px;
  370. position: relative;
  371. top: 5px;
  372. }
  373. .titleName {
  374. line-height: 20px;
  375. font-size: 36upx;
  376. font-family: FZZhengHeiS-M-GB;
  377. font-weight: 600;
  378. color: #fff;
  379. position: relative;
  380. top: 8px;
  381. }
  382. }
  383. .header_more {
  384. width: 15%;
  385. position: relative;
  386. top: 10px;
  387. left: 10px;
  388. image {
  389. width: 25px;
  390. height: 18px;
  391. }
  392. }
  393. }
  394. .home_main {
  395. padding: 0 20px;
  396. .main_time {
  397. margin-top: 10px;
  398. .mesTime {
  399. display: flex;
  400. padding: 3px 0;
  401. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  402. image {
  403. width: 20px;
  404. height: 20px;
  405. }
  406. text {
  407. font-size: 34upx;
  408. color: #fff;
  409. margin-left: 15px;
  410. }
  411. text:nth-of-type(3) {
  412. position: relative;
  413. top: 3px;
  414. }
  415. }
  416. .mesAll {
  417. .mesEx {
  418. // display: flex;
  419. line-height: 30px;
  420. color: #fff;
  421. .mesEx_left {
  422. width: 100%;
  423. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  424. padding: 3px 0;
  425. .mesEx_left_top {
  426. width: 40%;
  427. font-size: 28upx;
  428. .nameSty {
  429. width: 100%;
  430. display: inline-block;
  431. position: relative;
  432. text-align-last: justify;
  433. text-align: justify;
  434. }
  435. }
  436. .mesEx_left_end {
  437. width: 56%;
  438. margin: 0 10px;
  439. display: flex;
  440. justify-content: space-between;
  441. text:nth-of-type(1) {
  442. font-size: 34upx;
  443. }
  444. text:nth-of-type(2) {
  445. font-size: 20upx;
  446. color: #92949B;
  447. }
  448. }
  449. }
  450. }
  451. .windpowerCl {
  452. .windpowerMsg {
  453. margin-top: 10px;
  454. padding: 5px 10px;
  455. color: #fff;
  456. background-image: url('../../static/jnImage/indexPage/windpower.png');
  457. background-repeat: no-repeat;
  458. background-size: cover;
  459. .windpowerMsg_com {
  460. text {
  461. font-size: 24upx;
  462. color: #AFB2C1;
  463. }
  464. }
  465. .windpowerMsg_Data {
  466. margin: 5px;
  467. text-align: center;
  468. font-size: 40upx;
  469. }
  470. }
  471. }
  472. .windMsg,
  473. .powerMsg {
  474. margin-top: 15px;
  475. .windMsg_title {
  476. width: 40%;
  477. height: 30px;
  478. display: flex;
  479. justify-content: center;
  480. align-items: center;
  481. padding: 6px 13px;
  482. background: rgba(51, 57, 118, 0.7);
  483. border-radius: 5px;
  484. image {
  485. width: 18px;
  486. height: 18px;
  487. }
  488. text {
  489. margin-left: 5px;
  490. font-size: 34upx;
  491. color: #fff;
  492. }
  493. }
  494. .windMsg_main {
  495. .windMsg_main_msg {
  496. margin-bottom: 8px;
  497. .windMsgSty {
  498. padding: 5px 8px;
  499. width: 49%;
  500. background: #3F4572;
  501. border-radius: 5px;
  502. .windMsgSty_left {
  503. width: 49%;
  504. height: 32px;
  505. image {
  506. width: 32px;
  507. height: 32px;
  508. }
  509. text {
  510. width: 100px;
  511. display: inline-block;
  512. color: #9A9BA6;
  513. font-size: 28upx;
  514. margin-left: 10px;
  515. position: relative;
  516. top: -26px;
  517. left: 28px;
  518. }
  519. .fourFont {
  520. top: -38px;
  521. }
  522. }
  523. .windMsgSty_right {
  524. width: 49%;
  525. position: relative;
  526. top: 9px;
  527. text:nth-of-type(1) {
  528. margin-left: 5px;
  529. width: 50%;
  530. font-size: 34upx;
  531. color: #fff;
  532. }
  533. text:nth-of-type(2) {
  534. font-size: 28upx;
  535. color: #9A9BA6;
  536. }
  537. }
  538. }
  539. }
  540. }
  541. }
  542. .ssjk {
  543. margin-top: 15px;
  544. margin-bottom: 30px;
  545. .ssjk_title {
  546. width: 120px;
  547. height: 45px;
  548. // background: #333976;
  549. background: linear-gradient(90deg, #333976, transparent);
  550. align-items: center;
  551. image {
  552. width: 22px;
  553. height: 22px;
  554. }
  555. text {
  556. margin-left: 10px;
  557. font-size: 16px;
  558. color: #fff;
  559. }
  560. }
  561. .ssjk_main {
  562. .ssjk_main_msg {
  563. margin-top: 15px;
  564. .ssjk_main_msg_tit {
  565. image {
  566. width: 18px;
  567. height: 18px;
  568. }
  569. text {
  570. margin-left: 10px;
  571. font-size: 14px;
  572. color: #A49EAC;
  573. position: relative;
  574. top: -2px;
  575. }
  576. }
  577. .ssjk_main_msg_data {
  578. width: 100%;
  579. color: #fff;
  580. font-size: 10px;
  581. .msg_data_sty {
  582. width: 33%;
  583. margin-right: 2px;
  584. background: #2E336D;
  585. .msg_data_name {
  586. width: 50%;
  587. padding: 3px 0;
  588. display: inline-block;
  589. background: #3F4572;
  590. text-align: center;
  591. }
  592. .dataSty {
  593. width: 50%;
  594. background: #2E336D;
  595. padding: 0 3px;
  596. justify-content: space-between;
  597. text {
  598. position: relative;
  599. top: 5px;
  600. }
  601. }
  602. }
  603. }
  604. }
  605. }
  606. }
  607. }
  608. }
  609. }
  610. }
  611. </style>