preProjectResources.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. <template>
  2. <div class="page preProjectResourcesPage">
  3. <div class="timeBox">{{ time }}</div>
  4. <div class="topTiltle">
  5. <span class="title">前期项目资源信息</span>
  6. </div>
  7. <div class="btuGroup">
  8. <div class="topBtu topLeftBtu" @click="back()">
  9. <span class="btuText">返回&nbsp;</span>
  10. </div>
  11. <div class="topBtu topRightBtu" @click="push()">
  12. <span class="btuText">后台管理</span>
  13. </div>
  14. </div>
  15. <div class="myMain-container">
  16. <div class="rightTextBg">
  17. <div class="rightBg topBox">
  18. <div class="rightTiltleTextBg">
  19. <div class="rightMainTitle">
  20. <span class="mainTitle">前期项目信息</span>
  21. </div>
  22. <div class="textBtu rightTextBtu" @click="dialogShow = true">
  23. <span>项目列表</span>
  24. </div>
  25. </div>
  26. <div class="rightTopContent">
  27. <div class="contentBox">
  28. <span class="numberBox">{{ pInfo.initiatedNum }}</span>
  29. <span class="textBox">已发起的项目</span>
  30. </div>
  31. <div class="contentBox">
  32. <span class="numberBox">{{ pInfo.approvalNum }}</span>
  33. <span class="textBox">完成核准项目</span>
  34. </div>
  35. <div class="contentBox">
  36. <span class="numberBox">{{ pInfo.buildNum }}</span>
  37. <span class="textBox">正实施建设</span>
  38. </div>
  39. <div class="contentBox">
  40. <span class="numberBox">{{ pInfo.electricNum }}</span>
  41. <span class="textBox">投产发电</span>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="mapBtuBg">
  47. <div id="mapBtuOne" class="mapBtu mapBtuAfter" @click="clickBtu('mapBtuOne')">
  48. <span class="mapBtuText">地形图</span>
  49. </div>
  50. <!-- <div id="mapBtuTwo" class="mapBtu mapBtuAfter" @click="clickBtu('mapBtuTwo')">-->
  51. <!-- <span class="mapBtuText">风场气象图</span>-->
  52. <!-- </div>-->
  53. <div id="mapBtuThree" class="mapBtu mapBtuBefore" @click="clickBtu('mapBtuThree')">
  54. <span class="mapBtuText">风资源分布图</span>
  55. </div>
  56. <!-- <div id="mapBtuFour" class="mapBtu mapBtuAfter" @click="clickBtu('mapBtuFour')">-->
  57. <!-- <span class="mapBtuText">光辐射气象图</span>-->
  58. <!-- </div>-->
  59. <div id="mapBtuFive" class="mapBtu mapBtuAfter" @click="clickBtu('mapBtuFive')">
  60. <span class="mapBtuText">光资源分布图</span>
  61. </div>
  62. </div>
  63. </div>
  64. <div v-if="mapMark === 'mapBtuOne'">
  65. <bige-map ref="childMethod" :mapValue="mapValue"/>
  66. </div>
  67. <div v-if="mapMark === 'mapBtuThree'">
  68. <bige-heat-map ref="childMethod" :mapValue="mapValue"/>
  69. </div>
  70. <div v-if="mapMark === 'mapBtuFive'">
  71. <bige-heat-sun-map ref="childMethod" :mapValue="mapValue"/>
  72. </div>
  73. <div class="bottomPushBtu" @click="pushStationResource()">
  74. <span>在运风光场站资源管理</span>
  75. </div>
  76. <!-- 弹窗 -->
  77. <div class="dialogInfoBg" v-if="dialogShow">
  78. <div class="rightTiltleTextBg">
  79. <div class="rightMainTitle">
  80. <span class="mainTitle">前期项目</span>
  81. </div>
  82. <div class="textBtu dialogRightTextBtu" @click="dialogShow = false">
  83. <span>返回</span>
  84. </div>
  85. </div>
  86. <div class="dialogMainInfoBg">
  87. <div class="projectInfoBox">
  88. <span class="dialogInfoTitle">
  89. <img
  90. class="tiltleLeftSign"
  91. referrerpolicy="no-referrer"
  92. src="../../../assets/largeScreenImg/index/tiltleLeftSign.png"
  93. />
  94. 一类项目
  95. </span>
  96. <div class="dialogInfo">
  97. <p class="pInfo" v-for="item in projectOne" @click="projectNameClick(item)">{{ item.projectSort }}</p>
  98. </div>
  99. </div>
  100. <div class="projectInfoBox">
  101. <span class="dialogInfoTitle">
  102. <img
  103. class="tiltleLeftSign"
  104. referrerpolicy="no-referrer"
  105. src="../../../assets/largeScreenImg/index/tiltleLeftSign.png"
  106. />
  107. 二类项目
  108. </span>
  109. <div class="dialogInfo">
  110. <p class="pInfo" v-for="item in projectTwo" @click="projectNameClick(item)">{{ item.projectSort }}</p>
  111. </div>
  112. </div>
  113. <div class="projectInfoBox">
  114. <span class="dialogInfoTitle">
  115. <img
  116. class="tiltleLeftSign"
  117. referrerpolicy="no-referrer"
  118. src="../../../assets/largeScreenImg/index/tiltleLeftSign.png"
  119. />
  120. 三类备选
  121. </span>
  122. <div class="dialogInfo">
  123. <p class="pInfo" v-for="item in projectThree" @click="projectNameClick(item)">{{ item.projectSort }}</p>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </template>
  130. <script>
  131. import {projectInfo, getProjectSeat} from "@/api/biz/dataQuery/largeScreenPage";
  132. import bigeMap from "@/views/largeScreenPage/components/bigeMap";
  133. import bigeHeatMap from "@/views/largeScreenPage/components/bigeHeatMap";
  134. import bigeHeatSunMap from "@/views/largeScreenPage/components/bigeHeatSunMap";
  135. export default {
  136. name: "preProjectResources",
  137. components: {
  138. bigeMap, bigeHeatMap,bigeHeatSunMap
  139. },
  140. data() {
  141. return {
  142. timer: null,
  143. time: '',
  144. dialogShow: false,
  145. pInfo: {
  146. initiatedNum: '31',//已发起项目数目
  147. approvalNum: '5',//已完成核准项目数目
  148. buildNum: '4',//正在实施项目数目
  149. electricNum: '1',//投产发电项目数目
  150. },
  151. //一类项目列表
  152. projectOne: [
  153. // {name: '黑龙江华电哈尔滨依兰鸡冠山四期200MW风电项目', value: '1'},
  154. // {name: '黑龙江华电哈尔滨巴彦二期100MW风电项目', value: '2'},
  155. // {name: '黑龙江华电哈尔滨呼兰风电二期200MW风电项目', value: '3'}
  156. ],
  157. // 二类项目列表
  158. projectTwo: [
  159. // {name: '黑龙江华电哈尔滨呼兰风电三期300MW项目', value: '4'},
  160. // {name: '黑龙江华电齐齐哈尔富拉尔基200MW风电项目', value: '5'},
  161. // {name: '黑龙江华电宁安风水山200MW风电项目', value: '6'},
  162. // {name: '黑龙江华电泰来胜利100MW风电项目', value: '7'},
  163. // {name: '黑龙江华电哈尔滨方正100MW风电项目', value: '8'}
  164. ],
  165. // 三类项目列表
  166. projectThree: [
  167. // {name: '黑龙江华电佳木斯汤原100MW风电项目', value: '9'},
  168. // {name: '黑龙江华电哈尔滨巴彦三期300MW风电项目', value: '10'},
  169. // {name: '黑龙江华电依兰五期200MW风电项目', value: '11'},
  170. // {name: '黑龙江华电甘南巨宝200MW风电项目', value: '12'},
  171. // {name: '黑龙江华电种马场20MW风电项目', value: '13'},
  172. // {name: '黑龙江华电富拉尔基灰场100MW光伏项目', value: '14'},
  173. // {name: '黑龙江华电佳木斯灰场50MW光伏项目', value: '15'},
  174. // {name: '黑龙江华电哈三灰场100MW光伏项目', value: '16'}
  175. ],
  176. mapMark: 'mapBtuThree',
  177. //地图传值
  178. mapValue: {
  179. level: null,//地图层级
  180. center: [],//中心坐标
  181. allStationInfo: null,//场站坐标
  182. projectInfo: null,//项目坐标
  183. },
  184. projectSeat:[],// 项目位置
  185. }
  186. },
  187. destroyed() {
  188. clearInterval(this.timer)
  189. this.timer = null
  190. },
  191. mounted() {
  192. this.formatTime()
  193. this.getInfo()
  194. this.timer = setInterval(this.formatTime, 1000 * 60)
  195. },
  196. methods: {
  197. getInfo() {
  198. getProjectSeat().then(res => {
  199. this.projectSeat = res.data
  200. this.mapValue = {
  201. params: new Date(),
  202. level: null,//地图层级
  203. center: [],//中心坐标
  204. allStationInfo: null,//场站坐标
  205. projectInfo: res.data
  206. }
  207. }).catch(err => {
  208. console.log('项目信息异常:' + err)
  209. })
  210. projectInfo().then(res => {
  211. let data = res.data
  212. this.pInfo = data.pInfo
  213. this.projectOne = data.one
  214. this.projectTwo = data.tow
  215. this.projectThree = data.three
  216. }).catch(err => {
  217. console.log('项目信息异常:' + err)
  218. })
  219. },
  220. //项目列表点击名称事件
  221. projectNameClick(project) {
  222. sessionStorage.setItem("projectInfo", JSON.stringify(project))
  223. this.$store.dispatch('equipmentInfo/projectInfo', JSON.stringify(project))
  224. this.$router.push({path: "/homepage/projectInfo"})
  225. },
  226. push() {
  227. this.$router.push({path: "/dataQuery/windTowerStatusInfo"})
  228. },
  229. back() {
  230. this.$router.push({path: "/homepage/provincialEnergyStations"})
  231. },
  232. pushStationResource() {
  233. this.$router.push({path: "/homepage/stationResources"})
  234. },
  235. clickBtu(id) {
  236. console.log(this.$refs.childMethod)
  237. let center = this.$refs.childMethod.center
  238. let level = this.$refs.childMethod.level
  239. this.mapValue = {
  240. params: new Date(),
  241. level: level === ''?null:level,//地图层级
  242. center: center.length === 0?[]:[center.lat,center.lng],//中心坐标
  243. allStationInfo: null,//场站坐标
  244. projectInfo: this.projectSeat
  245. }
  246. this.mapMark = id
  247. let clickItem = document.getElementById(id)
  248. let activeItem = document.querySelector('.mapBtuBefore')
  249. activeItem.classList.remove('mapBtuBefore')
  250. activeItem.classList.add('mapBtuAfter')
  251. clickItem.classList.remove('mapBtuAfter')
  252. clickItem.classList.add('mapBtuBefore')
  253. },
  254. /*时间格式化*/
  255. formatTime() {
  256. this.time = ''
  257. let date = new Date()
  258. let year = date.getFullYear(); // 年
  259. let month = date.getMonth() + 1; // 月
  260. let day = date.getDate();
  261. let hour = date.getHours(); // 获取当前小时数(0-23)
  262. let minutes = date.getMinutes();
  263. if (month < 10) month = "0" + month;
  264. if (day < 10) day = "0" + day;
  265. if (minutes < 10) minutes = "0" + minutes;
  266. this.time = year + "-" + month + "-" + day + " " + hour + ' : ' + minutes;
  267. }
  268. }
  269. }
  270. </script>
  271. <style scoped>
  272. .preProjectResourcesPage {
  273. width: 100%;
  274. height: calc(100vh);
  275. background: url(../../../assets/largeScreenImg/backBg.png) no-repeat;
  276. background-size: 100% 100%;
  277. color: white;
  278. }
  279. .timeBox {
  280. position: absolute;
  281. left: 2%;
  282. top: 0;
  283. font-size: 20px;
  284. line-height: 40px;
  285. font-family: timeFont !important;
  286. }
  287. .page {
  288. position: fixed;
  289. top: 0;
  290. left: 0;
  291. bottom: 0;
  292. right: 0;
  293. overflow: auto;
  294. box-shadow: inset -1px -20px 550px 200px rgb(12 25 69 / 80%);
  295. }
  296. .topTiltle {
  297. width: 100%;
  298. height: 5.5%;
  299. background: url(../../../assets/largeScreenImg/index/topTitleBg.png) -2px -1px no-repeat;
  300. background-size: 100% 100%;
  301. display: flex;
  302. justify-content: center;
  303. }
  304. .title {
  305. width: 17%;
  306. height: 100%;
  307. text-align: center;
  308. margin-top: .2%;
  309. font-size: 30px;
  310. font-weight: 800;
  311. background-image: linear-gradient(
  312. 360deg,
  313. rgba(178, 204, 252, 1) 0,
  314. rgba(178, 204, 252, 1) 0,
  315. rgba(255, 255, 255, 1) 100%,
  316. rgba(255, 255, 255, 1) 100%
  317. );
  318. background-clip: text;
  319. color: transparent;
  320. }
  321. .btuGroup {
  322. position: absolute;
  323. right: 0;
  324. top: 0;
  325. color: white;
  326. width: 15%;
  327. height: 5.5%;
  328. display: flex;
  329. justify-content: flex-end;
  330. font-size: 18px;
  331. }
  332. .topBtu {
  333. height: 100%;
  334. margin-top: -1.5%;
  335. display: flex;
  336. justify-content: center;
  337. align-items: center;
  338. cursor: pointer;
  339. }
  340. .topRightBtu {
  341. background: url(../../../assets/largeScreenImg/index/topRightBtuBg.png) 100% no-repeat;
  342. background-size: 100% 100%;
  343. width: 50%;
  344. }
  345. .topLeftBtu {
  346. background: url(../../../assets/largeScreenImg/index/topLeftBtuBg.png) 100% no-repeat;
  347. background-size: 100% 100%;
  348. width: 35%;
  349. }
  350. .rightTextBg {
  351. position: absolute;
  352. right: 2%;
  353. top: 8%;
  354. width: 20%;
  355. display: flex;
  356. flex-direction: column;
  357. z-index: 10000;
  358. }
  359. .rightBg {
  360. background: url(../../../assets/largeScreenImg/index/leftTextBg.png) 100% no-repeat;
  361. background-size: 100% 100%;
  362. padding: 5%;
  363. }
  364. .mapBtuBg {
  365. position: absolute;
  366. right: 22%;
  367. top: 7%;
  368. width: 10%;
  369. z-index: 100000;
  370. }
  371. .rightTiltleTextBg {
  372. height: 32px;
  373. background: url(../../../assets/largeScreenImg/zaiyunAndqianqi/rightTitleBg.png) 100% no-repeat;
  374. background-size: 100% 100%;
  375. }
  376. .textBtu {
  377. background: url(../../../assets/largeScreenImg/index/topRightBtuBg.png) 100% no-repeat;
  378. background-size: 100% 100%;
  379. width: 40%;
  380. cursor: pointer;
  381. line-height: 60px;
  382. text-align: center;
  383. }
  384. .rightTextBtu {
  385. position: absolute;
  386. right: 2%;
  387. top: -.5%;
  388. }
  389. .rightMainTitle {
  390. color: rgba(183, 243, 252, 1);
  391. font-size: 20px;
  392. font-weight: 550;
  393. margin-left: 8%;
  394. position: relative;
  395. top: -25%;
  396. }
  397. .rightTopContent {
  398. display: flex;
  399. justify-content: space-around;
  400. flex-wrap: wrap;
  401. }
  402. .contentBox {
  403. margin-top: 5%;
  404. width: 35%;
  405. height: 125px;
  406. background: url(../../../assets/largeScreenImg/index/liubianxingBorder.png) 100% no-repeat;
  407. background-size: 100% 100%;
  408. display: flex;
  409. flex-direction: column;
  410. justify-content: center;
  411. align-items: center;
  412. }
  413. .numberBox {
  414. font-size: 24px;
  415. font-weight: 700;
  416. background-image: linear-gradient(
  417. rgba(255, 255, 255, 1) 0,
  418. rgba(255, 255, 255, 1) 0,
  419. rgba(70, 255, 222, 1) 98.730469%,
  420. rgba(70, 255, 222, 1) 100%
  421. );
  422. background-clip: text;
  423. color: transparent;
  424. }
  425. .mapBtu {
  426. height: 50px;
  427. width: 200px;
  428. }
  429. .mapBtuAfter {
  430. background: url(../../../assets/largeScreenImg/index/mapBtuClickAfter.png) 100% no-repeat;
  431. background-size: 100% 100%;
  432. }
  433. .mapBtuBefore {
  434. background: url(../../../assets/largeScreenImg/index/mapBtuClickBefore.png) 100% no-repeat;
  435. background-size: 100% 100%;
  436. margin-top: 9px;
  437. }
  438. .mapBtuText {
  439. line-height: 50px;
  440. font-size: 16px;
  441. display: flex;
  442. align-items: center;
  443. margin-left: 20%;
  444. }
  445. .bottomPushBtu {
  446. background: url(../../../assets/largeScreenImg/index/topLeftBtuBg.png) 100% no-repeat;
  447. background-size: 100% 100%;
  448. line-height: 60px;
  449. width: 12%;
  450. cursor: pointer;
  451. text-align: center;
  452. position: absolute;
  453. right: 0;
  454. bottom: 0;
  455. }
  456. .dialogInfoBg {
  457. background: url(../../../assets/largeScreenImg/zaiyunAndqianqi/dialogBg.png) 100% no-repeat;
  458. background-size: 100% 100%;
  459. padding: 1%;
  460. width: 30%;
  461. position: absolute;
  462. top: 10%;
  463. left: 30%;
  464. }
  465. .dialogRightTextBtu {
  466. position: absolute;
  467. top: 0;
  468. right: 1%;
  469. width: 20%;
  470. }
  471. .tiltleLeftSign {
  472. width: 12px;
  473. height: 30px;
  474. margin-top: 1%;
  475. margin-right: 2%;
  476. }
  477. .dialogInfoTitle {
  478. display: flex;
  479. align-items: center;
  480. }
  481. .projectInfoBox {
  482. margin-top: 2%;
  483. }
  484. .dialogInfo {
  485. margin-left: 5%;
  486. font-size: 14px;
  487. }
  488. .pInfo {
  489. line-height: 15px;
  490. cursor: pointer;
  491. }
  492. </style>