From 63ad97852c7db6df7f44185881a8c9c031a230c9 Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Fri, 20 Apr 2018 09:06:51 +0800
Subject: [PATCH] 报警数据 饼图功能

---
 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