123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499 |
- <template>
- <div class="page stationInfoPage">
- <div class="timeBox">{{ time }}</div>
- <div class="topTiltle">
- <span class="title">在运风光场站信息</span>
- </div>
- <div class="btuGroup">
- <div class="topBtu topLeftBtu" @click="back()">
- <span class="btuText">返回 </span>
- </div>
- <div class="topBtu topRightBtu" @click="push()">
- <span class="btuText">后台管理</span>
- </div>
- </div>
- <div class="myMain-container">
- <div class="rightTextBg">
- <div class="rightBg topBox">
- <div class="rightTiltleTextBg">
- <div class="rightMainTitle">
- <span class="mainTitle" @click="pushInfo()">{{ station.stationName }}</span>
- </div>
- </div>
- <div class="rightTopContent" v-for="item in dataInfo">
- <div class="branckTitleBg">
- <!-- <span class="fjName">{{item.category}}<span class="number">{{item.fjNum}}</span>台</span>-->
- <span class="fjModel">{{item.modelType}}<span class="number" style="margin-left: 4%">{{item.modelTotal}}</span>台</span>
- </div>
- <div class="mainContent">
- <div class="contentBox">
- <span class="numberBox">{{ item.wsAve }}</span>
- <span class="textBox">平均风速<span class="numberBox" style="font-size: 14px">(m/s)</span></span>
- </div>
- <div class="contentBox">
- <span class="numberBox">{{item.generatingCapacity}}</span>
- <span class="textBox">发电量<span class="numberBox" style="font-size: 14px">(MWh)</span></span>
- </div>
- <div class="contentBox">
- <span class="numberBox">{{ item.wdSum }}</span>
- <span class="textBox">主风向</span>
- </div>
- <div class="contentBox">
- <span class="numberBox">{{ item.realTimeTotal }}</span>
- <span class="textBox">等效小时数<span class="numberBox" style="font-size: 14px">(h)</span></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="mapBtuBg">
- <div id="mapBtuOne" class="mapBtu mapBtuBefore" @click="clickBtu('mapBtuOne')">
- <span class="mapBtuText">地形图</span>
- </div>
- <!-- <div id="mapBtuTwo" class="mapBtu mapBtuAfter" @click="clickBtu('mapBtuTwo')">-->
- <!-- <span class="mapBtuText">风场气象图</span>-->
- <!-- </div>-->
- <div id="mapBtuThree" class="mapBtu mapBtuAfter" @click="clickBtu('mapBtuThree')">
- <span class="mapBtuText">风资源分布图</span>
- </div>
- <!-- <div id="mapBtuFour" class="mapBtu mapBtuAfter" @click="clickBtu('mapBtuFour')">-->
- <!-- <span class="mapBtuText">光辐射气象图</span>-->
- <!-- </div>-->
- <div id="mapBtuFive" class="mapBtu mapBtuAfter" @click="clickBtu('mapBtuFive')">
- <span class="mapBtuText">光资源分布图</span>
- </div>
- </div>
- </div>
- <div v-if="mapMark === 'mapBtuOne'">
- <bige-map ref="childMethod" :mapValue="mapValue"/>
- </div>
- <div v-if="mapMark === 'mapBtuThree'">
- <bige-heat-map ref="childMethod" :mapValue="mapValue"/>
- </div>
- <div v-if="mapMark === 'mapBtuFive'">
- <bige-heat-sun-map ref="childMethod" :mapValue="mapValue"/>
- </div>
- <div class="bottomPushBtu" @click="pushStationResource()">
- <span>在运风光场站资源管理</span>
- </div>
- </div>
- </template>
- <script>
- import {getPointMap, stationInfo} from "@/api/biz/dataQuery/largeScreenPage";
- import bigeMap from "@/views/largeScreenPage/components/bigeMap";
- import bigeHeatMap from "@/views/largeScreenPage/components/bigeHeatMap";
- import bigeHeatSunMap from "@/views/largeScreenPage/components/bigeHeatSunMap";
- export default {
- name: "stationInfo",
- components: {
- bigeMap, bigeHeatMap,bigeHeatSunMap
- },
- data() {
- return {
- timer: null,
- time: '',
- station: {},
- dataInfo:[
- // {category:'一期',fjNum:'20',model:'恩德1.3MW机型',avgWs:'4.5',power:'39650',wd:'西南',hour:'1525'},
- // {category:'二期',fjNum:'30',model:'华锐1.5MW机型',avgWs:'4.7',power:'73125',wd:'西',hour:'1625'},
- ],
- modelT:[],
- coordinates:[],
- mapMark: 'mapBtuOne',
- //地图传值
- mapValue: {
- level: null,//地图层级
- center: [],//中心坐标
- allStationInfo: null,//场站坐标
- projectInfo: null,//项目坐标
- allPointInfo:null,//所有点位信息
- },
- allPointInfo:[]
- }
- },
- destroyed() {
- clearInterval(this.timer)
- this.timer = null
- },
- mounted() {
- this.station = JSON.parse(this.$store.getters.stationInfo)
- this.formatTime()
- this.getPointMap()
- this.timer = setInterval(this.formatTime, 1000 * 60)
- },
- methods: {
- /*所有风机、塔、拐点坐标信息*/
- getPointMap(){
- if(this.$store.getters.allPointInfo.length>0){
- this.allPointInfo = JSON.parse(this.$store.getters.allPointInfo).info
- this.getInfo()
- }else {
- getPointMap().then(res=>{
- // console.log(res.data)
- this.allPointInfo = res.data
- this.getInfo()
- sessionStorage.setItem("allPointInfo", JSON.stringify({info:this.allPointInfo}))
- this.$store.dispatch('equipmentInfo/allPointInfo', JSON.stringify({info:this.allPointInfo}))
- }).catch(err=>{
- console.log('所有点位坐标:'+err)
- })
- }
- },
- getInfo(){
- stationInfo({stationId:this.station.id}).then(res=>{
- // console.log(res.data)
- let data = res.data
- this.dataInfo = data.modelT
- if(data.latitude === undefined ){
- this.coordinates = []
- }else{
- this.coordinates = [Number(data.latitude),Number(data.longitude)]
- }
- this.mapValue ={
- params: new Date(),
- level: 12,//地图层级
- center: this.coordinates,//中心坐标
- allStationInfo: null,//场站坐标
- projectInfo: null,//项目坐标
- allPointInfo:this.allPointInfo,//所有点位信息
- }
- }).catch(err=>{
- this.mapValue ={
- params: new Date(),
- level: 6,//地图层级
- center: [],//中心坐标
- allStationInfo: null,//场站坐标
- projectInfo: null,//项目坐标
- allPointInfo:null,//所有点位信息
- }
- if(err.msg === 'Index: 0, Size: 0'){
- console.log('此场站没有风机与测风塔')
- }else{
- console.log('场站信息获取异常:'+err.msg)
- }
- })
- },
- push() {
- this.$router.push({path: "/dataQuery/windTowerStatusInfo"})
- },
- pushInfo() {
- let station = {stationId:this.station.id,equipmentNo:null}
- sessionStorage.setItem("realWindTowerInfo", JSON.stringify(station))
- this.$store.dispatch('equipmentInfo/realWindTowerInfo', JSON.stringify(station))
- this.$router.push({path: "/homepage/realResourcesInfo"})
- },
- back() {
- this.$router.push({path: "/homepage/stationResources"})
- },
- pushStationResource() {
- this.$router.push({path: "/homepage/stationResources"})
- },
- clickBtu(id) {
- let center = this.$refs.childMethod.center
- let level = this.$refs.childMethod.level
- this.mapValue ={
- params: new Date(),
- level: level === ''?null:level,//地图层级
- center: center.length === 0?[]:[center.lat,center.lng],//中心坐标
- allStationInfo: null,//场站坐标
- projectInfo: null,//项目坐标
- allPointInfo:this.allPointInfo,//所有点位信息
- }
- this.mapMark = id
- let clickItem = document.getElementById(id)
- let activeItem = document.querySelector('.mapBtuBefore')
- activeItem.classList.remove('mapBtuBefore')
- activeItem.classList.add('mapBtuAfter')
- clickItem.classList.remove('mapBtuAfter')
- clickItem.classList.add('mapBtuBefore')
- },
- /*时间格式化*/
- formatTime() {
- this.time = ''
- let date = new Date()
- let year = date.getFullYear(); // 年
- let month = date.getMonth() + 1; // 月
- let day = date.getDate();
- let hour = date.getHours(); // 获取当前小时数(0-23)
- let minutes = date.getMinutes();
- if (month < 10) month = "0" + month;
- if (day < 10) day = "0" + day;
- if (minutes < 10) minutes = "0" + minutes;
- this.time = year + "-" + month + "-" + day + " " + hour + ' : ' + minutes;
- }
- }
- }
- </script>
- <style scoped>
- .stationInfoPage {
- width: 100%;
- height: calc(100vh);
- background: url(../../../assets/largeScreenImg/backBg.png) no-repeat;
- background-size: 100% 100%;
- color: white;
- }
- .timeBox {
- position: absolute;
- left: 2%;
- top: 0;
- font-size: 20px;
- line-height: 40px;
- font-family: timeFont !important;
- }
- .page {
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- overflow: auto;
- box-shadow: inset -1px -20px 550px 200px rgb(12 25 69 / 80%);
- }
- .topTiltle {
- width: 100%;
- height: 5.5%;
- background: url(../../../assets/largeScreenImg/index/topTitleBg.png) -2px -1px no-repeat;
- background-size: 100% 100%;
- display: flex;
- justify-content: center;
- }
- .title {
- width: 17%;
- height: 100%;
- text-align: center;
- margin-top: .2%;
- font-size: 30px;
- font-weight: 800;
- background-image: linear-gradient(
- 360deg,
- rgba(178, 204, 252, 1) 0,
- rgba(178, 204, 252, 1) 0,
- rgba(255, 255, 255, 1) 100%,
- rgba(255, 255, 255, 1) 100%
- );
- background-clip: text;
- color: transparent;
- }
- .btuGroup {
- position: absolute;
- right: 0;
- top: 0;
- color: white;
- width: 15%;
- height: 5.5%;
- display: flex;
- justify-content: flex-end;
- font-size: 18px;
- }
- .topBtu {
- height: 100%;
- margin-top: -1.5%;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- }
- .topRightBtu {
- background: url(../../../assets/largeScreenImg/index/topRightBtuBg.png) 100% no-repeat;
- background-size: 100% 100%;
- width: 50%;
- }
- .topLeftBtu {
- background: url(../../../assets/largeScreenImg/index/topLeftBtuBg.png) 100% no-repeat;
- background-size: 100% 100%;
- width: 35%;
- }
- .rightTextBg {
- position: absolute;
- right: 2%;
- top: 8%;
- width: 20%;
- display: flex;
- flex-direction: column;
- z-index: 1000;
- }
- .rightBg {
- background: url(../../../assets/largeScreenImg/index/leftTextBg.png) 100% no-repeat;
- background-size: 100% 100%;
- padding: 5%;
- }
- .mapBtuBg {
- position: absolute;
- right: 22%;
- top: 7%;
- width: 10%;
- z-index: 10000;
- }
- .rightTiltleTextBg {
- height: 32px;
- background: url(../../../assets/largeScreenImg/index/rightTiltleTextBg.png) 100% no-repeat;
- background-size: 100% 100%;
- }
- .rightMainTitle {
- color: rgba(183, 243, 252, 1);
- font-size: 20px;
- font-weight: 550;
- margin-left: 8%;
- position: relative;
- top: -25%;
- }
- .rightTopContent {
- margin-top: 4%;
- }
- .branckTitleBg{
- background: url(../../../assets/largeScreenImg/zaiyunAndqianqi/branckTitleBg.png) 100% no-repeat;
- background-size: 100% 100%;
- height: 32px;
- display: flex;
- align-items: center;
- }
- .fjName{
- margin-left: 2%;
- }
- .fjModel{
- width: 100%;
- margin-left: 2%;
- }
- .mainContent{
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- }
- .contentBox {
- margin-top: 5%;
- width: 38%;
- height: 125px;
- background: url(../../../assets/largeScreenImg/index/liubianxingBorder.png) 100% no-repeat;
- background-size: 100% 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .number{
- font-weight: 700;
- background-image: linear-gradient(
- rgba(255, 255, 255, 1) 0,
- rgba(255, 255, 255, 1) 0,
- rgba(70, 255, 222, 1) 98.730469%,
- rgba(70, 255, 222, 1) 100%
- );
- background-clip: text;
- color: transparent;
- }
- .numberBox {
- font-size: 24px;
- font-weight: 700;
- background-image: linear-gradient(
- rgba(255, 255, 255, 1) 0,
- rgba(255, 255, 255, 1) 0,
- rgba(70, 255, 222, 1) 98.730469%,
- rgba(70, 255, 222, 1) 100%
- );
- background-clip: text;
- color: transparent;
- }
- .mapBtu {
- height: 50px;
- width: 200px;
- }
- .mapBtuAfter {
- background: url(../../../assets/largeScreenImg/index/mapBtuClickAfter.png) 100% no-repeat;
- background-size: 100% 100%;
- }
- .mapBtuBefore {
- background: url(../../../assets/largeScreenImg/index/mapBtuClickBefore.png) 100% no-repeat;
- background-size: 100% 100%;
- margin-top: 9px;
- }
- .mapBtuText {
- line-height: 50px;
- font-size: 16px;
- display: flex;
- align-items: center;
- margin-left: 20%;
- }
- .bottomPushBtu {
- background: url(../../../assets/largeScreenImg/index/topLeftBtuBg.png) 100% no-repeat;
- background-size: 100% 100%;
- line-height: 60px;
- width: 12%;
- cursor: pointer;
- text-align: center;
- position: absolute;
- right: 0;
- bottom: 0;
- }
- .dialogInfoBg {
- background: url(../../../assets/largeScreenImg/zaiyunAndqianqi/dialogBg.png) 100% no-repeat;
- background-size: 100% 100%;
- padding: 1%;
- width: 30%;
- position: absolute;
- top: 20%;
- left: 30%;
- }
- .dialogRightTextBtu {
- position: absolute;
- top: 0;
- right: 1%;
- width: 20%;
- }
- .tiltleLeftSign {
- width: 12px;
- height: 30px;
- margin-top: 1%;
- margin-right: 2%;
- }
- .dialogInfoTitle {
- display: flex;
- align-items: center;
- }
- .projectInfoBox {
- margin-top: 2%;
- }
- .dialogInfo {
- margin-left: 5%;
- font-size: 14px;
- }
- .pInfo {
- line-height: 15px;
- cursor: pointer;
- }
- </style>
|