xufenglei
2018-03-12 401a044107202a74dd87408dd43d38cc2ab80fe6
src/app/routes/report/report.component.ts
@@ -14,6 +14,7 @@
export class ReportComponent implements OnInit {
  [x: string]: any;
  spinning: boolean = true;
  constructor(
    public injector: Injector,
    public http: HttpClient,
@@ -82,6 +83,7 @@
  sensorArr: any = [];
  
  ngOnInit() {
    this.activeRoute.queryParams.subscribe(params => {
      const items = JSON.parse(params.items);
      const query = params;
@@ -123,7 +125,9 @@
              $('#mydiv' + i).remove();
            }
          });
          $('#content').attr({style:"display: inline;"});
        }
        this.spinning = false;
      });
    });
  }