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
f04501f9
Commit
f04501f9
authored
Dec 20, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏问题修改
parent
2be5f514
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
screenDisplay.vue
src/components/screenDisplay.vue
+10
-5
arDisplay.vue
src/views/Gis/arDisplay.vue
+8
-0
No files found.
src/components/screenDisplay.vue
View file @
f04501f9
...
@@ -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
...
...
src/views/Gis/arDisplay.vue
View file @
f04501f9
...
@@ -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
;
...
...
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