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

大屏问题修改

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