Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
海康威视
web-project
Commits
41e96462
Commit
41e96462
authored
Dec 16, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ar模块修改
parent
1fbd431a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
screenDisplay.vue
src/components/screenDisplay.vue
+11
-7
arDisplay.vue
src/views/Gis/arDisplay.vue
+3
-4
No files found.
src/components/screenDisplay.vue
View file @
41e96462
...
@@ -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
:
14
0
,
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
:
-
3
0
,
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, [
...
...
src/views/Gis/arDisplay.vue
View file @
41e96462
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment