Commit 87af311e authored by hubaoshan's avatar hubaoshan

Merge remote-tracking branch 'origin/master'

parents ba8e68c2 6bdc668c
...@@ -41,7 +41,7 @@ AIapi.interceptors.response.use((res) => { ...@@ -41,7 +41,7 @@ AIapi.interceptors.response.use((res) => {
closeLoading(); closeLoading();
let httpMessage = ''; let httpMessage = '';
if (error.response) { if (error.response) {
// alert('1') alert('1')
if (error.response.status == '401') { if (error.response.status == '401') {
if (error.response.data && error.response.data.status == 401) { if (error.response.data && error.response.data.status == 401) {
if (!localStorage.getItem('user')) { if (!localStorage.getItem('user')) {
......
import httpTwo from '../httpTwo'
// 查询一键启停状态
export const selectOneStartStop = params => {
return httpTwo.get(`/busVoiceCommands/selectOneStartStop?stationId=` + params.stationId + '&unitId=' + params.unitId)
}
...@@ -97,6 +97,13 @@ export const getGYSupplyWaterTrend = params => { ...@@ -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 => { export const postGYPipeReal = params => {
return http.post(`/api/gis/GYPipeReal`).then(res => res).catch(function (error) { return http.post(`/api/gis/GYPipeReal`).then(res => res).catch(function (error) {
......
...@@ -534,6 +534,7 @@ import { ...@@ -534,6 +534,7 @@ import {
GetGYHeatSourceTrend, GetGYHeatSourceTrend,
getGYTransferRealData, getGYTransferRealData,
getGYTransferAlarmData, getGYTransferAlarmData,
GYTransferVideo,
} from "../api/screenDisplay"; } from "../api/screenDisplay";
import moment from 'moment' import moment from 'moment'
import {defineComponent} from "vue"; import {defineComponent} from "vue";
...@@ -689,7 +690,27 @@ export default defineComponent({ ...@@ -689,7 +690,27 @@ export default defineComponent({
}, },
handleToDetail() { handleToDetail() {
this.$router.push("/Alarm") 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) { handleShowMore(type) {
if(type === '1') { if(type === '1') {
this.alarmList = this.alarmDataList this.alarmList = this.alarmDataList
...@@ -2902,6 +2923,17 @@ export default defineComponent({ ...@@ -2902,6 +2923,17 @@ export default defineComponent({
thirdLevelPageFun() { thirdLevelPageFun() {
this.handleGetGYTransferRealData() // 获取港益换热站实时能耗数据 this.handleGetGYTransferRealData() // 获取港益换热站实时能耗数据
this.handleGetGYTransferAlarmData() // 获取港益换热站报警数据 this.handleGetGYTransferAlarmData() // 获取港益换热站报警数据
this.getGYTransferVideo() // 获取港益换热站视频数据
},
// 获取港益换热站视频数据
getGYTransferVideo() {
const params = {
// id: this.markerThree.stationId
id: '9C9D13FA-BA07-4394-8441-55F98F160EDA'
}
GYTransferVideo(params).then(res => {
})
}, },
// 获取港益换热站实时能耗数据 // 获取港益换热站实时能耗数据
handleGetGYTransferRealData() { handleGetGYTransferRealData() {
......
...@@ -552,6 +552,14 @@ const routes = [ ...@@ -552,6 +552,14 @@ const routes = [
title: "语音指令部署位置", title: "语音指令部署位置",
}, },
}, },
{
path: "/Remote/OnekeyStartStop",
name: "OnekeyStartStop",
component: () => import("@/views/RemotePage/OnekeyStartStopPage.vue"),
meta: {
title: "一键启停",
},
},
], ],
}, },
{ {
......
This diff is collapsed.
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
<!-- <div> <!-- <div>
点击此处前往海康平台下载视频播放插件 点击此处前往海康平台下载视频播放插件
</div> --> </div> -->
</el-card> </el-card>
<div class="videoPlayer" id="playWnd"> <div class="videoPlayer" id="playWnd">
...@@ -96,7 +96,7 @@ var pubKey = ''; ...@@ -96,7 +96,7 @@ var pubKey = '';
var playWnd_width = window.innerWidth - 200; var playWnd_width = window.innerWidth - 200;
var playWnd_height = window.innerHeight - 220; var playWnd_height = window.innerHeight - 220;
var oWebControl; var oWebControl;
var videoIp; var videoIp="218.69.97.198";;
var videoPort=1443; var videoPort=1443;
const enterpriseId = ref(null); const enterpriseId = ref(null);
enterpriseId.value = store.getters.getEnterpriseId(); enterpriseId.value = store.getters.getEnterpriseId();
...@@ -234,8 +234,8 @@ function visibleCascader(isshow) { ...@@ -234,8 +234,8 @@ function visibleCascader(isshow) {
} }
} }
$(document).ready(function () { $(document).ready(async function () {
initIp();//ip await initIp();//ip
initPlugin(); initPlugin();
$('#startPlay').click( $('#startPlay').click(
function () { function () {
...@@ -327,7 +327,9 @@ function cbIntegrationCallBack(oData) { ...@@ -327,7 +327,9 @@ function cbIntegrationCallBack(oData) {
//初始化ip //初始化ip
async function initIp(){ async function initIp(){
const res = await fetch('https://api.ipify.org?format=json'); var res;
try{
res = await fetch('https://api.ipify.org?format=json');
const data = await res.json(); const data = await res.json();
var serverIP = data.ip; var serverIP = data.ip;
if(serverIP === "111.160.132.74" || serverIP === "218.69.97.198"){ if(serverIP === "111.160.132.74" || serverIP === "218.69.97.198"){
...@@ -335,11 +337,18 @@ async function initIp(){ ...@@ -335,11 +337,18 @@ async function initIp(){
}else{ }else{
videoIp="218.69.97.198"; videoIp="218.69.97.198";
} }
}catch(e){
videoIp="218.69.97.198";
}
videoPort=1443; videoPort=1443;
} }
//初始化插件 //初始化插件
function init() { function init() {
getPubKey(function () { getPubKey(function () {
console.log("ip:"+videoIp); console.log("ip:"+videoIp);
////////////////////////////////// 请自行修改以下变量值 //////////////////////////////////// ////////////////////////////////// 请自行修改以下变量值 ////////////////////////////////////
......
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