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
e1cb0c68
Commit
e1cb0c68
authored
Dec 07, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ar报错提示
parent
a5a74a5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
arDisplay.vue
src/views/Gis/arDisplay.vue
+7
-0
No files found.
src/views/Gis/arDisplay.vue
View file @
e1cb0c68
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
</template>
</template>
<
script
>
<
script
>
import
ARWebControl
from
"./arWebControl.debug"
;
import
ARWebControl
from
"./arWebControl.debug"
;
import
{
ElMessage
}
from
"element-plus"
;
// 该接口为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'
...
@@ -152,12 +153,18 @@ export default {
...
@@ -152,12 +153,18 @@ export default {
// 超时
// 超时
window
.
addEventListener
(
"ar_websocket_link_time_out"
,
event
=>
{
window
.
addEventListener
(
"ar_websocket_link_time_out"
,
event
=>
{
this
.
connectError
=
event
.
detail
.
flag
;
this
.
connectError
=
event
.
detail
.
flag
;
ElMessage
.
error
({
message
:
'连接失败! 可尝试关闭窗口重新进入!'
});
});
});
// 登录失败
// 登录失败
window
.
addEventListener
(
"ar_login_failure"
,
event
=>
{
window
.
addEventListener
(
"ar_login_failure"
,
event
=>
{
this
.
loginFailure
=
true
;
this
.
loginFailure
=
true
;
this
.
connectError
=
true
;
this
.
connectError
=
true
;
this
.
loginFailedText
=
event
.
detail
||
"登录失败!"
;
this
.
loginFailedText
=
event
.
detail
||
"登录失败!"
;
ElMessage
.
error
({
message
:
'连接失败! 可尝试关闭窗口重新进入!'
});
});
});
// 启动
// 启动
...
...
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