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
ba4d1397
Commit
ba4d1397
authored
Dec 05, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ar模块初步修改
parent
d0d8653f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
arDisplay.vue
src/views/Gis/arDisplay.vue
+15
-9
No files found.
src/views/Gis/arDisplay.vue
View file @
ba4d1397
...
...
@@ -88,19 +88,13 @@ export default {
handleVisibilityChange
()
{
if
(
document
.
hidden
)
{
console
.
log
(
'隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏隐藏'
)
// this.control.setWindowStatus(1);
if
(
this
.
control
)
{
this
.
control
.
setWindowStatus
(
2
);
this
.
control
=
null
;
}
}
else
{
// setTimeout(function () {
// const container = document.getElementById('ar-div');
// console.log('显示显示显示显示显示显示显示显示显示显示显示',container)
// console.log('显示显示显示显示显示显示显示显示显示显示显示',this.control)
// this.control.setWindowStatus(0);
console
.
log
(
'显示显示显示显示显示显示显示显示显示显示显示'
)
document
.
title
=
"AR车间"
;
this
.
ip
=
window
.
location
.
hostname
;
this
.
protocolType
=
window
.
location
.
protocol
.
replace
(
':'
,
''
)
...
...
@@ -109,6 +103,18 @@ export default {
}
else
{
this
.
port
=
this
.
protocolType
===
"https"
?
"443"
:
"80"
;
}
/* // 获取浏览器窗口的宽高
const windowWidth = window.innerWidth;
// 获取屏幕的宽高
const screenWidth = screen.width;
// 比较窗口尺寸与屏幕尺寸
if (windowWidth === screenWidth) {
} else {
}
console.log('windowWidth', windowWidth)
console.log('screenWidth', screenWidth)*/
this
.
getClientInfo
();
// }, 2000);
}
...
...
@@ -299,8 +305,8 @@ body {
}
.panel-child
{
padding-top
:
45px
;
width
:
1
920px
;
height
:
9
00px
;
width
:
1
00vw
;
/* 100% of the viewport width */
height
:
9
4vh
;
/* 100% of the viewport height */
}
.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