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
de300f11
Commit
de300f11
authored
Jun 17, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://111.61.77.35:15/lizhichao/whp-xl
into master
parents
248c894b
3f8f9b92
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
7 deletions
+78
-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
+58
-7
No files found.
dcit-hcsystem-hcsystem-master/public/EasyWasmPlayer.js
0 → 100644
View file @
de300f11
This diff is collapsed.
Click to expand it.
dcit-hcsystem-hcsystem-master/public/index.html
View file @
de300f11
...
...
@@ -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 @
de300f11
File added
dcit-hcsystem-hcsystem-master/src/views/Video/VideoList.vue
View file @
de300f11
...
...
@@ -18,27 +18,67 @@
</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-row
class=
"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
class=
"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>
</el-col>
</el-row>
</div>
</
template
>
<
style
lang=
"scss"
scped
>
@import
'@/utils/public.scss'
;
.row
{
display
:
flex
;
.box
{
width
:
100%
;
text-align
:
center
;
background-color
:
#edf1f6
;
}
}
.boxred
{
border
:
1px
solid
red
;
}
.boxblack
{
border
:
1px
solid
black
;
}
.novideo
{
/*padding: 147px 0px 147px 0px;*/
/*display: block;*/
line-height
:
calc
((
100vh
-
120px
)
/
2
);
}
</
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 +106,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