From 9efee40ffd77ea4ab045c61e4bdd9eb58be82ec5 Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Fri, 20 Apr 2018 16:15:49 +0800
Subject: [PATCH] test

---
 src/app/routes/reports/excel/excel.component.ts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/app/routes/reports/excel/excel.component.ts b/src/app/routes/reports/excel/excel.component.ts
index 5d882ba..a78888a 100644
--- a/src/app/routes/reports/excel/excel.component.ts
+++ b/src/app/routes/reports/excel/excel.component.ts
@@ -175,9 +175,10 @@
         query.timeb = this.dateSrv.date_format(query.timeb, this.timeType.format);
       }
       query.type = this.timeType.value;
+      delete query.sensors;
       if (this._sensors) {
         const sensors = [];
-        for (var key in this._sensors) {
+        for (const key in this._sensors) {
           sensors.push(this._sensors[key]);
         }
         if (sensors.length > 0) {

--
Gitblit v1.8.0