fengxiang
2018-03-13 6a6d3bbb3748c12c2dc94beec05d21d82d0faba1
src/app/routes/reports/demo/demo.component.ts
@@ -24,7 +24,9 @@
    monitorPoint: null,
    mac: '',
    time: null,
    formatTime: null
    formatTime: null,
    monitorPointName: '',
    deviceName: ''
  }];
  public sensorOptions = [];
@@ -56,7 +58,9 @@
      monitorPoint: null,
      mac: '',
      time: null,
      formatTime: null
      formatTime: null,
      monitorPointName: '',
      deviceName: ''
    });
  }
@@ -117,7 +121,8 @@
    {value: 'hour', label: '时', mode: 'day', xAxisName: '分', format: 'yyyy-MM-dd HH', typeFormat: '%Y-%m-%d %H:%i', timeLength: 60}
  ];
  timeType = this.typeOptions[0];
  typeChange(searchText) {
    this.typeOptions.forEach(types => {
      if (types.value === searchText) {
@@ -154,4 +159,7 @@
  }
  _disabledDate(current: Date): boolean {
    return current && current.getTime() > Date.now() ;
  }
}