Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supervise-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
牛晓林
supervise-front
Commits
5b6188d4
Commit
5b6188d4
authored
Aug 11, 2019
by
niuxiaolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latest ui 08/11/2019 15:12:07
parent
ddbea814
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
105 deletions
+6
-105
video.component.ts
src/app/video/video.component.ts
+6
-105
No files found.
src/app/video/video.component.ts
View file @
5b6188d4
...
...
@@ -21,112 +21,7 @@ export class VideoComponent implements OnInit {
initCount
=
0
;
isVisible
=
false
;
nodeItems
=
[{
id
:
'0'
,
name
:
'高速公路(67/92)'
,
children
:
[
{
id
:
'1'
,
name
:
'东二环高速(8/8)'
,
item
:
{
phrase
:
'I am the batman'
},
children
:
[
{
id
:
'5'
,
name
:
'第一分部(16/17)'
,
item
:
{
phrase
:
'I am the villain of this story'
},
children
:
[
{
id
:
"6"
,
name
:
"第一分部_001_一分部拌合站入口"
},
{
id
:
"6"
,
name
:
"第一分部_002_一分部拌合站"
},
{
id
:
"6"
,
name
:
"第一分部_003_一分部钢筋棚1"
}
]
}
]
},
{
id
:
'2'
,
name
:
'第二分部(16/17)'
,
item
:
{
phrase
:
'Man of steel'
}
},
{
id
:
'2'
,
name
:
'第三分部(16/17)'
,
item
:
{
phrase
:
'Man of steel'
}
}
]
},
{
id
:
'2'
,
name
:
'普通干线(16/17)'
,
children
:
[
{
id
:
'4'
,
name
:
'G207(8/8)'
,
item
:
{
phrase
:
'Why so serius'
},
children
:
[
{
id
:
'5'
,
name
:
'第一分部(16/17)'
,
item
:
{
phrase
:
'I am the villain of this story'
},
children
:
[
{
id
:
"6"
,
name
:
"第一分部_001_一分部拌合站入口"
},
{
id
:
"6"
,
name
:
"第一分部_002_一分部拌合站"
},
{
id
:
"6"
,
name
:
"第一分部_003_一分部钢筋棚1"
},
{
id
:
"6"
,
name
:
"第一分部_004_一分部钢筋棚2"
},
{
id
:
"6"
,
name
:
"第一分部_005_一分部化验室院"
},
{
id
:
"6"
,
name
:
"第一分部_006_一分部项目部3"
}
]
}
]
},
]
},
{
id
:
"6"
,
name
:
"演示demo"
}];
cams
=
Array
(
16
);
ngOnInit
()
{
(
window
as
any
).
xiaolin_this
=
this
;
this
.
dynamicScriptLoader
.
load
(
'jquery'
,
'jsencrypt'
,
'jswebcontrol'
).
then
(()
=>
{
...
...
@@ -154,6 +49,7 @@ export class VideoComponent implements OnInit {
break
;
case
2
:
//录像机
request
=
"/vcr/findListById/"
;
break
;
default
:
break
;
...
...
@@ -161,6 +57,11 @@ export class VideoComponent implements OnInit {
if
(
node
&&
node
.
getChildren
().
length
===
0
&&
node
.
isExpanded
)
{
this
.
http
.
get
(
this
.
d
.
basePath
+
request
+
node
.
key
).
subscribe
(
res
=>
{
console
.
log
(
res
);
if
(
node
.
level
==
2
){
(
res
as
any
).
data
.
forEach
((
element
,
index
)
=>
{
this
.
preview2
(
element
.
cameraIndexCode
,
index
+
1
)
});
}
node
.
addChildren
((
res
as
any
).
data
.
map
((
d
,
index
)
=>
({
title
:
d
.
name
||
d
.
cameraName
,
key
:
d
.
id
||
d
.
cameraIndexCode
,
index
:
index
,
isLeaf
:
node
.
level
==
2
})));
});
}
...
...
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