Commit 6bdc668c authored by 张伯涛's avatar 张伯涛

大屏页面路由调整本地存储问题修改

parent 4b9c13d7
......@@ -97,6 +97,13 @@ export const getGYSupplyWaterTrend = params => {
})
}
//获取港益换热站视频数据
export const GYTransferVideo = params => {
return http.post(`/api/gis/GYTransferVideo`, params).then(res => res).catch(function (error) {
console.log(error);
})
}
//获取实时数据接口
export const postGYPipeReal = params => {
return http.post(`/api/gis/GYPipeReal`).then(res => res).catch(function (error) {
......
......@@ -534,6 +534,7 @@ import {
GetGYHeatSourceTrend,
getGYTransferRealData,
getGYTransferAlarmData,
GYTransferVideo,
} from "../api/screenDisplay";
import moment from 'moment'
import {defineComponent} from "vue";
......@@ -689,7 +690,27 @@ export default defineComponent({
},
handleToDetail() {
this.$router.push("/Alarm")
localStorage.setItem("activeTab", "/Alarm");
this.addTab()
},
addTab() {
const editableTabs = [
{
title: "首页-实时热源",
path: "/RealSupply",
},
{
title: '报警信息',
path: '/Alarm',
}
]
//本地存储
window.sessionStorage.setItem(
"tabList",
JSON.stringify(editableTabs)
);
window.sessionStorage.setItem('activePath','/Alarm')
},
handleShowMore(type) {
if(type === '1') {
this.alarmList = this.alarmDataList
......@@ -2902,6 +2923,17 @@ export default defineComponent({
thirdLevelPageFun() {
this.handleGetGYTransferRealData() // 获取港益换热站实时能耗数据
this.handleGetGYTransferAlarmData() // 获取港益换热站报警数据
this.getGYTransferVideo() // 获取港益换热站视频数据
},
// 获取港益换热站视频数据
getGYTransferVideo() {
const params = {
// id: this.markerThree.stationId
id: '9C9D13FA-BA07-4394-8441-55F98F160EDA'
}
GYTransferVideo(params).then(res => {
})
},
// 获取港益换热站实时能耗数据
handleGetGYTransferRealData() {
......
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