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
6aaae5b6
Commit
6aaae5b6
authored
Jul 26, 2019
by
niuxiaolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latest
parent
b9ad0865
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
main.component.html
src/app/main/main.component.html
+5
-1
main.component.ts
src/app/main/main.component.ts
+6
-0
No files found.
src/app/main/main.component.html
View file @
6aaae5b6
...
@@ -30,7 +30,11 @@
...
@@ -30,7 +30,11 @@
<div
class =
"item"
*
ngFor=
"let prj of projects;let i=index"
>
<div
class =
"item"
*
ngFor=
"let prj of projects;let i=index"
>
<label
(
click
)="
highLight
(
i
,
prj
,'
p
');
setPrj
(
prj
);"
>
{{prj.name}}
</label>
<label
(
click
)="
highLight
(
i
,
prj
,'
p
');
setPrj
(
prj
);"
>
{{prj.name}}
</label>
<section
class=
"sub"
>
<section
class=
"sub"
>
<label
(
click
)="
highLight
(
i
,
sec
,'
s
')"
*
ngFor=
"let sec of prj.secs;let i=index"
>
{{sec.name}}
</label>
<label
(
click
)="
highLight
(
i
,
sec
,'
s
');
setCamera
(
sec
);"
*
ngFor=
"let sec of prj.secs;let i=index"
>
{{sec.name}}
<section
class=
"sub"
*
ngIf=
"sec.cameras"
>
<label
(
click
)="
setPoint
(
c
)"
*
ngFor=
"let c of sec.cameras"
>
{{c.name}}
</label>
</section>
</label>
</section>
</section>
</div>
</div>
</section>
</section>
...
...
src/app/main/main.component.ts
View file @
6aaae5b6
...
@@ -233,6 +233,12 @@ export class MainComponent implements OnInit {
...
@@ -233,6 +233,12 @@ export class MainComponent implements OnInit {
this
.
loadPolys
(
res
);
this
.
loadPolys
(
res
);
});
});
}
}
setCamera
(
sec
:
Scetion
)
{
// this.http.get<any>(this.s.basePath + "/camera/findListById/" + sec.id).subscribe(res => {
// // sec.cameras = res.data;
// // this.loadMarker(res);
// });
}
addCourse
(
course
:
Course
)
{
addCourse
(
course
:
Course
)
{
this
.
http
.
post
<
Course
>
(
this
.
s
.
basePath
+
"/course/add"
,
this
.
course
).
subscribe
(
res
=>
{
this
.
http
.
post
<
Course
>
(
this
.
s
.
basePath
+
"/course/add"
,
this
.
course
).
subscribe
(
res
=>
{
...
...
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