index.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  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">
  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. import leftIcon from '../../static/jnImage/indexPage/alarmSet.png'
  258. export default {
  259. onLoad: function() {},
  260. data() {
  261. return {
  262. mesExData: [],
  263. windPowerData: [],
  264. leftIcon: leftIcon
  265. }
  266. },
  267. created() {
  268. this.windPowerData = [{
  269. name: '实际风速',
  270. value: 7,
  271. code: '(m/s)',
  272. min: 6,
  273. max: 8
  274. },
  275. {
  276. name: '预测风速',
  277. value: 10,
  278. code: '(m/s)',
  279. min: 6,
  280. max: 20
  281. },
  282. {
  283. name: '实际功率',
  284. value: 191,
  285. code: '(万kW)',
  286. min: 0,
  287. max: 200
  288. },
  289. {
  290. name: '理论功率',
  291. value: 459,
  292. code: '(万kW)',
  293. min: 0,
  294. max: 500
  295. }
  296. ]
  297. this.mesExData = [{
  298. leftName: '容量',
  299. leftValue: 282.3,
  300. leftCode: '(WM)',
  301. },
  302. {
  303. leftName: '安全天数',
  304. leftValue: 20,
  305. leftCode: '(天)',
  306. },
  307. {
  308. leftName: '日发电量',
  309. leftValue: 282.3,
  310. leftCode: '(万kWh)'
  311. },
  312. {
  313. leftName: '预测电量',
  314. leftValue: 282.3,
  315. leftCode: '(万kWh)'
  316. },
  317. {
  318. leftName: '月发电量',
  319. leftValue: 282.3,
  320. leftCode: '(万kWh)'
  321. },
  322. {
  323. leftName: '年发电量',
  324. leftValue: 282.3,
  325. leftCode: '(万kWh)'
  326. },
  327. ]
  328. },
  329. methods: {
  330. changeMsg() {
  331. this.$tab.navigateTo('/pages/common/uniNavBar')
  332. }
  333. }
  334. }
  335. </script>
  336. <style lang="scss">
  337. page {
  338. background-color: #202246;
  339. }
  340. .home {
  341. width: 100vw;
  342. background: url('../../static/jnImage/loginPage/windBack.png'), url('../../static/jnImage/loginPage/backWav.png');
  343. background-repeat: no-repeat, repeat;
  344. background-size: 100% 260px, 100% 5px;
  345. .home_header {
  346. width: calc(100% -32px);
  347. display: flex;
  348. justify-content: space-between;
  349. height: 60px;
  350. padding-top: 16px;
  351. // position: fixed;
  352. .header_message {
  353. width: 15%;
  354. image {
  355. position: relative;
  356. top: 5px;
  357. left: 10px;
  358. width: 25px;
  359. height: 25px;
  360. }
  361. }
  362. .header_title {
  363. width: 70%;
  364. position: relative;
  365. left: 5px;
  366. image {
  367. width: 28px;
  368. height: 22px;
  369. position: relative;
  370. top: 5px;
  371. }
  372. .titleName {
  373. line-height: 20px;
  374. font-size: 36upx;
  375. font-family: FZZhengHeiS-M-GB;
  376. font-weight: 600;
  377. color: #fff;
  378. position: relative;
  379. top: 8px;
  380. }
  381. }
  382. .header_more {
  383. width: 15%;
  384. position: relative;
  385. top: 10px;
  386. left: 10px;
  387. image {
  388. width: 25px;
  389. height: 18px;
  390. }
  391. }
  392. }
  393. .home_main {
  394. padding: 0 20px;
  395. .main_time {
  396. margin-top: 10px;
  397. .mesTime {
  398. display: flex;
  399. padding: 3px 0;
  400. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  401. image {
  402. width: 20px;
  403. height: 20px;
  404. }
  405. text {
  406. font-size: 34upx;
  407. color: #fff;
  408. margin-left: 15px;
  409. }
  410. text:nth-of-type(3) {
  411. position: relative;
  412. top: 3px;
  413. }
  414. }
  415. .mesAll {
  416. .mesEx {
  417. // display: flex;
  418. line-height: 30px;
  419. color: #fff;
  420. .mesEx_left {
  421. width: 100%;
  422. border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  423. padding: 3px 0;
  424. .mesEx_left_top {
  425. width: 40%;
  426. font-size: 28upx;
  427. .nameSty {
  428. width: 100%;
  429. display: inline-block;
  430. position: relative;
  431. text-align-last: justify;
  432. text-align: justify;
  433. }
  434. }
  435. .mesEx_left_end {
  436. width: 56%;
  437. margin: 0 10px;
  438. display: flex;
  439. justify-content: space-between;
  440. text:nth-of-type(1) {
  441. font-size: 34upx;
  442. }
  443. text:nth-of-type(2) {
  444. font-size: 20upx;
  445. color: #92949B;
  446. }
  447. }
  448. }
  449. }
  450. .windpowerCl {
  451. .windpowerMsg {
  452. margin-top: 10px;
  453. padding: 5px 10px;
  454. color: #fff;
  455. background-image: url('../../static/jnImage/indexPage/windpower.png');
  456. background-repeat: no-repeat;
  457. background-size: cover;
  458. .windpowerMsg_com {
  459. text {
  460. font-size: 24upx;
  461. color: #AFB2C1;
  462. }
  463. }
  464. .windpowerMsg_Data {
  465. margin: 5px;
  466. text-align: center;
  467. font-size: 40upx;
  468. }
  469. }
  470. }
  471. .windMsg,
  472. .powerMsg {
  473. margin-top: 15px;
  474. .windMsg_title {
  475. width: 40%;
  476. height: 30px;
  477. display: flex;
  478. justify-content: center;
  479. align-items: center;
  480. padding: 6px 13px;
  481. background: rgba(51, 57, 118, 0.7);
  482. border-radius: 5px;
  483. image {
  484. width: 18px;
  485. height: 18px;
  486. }
  487. text {
  488. margin-left: 5px;
  489. font-size: 34upx;
  490. color: #fff;
  491. }
  492. }
  493. .windMsg_main {
  494. .windMsg_main_msg {
  495. margin-bottom: 8px;
  496. .windMsgSty {
  497. padding: 5px 8px;
  498. width: 49%;
  499. background: #3F4572;
  500. border-radius: 5px;
  501. .windMsgSty_left {
  502. width: 49%;
  503. height: 32px;
  504. image {
  505. width: 32px;
  506. height: 32px;
  507. }
  508. text {
  509. width: 100px;
  510. display: inline-block;
  511. color: #9A9BA6;
  512. font-size: 28upx;
  513. margin-left: 10px;
  514. position: relative;
  515. top: -26px;
  516. left: 28px;
  517. }
  518. .fourFont {
  519. top: -38px;
  520. }
  521. }
  522. .windMsgSty_right {
  523. width: 49%;
  524. position: relative;
  525. top: 9px;
  526. text:nth-of-type(1) {
  527. margin-left: 5px;
  528. width: 50%;
  529. font-size: 34upx;
  530. color: #fff;
  531. }
  532. text:nth-of-type(2) {
  533. font-size: 28upx;
  534. color: #9A9BA6;
  535. }
  536. }
  537. }
  538. }
  539. }
  540. }
  541. .ssjk {
  542. margin-top: 15px;
  543. margin-bottom: 30px;
  544. .ssjk_title {
  545. width: 120px;
  546. height: 45px;
  547. // background: #333976;
  548. background: linear-gradient(90deg, #333976, #202246);
  549. align-items: center;
  550. image {
  551. width: 22px;
  552. height: 22px;
  553. }
  554. text {
  555. margin-left: 10px;
  556. font-size: 16px;
  557. color: #fff;
  558. }
  559. }
  560. .ssjk_main {
  561. .ssjk_main_msg {
  562. margin-top: 15px;
  563. .ssjk_main_msg_tit {
  564. image {
  565. width: 18px;
  566. height: 18px;
  567. }
  568. text {
  569. margin-left: 10px;
  570. font-size: 14px;
  571. color: #A49EAC;
  572. position: relative;
  573. top: -2px;
  574. }
  575. }
  576. .ssjk_main_msg_data {
  577. width: 100%;
  578. color: #fff;
  579. font-size: 10px;
  580. .msg_data_sty {
  581. width: 33%;
  582. margin-right: 2px;
  583. background: #2E336D;
  584. .msg_data_name {
  585. width: 50%;
  586. padding: 3px 0;
  587. display: inline-block;
  588. background: #3F4572;
  589. text-align: center;
  590. }
  591. .dataSty {
  592. width: 50%;
  593. background: #2E336D;
  594. padding: 0 3px;
  595. justify-content: space-between;
  596. text {
  597. position: relative;
  598. top: 5px;
  599. }
  600. }
  601. }
  602. }
  603. }
  604. }
  605. }
  606. }
  607. }
  608. }
  609. }
  610. </style>