Commit 6aaae5b6 by niuxiaolin

latest

parent b9ad0865
...@@ -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>
......
...@@ -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 => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment