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
20381635
Commit
20381635
authored
Dec 05, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ar修改
parent
fa5a43f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
21 deletions
+27
-21
arDisplay.vue
src/views/Gis/arDisplay.vue
+27
-21
No files found.
src/views/Gis/arDisplay.vue
View file @
20381635
...
...
@@ -71,6 +71,7 @@ export default {
document
.
removeEventListener
(
'visibilitychange'
,
this
.
handleVisibilityChange
);
},
beforeDestroy
()
{
console
.
log
(
'销毁销毁销毁销毁销毁销毁销毁销毁销毁销毁销毁'
)
if
(
this
.
control
)
{
this
.
control
.
setWindowStatus
(
2
);
this
.
control
=
null
;
...
...
@@ -83,36 +84,40 @@ export default {
next
();
},
methods
:
{
handleBeforeUnload
(
event
)
{
console
.
log
(
'jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'
)
},
handleVisibilityChange
()
{
if
(
document
.
hidden
)
{
console
.
log
(
'隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏'
)
// this.control.setWindowStatus(1);
if
(
this
.
control
)
{
this
.
control
.
setWindowStatus
(
2
);
this
.
control
=
null
;
}
}
else
{
console
.
log
(
'显示显示显示显示显示显示显示显示显示显示显示'
)
document
.
title
=
"AR车间"
;
console
.
log
(
"----state----"
,
this
.
$store
.
state
,
document
.
title
);
this
.
ip
=
window
.
location
.
hostname
;
this
.
protocolType
=
window
.
location
.
protocol
.
replace
(
':'
,
''
)
if
(
window
.
location
.
port
)
{
this
.
port
=
window
.
location
.
port
;
}
else
{
this
.
port
=
this
.
protocolType
===
"https"
?
"443"
:
"80"
;
}
this
.
getClientInfo
();
// setTimeout(function () {
// const container = document.getElementById('ar-div');
// console.log('显示显示显示显示显示显示显示显示显示显示显示',container)
// console.log('显示显示显示显示显示显示显示显示显示显示显示',this.control)
// this.control.setWindowStatus(0);
document
.
title
=
"AR车间"
;
this
.
ip
=
window
.
location
.
hostname
;
this
.
protocolType
=
window
.
location
.
protocol
.
replace
(
':'
,
''
)
if
(
window
.
location
.
port
)
{
this
.
port
=
window
.
location
.
port
;
}
else
{
this
.
port
=
this
.
protocolType
===
"https"
?
"443"
:
"80"
;
}
this
.
getClientInfo
();
// }, 2000);
}
},
init
()
{
//
//
初始化
//
if (this.control) {
// this.control.setWindowStatus(2
);
//
this.control = null;
//
}
// 初始化
if
(
this
.
control
)
{
this
.
control
.
setWindowStatus
(
0
);
this
.
control
=
null
;
}
const
urlParams
=
new
URLSearchParams
(
window
.
location
.
search
);
const
arIndexCode
=
urlParams
.
get
(
'id'
);
console
.
log
(
'id'
,
arIndexCode
)
...
...
@@ -285,8 +290,9 @@ body {
border-right
:
1px
solid
#000
;
}
.panel-child
{
width
:
100%
;
height
:
100%
;
padding-top
:
45px
;
width
:
1920px
;
height
:
900px
;
}
.errorContent
{
position
:
fixed
;
...
...
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