xufenglei
2018-08-03 e6e6e7d6dc2e1acbf57cb8dfa040aecee0281f30
update
1 files modified
6 ■■■■ changed files
src/app/routes/raise-dust/real-time/real-time.component.ts 6 ●●●● patch | view | raw | blame | history
src/app/routes/raise-dust/real-time/real-time.component.ts
@@ -10,7 +10,7 @@
export class RealTimeComponent implements OnInit {
  public monitorPointOptions = [];
  public avgs = {};
  public avgs = {e1: '', e2: '', e3: '', e13: ''};
  public levels = [35, 115, 200];
  public devices = [];
  constructor(
@@ -24,7 +24,7 @@
  }
  monitorPointChange(id) {
    this.avgs = {};
    this.avgs = {e1: '', e2: '', e3: '', e13: ''};
    this.devices = [];
    zip(
      this.http.get(environment.SERVER_BASH_URL + 'demo/avg', {params: {monitorPointId: id}}),
@@ -32,7 +32,7 @@
    ).subscribe(
      ([avgs, devices]) => {
        if (!!avgs) {
          this.avgs = avgs;
          this.avgs = <any>avgs;
        }
        if (!!devices['data']) {
          this.devices = devices['data'];