Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
security-avoidance-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lichunliang
security-avoidance-system
Commits
c8c20766
Commit
c8c20766
authored
Jun 09, 2025
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:监控视频播放页面
parent
872ef1df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
59 deletions
+94
-59
index.vue
src/views/demonstrate/index.vue
+94
-59
No files found.
src/views/demonstrate/index.vue
View file @
c8c20766
...
...
@@ -12,11 +12,21 @@
>
</el-tree>
</div>
-->
<!-- 弹窗 -->
<el-dialog
title=
"监控视频"
:visible.sync=
"videoDialog"
width=
"60%"
>
<iframe
:src=
"`http://10.7.148.106:10800/play.html?channel=$
{channel}
&
iframe=yes
&
aspect=640x360`"
width="640"
height="360"
allowfullscreen
allow="autoplay; fullscreen"
>
</iframe>
</el-dialog>
</div>
</
template
>
<
script
>
import
iFrame
from
'
@/components/iFrame
'
;
import
iFrame
from
"
@/components/iFrame
"
;
export
default
{
name
:
"
demonstrate
"
,
...
...
@@ -24,52 +34,69 @@ export default {
data
()
{
return
{
intervalId
:
null
,
msg
:
null
,
btnItems
:[{
msg
:
null
,
btnItems
:
[
{
id
:
1
,
label
:
'
人工设置
'
,
children
:
[{
id
:
5
,
label
:
'
添加人工
'
,
val
:
'
2-0
'
},{
id
:
6
,
label
:
'
设置完成
'
,
val
:
'
2-1
'
}]
},
{
label
:
"
人工设置
"
,
children
:
[
{
id
:
5
,
label
:
"
添加人工
"
,
val
:
"
2-0
"
,
},
{
id
:
6
,
label
:
"
设置完成
"
,
val
:
"
2-1
"
,
},
],
},
{
id
:
2
,
label
:
'
障碍设置
'
,
children
:
[{
id
:
7
,
label
:
'
塌方
'
,
val
:
'
3-0
'
},
{
id
:
8
,
label
:
'
渗水
'
,
val
:
'
3-1
'
},
{
id
:
8
,
label
:
'
设置完成
'
,
val
:
'
3-2
'
}]
},
{
label
:
"
障碍设置
"
,
children
:
[
{
id
:
7
,
label
:
"
塌方
"
,
val
:
"
3-0
"
,
},
{
id
:
8
,
label
:
"
渗水
"
,
val
:
"
3-1
"
,
},
{
id
:
8
,
label
:
"
设置完成
"
,
val
:
"
3-2
"
,
},
],
},
{
id
:
3
,
label
:
'
避险
'
,
children
:
[{
id
:
9
,
label
:
'
井下避险
'
,
val
:
'
4-0
'
},
{
id
:
10
,
label
:
'
全员撤离
'
,
val
:
'
4-1
'
}]
},
{
label
:
"
避险
"
,
children
:
[
{
id
:
9
,
label
:
"
井下避险
"
,
val
:
"
4-0
"
,
},
{
id
:
10
,
label
:
"
全员撤离
"
,
val
:
"
4-1
"
,
},
],
},
{
id
:
4
,
label
:
'
初始化
'
,
val
:
'
5-0
'
}],
label
:
"
初始化
"
,
val
:
"
5-0
"
,
},
],
videoDialog
:
false
,
channel
:
""
,
};
},
mounted
()
{
...
...
@@ -81,64 +108,72 @@ export default {
window
.
onresize
=
function
temp
()
{
that
.
height
=
document
.
documentElement
.
clientHeight
-
94.5
+
"
px;
"
;
};
this
.
intervalId
=
setInterval
(
this
.
checkLocalStorage
,
1000
);
});
//从路由里面拿参数
this
.
channel
=
this
.
$route
.
query
.
channel
;
if
(
this
.
channel
)
{
// 打开弹窗
this
.
videoDialog
=
true
;
}
else
{
// 关闭弹窗
this
.
videoDialog
=
false
;
}
},
methods
:
{
nodeClick
(
obj
){
if
(
obj
.
val
)
{
this
.
sendTo3D
(
obj
.
val
)
nodeClick
(
obj
)
{
if
(
obj
.
val
)
{
this
.
sendTo3D
(
obj
.
val
)
;
}
},
checkLocalStorage
()
{
let
name
=
localStorage
.
getItem
(
'
name
'
);
let
name
=
localStorage
.
getItem
(
"
name
"
);
if
(
name
)
{
// console.log('找到:', name);
clearInterval
(
this
.
intervalId
);
this
.
msg
=
name
;
}
else
{
console
.
log
(
'
Name not found, continuing to check...
'
);
console
.
log
(
"
Name not found, continuing to check...
"
);
}
},
sendTo3D
(
val
)
{
localStorage
.
removeItem
(
"
to3d
"
);
localStorage
.
setItem
(
"
to3d
"
,
val
);
},
},
beforeDestroy
()
{
localStorage
.
removeItem
(
"
to3d
"
);
localStorage
.
removeItem
(
"
name
"
);
clearInterval
(
this
.
intervalId
);
}
}
,
};
</
script
>
<
style
scoped
lang=
"scss"
>
.demonstrate
{
.demonstrate
{
position
:
relative
;
.u3d-iframe
{
.u3d-iframe
{
width
:
100%
;
}
.u3d-btn
{
.u3d-btn
{
width
:
140px
;
position
:
absolute
;
bottom
:
0
;
left
:
0%
;
top
:
10%
;
.u3d-btn-item
{
.u3d-btn-item
{
font-size
:
30px
;
line-height
:
1
.5em
;
font-weight
:
bold
;
color
:
#0394d0
;
cursor
:
pointer
;
&
:hover
{
color
:rgba
(
13
,
29
,
55
)
;
&
:hover
{
color
:
rgba
(
13
,
29
,
55
);
}
}
}
}
::v-deep
.el-tree
{
::v-deep
.el-tree
{
background
:
none
;
}
</
style
>
\ No newline at end of file
</
style
>
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