Commit 41e96462 authored by 张伯涛's avatar 张伯涛

ar模块修改

parent 1fbd431a
...@@ -764,7 +764,8 @@ export default defineComponent({ ...@@ -764,7 +764,8 @@ 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 id = res.data.id
window.open('/GisAr?id=' + id, '_blank'); window.open('/GisAr', '_blank');
localStorage.setItem('arId',id)
console.log('ggggggggggggggggggggggggggggggggggggggggggggggggggggggg') console.log('ggggggggggggggggggggggggggggggggggggggggggggggggggggggg')
}else { }else {
ElMessage.error('此换热站暂无ar监控点'); ElMessage.error('此换热站暂无ar监控点');
...@@ -873,7 +874,7 @@ export default defineComponent({ ...@@ -873,7 +874,7 @@ export default defineComponent({
pitchEnable: true, pitchEnable: true,
// scrollWheel: false, // scrollWheel: false,
zoom: 12, zoom: 12,
rotation: 140, rotation: 0,
zooms: [12, 20], zooms: [12, 20],
center: [117.490182, 38.885596], center: [117.490182, 38.885596],
}); });
...@@ -1019,16 +1020,19 @@ export default defineComponent({ ...@@ -1019,16 +1020,19 @@ export default defineComponent({
//选择所有的button元素 //选择所有的button元素
const popupButtons1 = document.querySelectorAll(".mypopup3"); const popupButtons1 = document.querySelectorAll(".mypopup3");
const popupButtons2 = document.querySelector("#" + markerId); const popupButtons2 = document.querySelector("#" + markerId);
console.log('popupButtons1',popupButtons1)
console.log('popupButtons2',popupButtons2)
// 为每个button元素绑定click事件 // 为每个button元素绑定click事件
popupButtons1.forEach(function (button) { popupButtons1.forEach(function (button) {
button.addEventListener("click", function (event) { button.addEventListener("click", function (event) {
_this.thirdLevelDblclick(stationId) // 第三级页面双击
// 处理点击事件 // 处理点击事件
_this.voideShow = true; // _this.voideShow = true;
}); });
}); });
popupButtons2.addEventListener("dblclick", function (event) { popupButtons2.addEventListener("dblclick", function (event) {
if (markerId.includes("marker3")) { if (markerId.includes("marker3")) {
_this.thirdLevelDblclick(stationId) // 第三级页面双击 // _this.thirdLevelDblclick(stationId) // 第三级页面双击
} }
}) })
popupButtons2.addEventListener("click", function (event) { popupButtons2.addEventListener("click", function (event) {
...@@ -1105,8 +1109,8 @@ export default defineComponent({ ...@@ -1105,8 +1109,8 @@ export default defineComponent({
rotateEnable: true, rotateEnable: true,
pitchEnable: true, pitchEnable: true,
zoom: 14, zoom: 14,
rotation: -30, rotation:0,
zooms: [14, 20], zooms: [2, 20],
center: [_this.mapBackPostion[0], _this.mapBackPostion[1]], center: [_this.mapBackPostion[0], _this.mapBackPostion[1]],
}); });
...@@ -1305,7 +1309,7 @@ export default defineComponent({ ...@@ -1305,7 +1309,7 @@ export default defineComponent({
map.setZoomAndCenter(16, ["117.496956", "38.856422"]); map.setZoomAndCenter(16, ["117.496956", "38.856422"]);
break; break;
case "b354f45b-23e5-42be-a210-0fb92394f457": case "b354f45b-23e5-42be-a210-0fb92394f457":
map.setZoomAndCenter(16, ["117.499208", "38.855445"]); map.setZoomAndCenter(16, ["117.170696", "38.757572"]);
break; break;
} }
// map.setZoomAndCenter(17, [ // map.setZoomAndCenter(17, [
......
...@@ -96,10 +96,9 @@ export default { ...@@ -96,10 +96,9 @@ export default {
this.domainId = 103; this.domainId = 103;
} }
const urlParams = new URLSearchParams(window.location.search); // const urlParams = new URLSearchParams(window.location.search);
const arIndexCode = urlParams.get('id'); // const arIndexCode = urlParams.get('id');
console.log('id',arIndexCode) const arIndexCode = localStorage.getItem('arId')
const loginType = 3; const loginType = 3;
const ip = this.arIp; const ip = this.arIp;
const port = this.raData.port; const port = this.raData.port;
......
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