Commit f04501f9 authored by 张伯涛's avatar 张伯涛

大屏问题修改

parent 2be5f514
......@@ -621,6 +621,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
import { detectZoom } from "@/plugins/screen";
import { ElLoading } from "element-plus";
import { ElMessage } from "element-plus";
import jsCookie from"js-cookie";
const m = detectZoom();
import videoComponents from './videoComponents.vue'
import videoComponentsTwo from './videoComponentsTwo.vue'
......@@ -857,10 +858,15 @@ export default defineComponent({
}
getPlanIdApi(params).then(res => {
if(res.status === 0) {
const id = res.data.id
window.open('/GisAr', '_blank');
localStorage.setItem('arId',id)
console.log('ggggggggggggggggggggggggggggggggggggggggggggggggggggggg')
const arOpen = jsCookie.get('arOpen')
if(arOpen === '1') {
ElMessage.error('当前已打开AR模块');
}else {
const id = res.data.id
window.open('/GisAr', '_blank');
localStorage.setItem('arId',id)
console.log('ggggggggggggggggggggggggggggggggggggggggggggggggggggggg')
}
}else {
ElMessage.error('此换热站暂无ar监控点');
}
......@@ -3128,7 +3134,6 @@ export default defineComponent({
},
// 获取港益换热站视频数据
getGYTransferVideo() {
console.log('this.transferList',this.transferList)
this.videoLoading = true
this.videoNum = 0
// this.markerThree.stationId = _this.transferList[0].stationId
......
......@@ -32,6 +32,8 @@
<script>
import ARWebControl from "./arWebControl.debug";
import {ElMessage} from "element-plus";
import store from "@/store/index.js";
import jsCookie from"js-cookie";
// 该接口为vlmas组件ui接口,如果是在copas中调用,可以使用vlmas wiki中提供的api接口,如果是组件中使用,需要对应组件参照wiki提供相应接口
import { getLoginTgc } from "@/api/ar";
import { useRoute } from 'vue-router'
......@@ -56,7 +58,13 @@ export default {
loginFailedText: ""
};
},
created() {
jsCookie.set('arOpen','1');
},
mounted() {
window.addEventListener("unload", function (event) {
jsCookie.set('arOpen','0');
});
document.title = "AR车间";
console.log("----state----", this.$store.state, document.title);
this.ip = window.location.hostname;
......
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