xufenglei
2018-03-26 ba15aacf079d1a3fd13e4594f5a94cf25dacb036
src/app/routes/reports/excel/excel.component.ts
@@ -21,9 +21,9 @@
    mode: 'month'
  };
  private sensorOptions = [];
  private monitorPointOptions = [];
  private deviceOptions = [];
  public sensorOptions = [];
  public monitorPointOptions = [];
  public deviceOptions = [];
  constructor(
    public http: HttpClient,
@@ -84,7 +84,7 @@
  }
  private typeOptions = [
  public typeOptions = [
    {value: 'year', label: '年', mode: 'month', xAxisName: '月', format: 'yyyy', typeFormat: '%Y-%m'},
    {value: 'month', label: '月', mode: 'month', xAxisName: '日', format: 'yyyy-MM', typeFormat: '%Y-%m-%d'},
    {value: 'day', label: '日', mode: 'day', xAxisName: '时', format: 'yyyy-MM-dd', typeFormat: '%Y-%m-%d %H'},
@@ -104,7 +104,7 @@
  reportQuery() {
    const query = this.query;
    if (query.type && query.monitorPoint && query.time) {
    if (query.type && query.monitorPointId && query.time) {
      if (query.time) {
        query.time = this.dateSrv.date_format(query.time, this.time.format);
      }
@@ -122,7 +122,7 @@
          url += encodeURI(a) + '=' + encodeURI(query[a]) + '&';
        }
      }
      window.location.href = url + '_token=' + this.tokenService.get().token;
    } else {
      this.msgSrv.error('请完善搜索项');