Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huarun-binjiang-ipad
/
ipad
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f9bacc11
authored
Dec 15, 2021
by
liuwange1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改
parent
2b1c6658
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
src/App.vue
+2
-2
src/components/buildList.vue
+6
-0
src/views/anfang.vue
+5
-4
No files found.
src/App.vue
View file @
f9bacc11
...
@@ -334,7 +334,7 @@ export default {
...
@@ -334,7 +334,7 @@ export default {
if
(
"WebSocket"
in
window
)
{
if
(
"WebSocket"
in
window
)
{
websocket
=
new
WebSocket
(
"ws://123.56.242.140:8089/ws/pad"
);
websocket
=
new
WebSocket
(
"ws://123.56.242.140:8089/ws/pad"
);
}
else
{
}
else
{
alert
(
"该浏览器不支持websocket!"
);
//
alert("该浏览器不支持websocket!");
}
}
websocket
.
onopen
=
function
(
event
)
{
websocket
.
onopen
=
function
(
event
)
{
...
@@ -363,7 +363,7 @@ export default {
...
@@ -363,7 +363,7 @@ export default {
};
};
websocket
.
onerror
=
function
()
{
websocket
.
onerror
=
function
()
{
alert
(
"websocket通信发生错误!"
);
//
alert("websocket通信发生错误!");
};
};
window
.
onbeforeunload
=
function
()
{
window
.
onbeforeunload
=
function
()
{
...
...
src/components/buildList.vue
View file @
f9bacc11
...
@@ -65,6 +65,12 @@ export default {
...
@@ -65,6 +65,12 @@ export default {
arg
:
this
.
listL
[
index
].
id
,
arg
:
this
.
listL
[
index
].
id
,
name
:
"/LY"
,
name
:
"/LY"
,
});
});
if
(
index
==
0
)
{
this
.
$emit
(
"change"
,
{
ldID
:
""
,
lcID
:
""
,
});
}
},
},
buildClickHandle2
(
index
)
{
buildClickHandle2
(
index
)
{
if
(
this
.
activeIndex
==
0
&&
this
.
activeIndex2
==
0
)
{
if
(
this
.
activeIndex
==
0
&&
this
.
activeIndex2
==
0
)
{
...
...
src/views/anfang.vue
View file @
f9bacc11
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<div
class=
"title"
>
模型楼栋楼层控制
</div>
<div
class=
"title"
>
模型楼栋楼层控制
</div>
<div
class=
"style-line"
></div>
<div
class=
"style-line"
></div>
</div>
</div>
<buildList
:osc=
"osc"
@
listenBuildC
hange=
"buildChange"
></buildList>
<buildList
:osc=
"osc"
@
c
hange=
"buildChange"
></buildList>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<div
class=
"title-box"
>
<div
class=
"title-box"
>
...
@@ -142,7 +142,7 @@ export default {
...
@@ -142,7 +142,7 @@ export default {
return
{
return
{
options
:
[
"监控摄像头"
,
"AI智能摄像头"
],
options
:
[
"监控摄像头"
,
"AI智能摄像头"
],
optionKeys
:
[
"CAMERA_MONITOR"
,
"CAMERA_AI"
],
optionKeys
:
[
"CAMERA_MONITOR"
,
"CAMERA_AI"
],
optionActiveIndex
:
-
1
,
optionActiveIndex
:
0
,
osc
:
11
,
osc
:
11
,
oscName
:
"/EZ_AF"
,
oscName
:
"/EZ_AF"
,
roadList
:
[],
roadList
:
[],
...
@@ -167,6 +167,7 @@ export default {
...
@@ -167,6 +167,7 @@ export default {
created
()
{
created
()
{
this
.
init
();
this
.
init
();
this
.
getInspectionLineList
();
this
.
getInspectionLineList
();
this
.
getMonitorList
();
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
...
@@ -240,8 +241,8 @@ export default {
...
@@ -240,8 +241,8 @@ export default {
},
},
buildChange
(
e
)
{
buildChange
(
e
)
{
this
.
ids
=
e
;
this
.
ids
=
e
;
this
.
params
.
buildingCode
=
e
.
pid
;
this
.
params
.
buildingCode
=
e
.
ldID
;
this
.
params
.
floorCode
=
e
.
id
;
this
.
params
.
floorCode
=
e
.
lcID
;
this
.
getMonitorList
();
this
.
getMonitorList
();
},
},
getMonitorList
()
{
getMonitorList
()
{
...
...
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