Commit 37782c12 authored by 张伯涛's avatar 张伯涛

第三级大屏传参修改

parent 27abc947
...@@ -44,6 +44,20 @@ export const getForecast = params => { ...@@ -44,6 +44,20 @@ export const getForecast = params => {
}) })
} }
//获取港益换热站实时能耗数据
export const getGYTransferRealData = params => {
return http.post(`/api/gis/GYTransferRealData`, params).then(res => res).catch(function (error) {
console.log(error);
})
}
//获取港益换热站报警数据
export const getGYTransferAlarmData = params => {
return http.post(`/api/gis/GYTransferAlarmData`, params).then(res => res).catch(function (error) {
console.log(error);
})
}
//获取当日实时能耗 //获取当日实时能耗
export const getGYSupplyRealData = params => { export const getGYSupplyRealData = params => {
......
...@@ -355,19 +355,19 @@ import AMapLoader from "@amap/amap-jsapi-loader"; ...@@ -355,19 +355,19 @@ import AMapLoader from "@amap/amap-jsapi-loader";
<div class="secondLeftLayer_fourContent"> <div class="secondLeftLayer_fourContent">
<div class="fourRow"> <div class="fourRow">
<div class="fourRow_label">热耗</div> <div class="fourRow_label">热耗</div>
<div class="fourRow_value">{{dayEnergyForm.heat}} w/m²</div> <div class="fourRow_value">{{dayEnergyForm.heat || '-'}} w/m²</div>
</div> </div>
<div class="fourRow"> <div class="fourRow">
<div class="fourRow_label">度日热耗</div> <div class="fourRow_label">度日热耗</div>
<div class="fourRow_value">{{dayEnergyForm.dayheat}} w/(m².°c)</div> <div class="fourRow_value">{{dayEnergyForm.dayheat || '-'}} w/(m².°c)</div>
</div> </div>
<div class="fourRow"> <div class="fourRow">
<div class="fourRow_label">水耗</div> <div class="fourRow_label">水耗</div>
<div class="fourRow_value">{{dayEnergyForm.water}} kg/m²·天</div> <div class="fourRow_value">{{dayEnergyForm.water || '-'}} kg/m²·天</div>
</div> </div>
<div class="fourRow"> <div class="fourRow">
<div class="fourRow_label">电耗</div> <div class="fourRow_label">电耗</div>
<div class="fourRow_value">{{dayEnergyForm.elec}} kWh/m²·天</div> <div class="fourRow_value">{{dayEnergyForm.elec || '-'}} kWh/m²·天</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -411,6 +411,58 @@ import AMapLoader from "@amap/amap-jsapi-loader"; ...@@ -411,6 +411,58 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</vue3ScrollSeamless> </vue3ScrollSeamless>
</div> </div>
</div> </div>
<div v-show="mapLevel === 3">
<div class="thirdLeftLayer">
<div class="thirdLeftLayer_one">
</div>
<div class="thirdLeftLayer_one">
</div>
<div class="thirdLeftLayer_one">
</div>
</div>
<div class="thirdRightLayer">
<div class="thirdLeftLayer_one">
<div class="secondLeftLayer_title"><p>当日实时能耗数据</p></div>
<div class="secondLeftLayer_fourContent">
<div class="fourRow">
<div class="fourRow_label">热耗</div>
<div class="fourRow_value">{{thirdDayEnergyForm.heat}} w/m²</div>
</div>
<div class="fourRow">
<div class="fourRow_label">度日热耗</div>
<div class="fourRow_value">{{thirdDayEnergyForm.dayheat}} w/(m².°c)</div>
</div>
<div class="fourRow">
<div class="fourRow_label">水耗</div>
<div class="fourRow_value">{{thirdDayEnergyForm.water}} kg/m²·天</div>
</div>
<div class="fourRow">
<div class="fourRow_label">电耗</div>
<div class="fourRow_value">{{thirdDayEnergyForm.elec}} kWh/m²·天</div>
</div>
</div>
</div>
<div class="thirdLeftLayer_one">
</div>
<div class="thirdLeftLayer_one">
</div>
</div>
<div class="bottomLayerTwo">
<div class="secondLeftLayer_title"><p>报警信息轮播</p></div>
<vue3ScrollSeamless class="scroll-wrap border text-color" :classOptions="classOptions" :dataList="alarmDataTwoList">
<el-row v-for="(item, i) of alarmDataTwoList" :key="i">
<el-col :span="24" class="seamlessCol">
<div style="color: white">{{ item.msg }}</div>
</el-col>
</el-row>
</vue3ScrollSeamless>
</div>
</div>
<div id="container"></div> <div id="container"></div>
<div class="videoBlock" v-show="voideShow"> <div class="videoBlock" v-show="voideShow">
...@@ -448,7 +500,11 @@ import { ...@@ -448,7 +500,11 @@ import {
postAreaList, postAreaList,
postGYSupplyWater, postGYSupplyWater,
postTransferOpenValue, postTransferOpenValue,
postGYSupplyHeatUCDeviation, getGYSupplyWaterTrend, GetGYHeatSourceTrend, postGYSupplyHeatUCDeviation,
getGYSupplyWaterTrend,
GetGYHeatSourceTrend,
getGYTransferRealData,
getGYTransferAlarmData,
} from "../api/screenDisplay"; } from "../api/screenDisplay";
import moment from 'moment' import moment from 'moment'
import {defineComponent} from "vue"; import {defineComponent} from "vue";
...@@ -461,6 +517,7 @@ export default defineComponent({ ...@@ -461,6 +517,7 @@ export default defineComponent({
if(newV === 1) { if(newV === 1) {
}else if(newV === 2) { }else if(newV === 2) {
console.log('mapBack',this.mapBack)
this.getHeatSourceTrend(); //获取热源趋势曲线 this.getHeatSourceTrend(); //获取热源趋势曲线
this.handleGetGYSupplyWaterTrend(); // 获取一次侧补水曲线 this.handleGetGYSupplyWaterTrend(); // 获取一次侧补水曲线
this.getDayEnergyConsumption(); // 获取当日实时能耗 this.getDayEnergyConsumption(); // 获取当日实时能耗
...@@ -468,7 +525,7 @@ export default defineComponent({ ...@@ -468,7 +525,7 @@ export default defineComponent({
this.handleGetGYSupplyAlarmData(); // 获取港益服务中心报警数据 this.handleGetGYSupplyAlarmData(); // 获取港益服务中心报警数据
this.handleGetGISRankWaterUC(); // 获取二次侧机组补水量排名 this.handleGetGISRankWaterUC(); // 获取二次侧机组补水量排名
}else { }else if(newV === 3) {
} }
}, },
...@@ -502,8 +559,10 @@ export default defineComponent({ ...@@ -502,8 +559,10 @@ export default defineComponent({
heatType: 1, // 能耗类型(1:温度,2:压力,3:流量) heatType: 1, // 能耗类型(1:温度,2:压力,3:流量)
rankList: [], rankList: [],
alarmDataList: [], alarmDataList: [],
alarmDataTwoList: [],
waterRankList: [], waterRankList: [],
dayEnergyForm: {}, dayEnergyForm: {},
thirdDayEnergyForm: {},
tokenCode: null, tokenCode: null,
//map: null, //map: null,
temperature: [], //室外温度 temperature: [], //室外温度
...@@ -547,6 +606,7 @@ export default defineComponent({ ...@@ -547,6 +606,7 @@ export default defineComponent({
rightLayer2Nodata: true, rightLayer2Nodata: true,
rightLayer4Nodata: true, rightLayer4Nodata: true,
mapBack: null, mapBack: null,
markerThree: {},
mapBackPostion: [{ lan: "38.854713", lon: "117.481685" }], mapBackPostion: [{ lan: "38.854713", lon: "117.481685" }],
fullscreenLoading: false, fullscreenLoading: false,
}; };
...@@ -669,7 +729,8 @@ export default defineComponent({ ...@@ -669,7 +729,8 @@ export default defineComponent({
area, area,
markerId, markerId,
index, index,
transferList transferList,
stationId
) { ) {
let _this = this; let _this = this;
var position = new AMap.LngLat(longitude, latitude); var position = new AMap.LngLat(longitude, latitude);
...@@ -774,6 +835,7 @@ export default defineComponent({ ...@@ -774,6 +835,7 @@ export default defineComponent({
}); });
popupButtons2.addEventListener("click", function (event) { popupButtons2.addEventListener("click", function (event) {
if (markerId.includes("marker1")) { if (markerId.includes("marker1")) {
console.log('1111111111111111111111111111111111111111111111111111111111111',centerId)
_this.mapBack = { _this.mapBack = {
map: map, map: map,
centerId: centerId, centerId: centerId,
...@@ -782,8 +844,18 @@ export default defineComponent({ ...@@ -782,8 +844,18 @@ export default defineComponent({
_this.postSupplylist(map, centerId, index, markerId); _this.postSupplylist(map, centerId, index, markerId);
} }
if (markerId.includes("marker2")) { if (markerId.includes("marker2")) {
console.log('222222222222222222222222222222222222222222222222222222222222222222',centerId)
_this.postTransferList(map, centerId, index, centerId); _this.postTransferList(map, centerId, index, centerId);
} }
if (markerId.includes("marker3")) {
console.log('3333333333333333333333333333333333333333333333333333333333333333',stationId)
_this.markerThree = {
// map: map,
stationId: stationId,
// index: index,
};
_this.thirdLevelPageFun() // 第三级页面方法
}
}); });
}, 500); }, 500);
}, },
...@@ -984,7 +1056,8 @@ export default defineComponent({ ...@@ -984,7 +1056,8 @@ export default defineComponent({
element.markerId = "marker3_" + index; element.markerId = "marker3_" + index;
element.openF = false; element.openF = false;
}); });
this.markerThree.stationId = _this.transferList[0].stationId
_this.thirdLevelPageFun() // 第三级页面方法
if (!_this.supplylistList[index].openF) { if (!_this.supplylistList[index].openF) {
_this.transferList.forEach((element, index) => { _this.transferList.forEach((element, index) => {
if (!element.openF) { if (!element.openF) {
...@@ -1011,7 +1084,8 @@ export default defineComponent({ ...@@ -1011,7 +1084,8 @@ export default defineComponent({
element.area, element.area,
element.markerId, element.markerId,
index, index,
element.transferList element.transferList,
element.stationId
); );
} }
}); });
...@@ -1119,6 +1193,29 @@ export default defineComponent({ ...@@ -1119,6 +1193,29 @@ export default defineComponent({
} }
}) })
}, },
// 第三级页面方法
thirdLevelPageFun() {
this.handleGetGYTransferRealData() // 获取港益换热站实时能耗数据
this.handleGetGYTransferAlarmData() // 获取港益换热站报警数据
},
// 获取港益换热站实时能耗数据
handleGetGYTransferRealData() {
const params = {
id: this.markerThree.stationId
}
getGYTransferRealData(params).then(res => {
this.thirdDayEnergyForm = res.data[0]
})
},
// 获取港益换热站报警数据
handleGetGYTransferAlarmData(){
const params = {
id: this.markerThree.stationId
}
getGYTransferAlarmData(params).then(res => {
this.alarmDataTwoList = res.data
})
},
//获取当日实时能耗 //获取当日实时能耗
getDayEnergyConsumption() { getDayEnergyConsumption() {
const params = { const params = {
...@@ -1991,6 +2088,25 @@ export default defineComponent({ ...@@ -1991,6 +2088,25 @@ export default defineComponent({
bottom: 5px; bottom: 5px;
/*border: rgba(129, 210, 230, 0.5) solid 1px;*/ /*border: rgba(129, 210, 230, 0.5) solid 1px;*/
} }
.gis_content .thirdLeftLayer {
position: absolute;
width: 21%;
height: 100%;
/* background: linear-gradient(to bottom, rgba(29, 70, 128, 0.5), rgba(29, 70, 128, 0.9), rgba(29, 70, 128, 0.5)); */
/*background: linear-gradient(318deg,#1d4680 0%, #0d174c);*/
z-index: 9;
top: 5px;
left: 5px;
bottom: 5px;
/*border: rgba(129, 210, 230, 0.5) solid 1px;*/
}
.thirdLeftLayer_one{
margin-bottom: 11px;
height: 32%;
border: rgba(129, 210, 230, 0.5) solid 1px;
padding: 0 0 0 10px;
background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%);
}
.secondLeftLayer_one{ .secondLeftLayer_one{
height: 26%; height: 26%;
border: rgba(129, 210, 230, 0.5) solid 1px; border: rgba(129, 210, 230, 0.5) solid 1px;
...@@ -2133,6 +2249,17 @@ export default defineComponent({ ...@@ -2133,6 +2249,17 @@ export default defineComponent({
/* background: linear-gradient(to bottom, rgba(29, 70, 128, 0.5), rgba(29, 70, 128, 0.9), rgba(29, 70, 128, 0.5)); */ /* background: linear-gradient(to bottom, rgba(29, 70, 128, 0.5), rgba(29, 70, 128, 0.9), rgba(29, 70, 128, 0.5)); */
z-index: 9; z-index: 9;
} }
.gis_content .thirdRightLayer {
position: absolute;
width: 21%;
height: 100%;
/* height: 1068px; */
top: 9px;
right: 5px;
bottom: 5px;
/* background: linear-gradient(to bottom, rgba(29, 70, 128, 0.5), rgba(29, 70, 128, 0.9), rgba(29, 70, 128, 0.5)); */
z-index: 9;
}
.gis_content .rightLayer2 { .gis_content .rightLayer2 {
width: 95%; width: 95%;
height: 100%; height: 100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment