xufenglei
2018-03-21 d6836305986df618fc6be6a46305b75b6b1dddf3
src/app/routes/reports/demo/demo.component.ts
@@ -154,6 +154,14 @@
      }
    }
    if (validate && query.type && query.reportType) {
      query.sensors = null;
      if (query.sensorKey && query.sensorKey.length > 0) {
        const sensors = [];
        query.sensorKey.forEach(sensor => {
          sensors.push(sensor.sensorKey + '-' + sensor.name + '-' + sensor.unit);
        });
        query.sensors = JSON.stringify(sensors);
      }
      query.timeType = JSON.stringify(this.timeType);
      query.items = JSON.stringify(this.items);
      this.router.navigate(['report'], {queryParams: query});