Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
whp-xl
Project
Project
Details
Activity
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
lizhichao
whp-xl
Commits
c4e4024f
Commit
c4e4024f
authored
Jun 16, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频可视化
parent
d1172cb1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
7 deletions
+84
-7
EasyWasmPlayer.js
dcit-hcsystem-hcsystem-master/public/EasyWasmPlayer.js
+19
-0
index.html
dcit-hcsystem-hcsystem-master/public/index.html
+1
-0
libDecoder.wasm
dcit-hcsystem-hcsystem-master/public/libDecoder.wasm
+0
-0
VideoList.vue
dcit-hcsystem-hcsystem-master/src/views/Video/VideoList.vue
+64
-7
No files found.
dcit-hcsystem-hcsystem-master/public/EasyWasmPlayer.js
0 → 100644
View file @
c4e4024f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dcit-hcsystem-hcsystem-master/public/index.html
View file @
c4e4024f
...
...
@@ -12,6 +12,7 @@
<link
rel=
"stylesheet"
href=
"https://js.arcgis.com/3.33/dijit/themes/nihilo/nihilo.css"
>
<title>
危化品企业监管平台
</title>
<script
src=
"./EasyWasmPlayer.js"
></script>
</head>
<body>
<noscript>
...
...
dcit-hcsystem-hcsystem-master/public/libDecoder.wasm
0 → 100644
View file @
c4e4024f
File added
dcit-hcsystem-hcsystem-master/src/views/Video/VideoList.vue
View file @
c4e4024f
...
...
@@ -2,6 +2,7 @@
<div
class=
"pomentWrap"
>
<el-row
:gutter=
"5"
type=
"flex"
justify=
"space-around"
>
<el-col
:xs=
"12"
:sm=
"12"
:md=
"6"
:lg=
"4"
:xl=
"4"
>
<!--
<el-aside>
-->
<div
class=
"topBar"
>
<el-tree
:data=
"treeData"
...
...
@@ -15,30 +16,75 @@
>
</el-tree>
</div>
<!--
</el-aside>
-->
</el-col>
<el-col
:xs=
"12"
:sm=
"12"
:md=
"18"
:lg=
"20"
:xl=
"20"
>
<el-table
:data=
"tableData.pageData"
border
style=
"width:100%;"
v-loading=
"loading"
>
<el-table-column
prop=
"deviceName"
label
></el-table-column>
</el-table>
<!--
<el-main>
-->
<div>
<el-row>
<div
class=
"box"
:class=
"[flag == 'newplay1' ? 'boxred' : 'boxblack']"
>
<div
id=
"newplay1"
style=
"width:100%; height:100%;"
@
click=
"chooseWindow('newplay1')"
>
<span
class=
"novideo"
>
无信号
</span>
</div>
</div>
<div
class=
"box"
:class=
"[flag == 'newplay2' ? 'boxred' : 'boxblack']"
>
<div
id=
"newplay2"
style=
"width:100%; height:100%;"
@
click=
"chooseWindow('newplay2')"
>
<span
class=
"novideo"
>
无信号
</span>
</div>
</div>
</el-row>
<el-row>
<div
class=
"box"
:class=
"[flag == 'newplay3' ? 'boxred' : 'boxblack']"
>
<div
id=
"newplay3"
style=
"width:100%; height:100%;"
@
click=
"chooseWindow('newplay3')"
>
<span
class=
"novideo"
>
无信号
</span>
</div>
</div>
<div
class=
"box"
:class=
"[flag == 'newplay4' ? 'boxred' : 'boxblack']"
>
<div
id=
"newplay4"
style=
"width:100%; height:100%;"
@
click=
"chooseWindow('newplay4')"
>
<span
class=
"novideo"
>
无信号
</span>
</div>
</div>
</el-row>
</div>
<!--
</el-main>
-->
</el-col>
</el-row>
</div>
</
template
>
<
style
lang=
"scss"
scped
>
@import
'@/utils/public.scss'
;
.box
{
float
:left
;
width
:
550px
;
height
:
300px
;
background-color
:
#edf1f6
;
text-align
:
center
;
position
:relative
;
right
:
0px
;
}
.boxred
{
border
:
1px
solid
red
;
}
.boxblack
{
border
:
1px
solid
black
;
}
.novideo
{
/*padding: 147px 0px 147px 0px;*/
/*display: block;*/
line-height
:
300px
;
}
</
style
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
,
Provide
,
Watch
}
from
"vue-property-decorator"
;
import
METHOD
from
"@/utils/methods"
@
Component
({
components
:
{
}
})
export
default
class
VideoList
extends
Vue
{
@
Provide
()
tableData
:
Object
=
{
pageData
:
[],
total
:
0
};
@
Provide
()
PAGE
:
any
=
{
page
:
1
,
size
:
100000
};
@
Provide
()
searchData
:
any
=
{
account
:
""
,
userName
:
""
};
@
Provide
()
loading
:
Boolean
=
false
;
@
Provide
()
playerWindow
:
String
=
"newplay1"
;
@
Provide
()
flag
:
String
=
""
;
@
Provide
()
treeData
:
any
=
[
{
enterpriseId
:
0
,
...
...
@@ -66,7 +112,18 @@
nodeClick
(
data
:
any
,
node
:
any
,
target
:
any
)
{
let
that
=
this
;
that
.
treecheckedObj
=
node
.
data
;
if
(
node
.
level
==
"3"
){
var
player
=
new
WasmPlayer
(
null
,
that
.
playerWindow
,
null
,
{
Height
:
true
});
console
.
log
(
that
.
playerWindow
,
node
.
data
.
deviceNumber
)
player
.
play
(
'http://27.128.189.137:10001/flv/hls/'
+
that
.
treecheckedObj
.
deviceNumber
+
'.flv'
,
1
);
}
}
chooseWindow
(
data
:
any
){
this
.
playerWindow
=
data
;
this
.
flag
=
data
;
}
created
()
{
let
that
=
this
;
that
.
getTreeData
();
...
...
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