From 2a952e53b9b3fc13094868341d3341ccb9884ebc Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Mon, 16 Apr 2018 13:40:20 +0800
Subject: [PATCH] 查询数据 选择框调整

---
 src/app/routes/reports/query/query.component.ts |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/app/routes/reports/query/query.component.ts b/src/app/routes/reports/query/query.component.ts
index b878e2c..6e81d40 100644
--- a/src/app/routes/reports/query/query.component.ts
+++ b/src/app/routes/reports/query/query.component.ts
@@ -503,6 +503,7 @@
       this.reloadChartTitle();
       // ������������
       this.grid.data = [];
+      console.log(lineChartCriteria);
       this.http.post(environment.SERVER_BASH_URL + '/report/line-chart', lineChartCriteria).subscribe(
         (res: ResultBean<{[key: string]: Array<Array<number>>}>) => {
            if (res.code === 1) {
@@ -526,7 +527,7 @@
                                     weight = !!value ? weight : weight + 1;
                                 }
                                 // ���������������������2���
-                                return !!value ? String(Math.round(value * 100) / 100) : '-';
+                                return value != null ? String(Math.round(value * 100) / 100) : '-';
                            }
                        );
                        this.grid.data.push({sensor: sensor, data: sensorData, weight: weight});
@@ -692,9 +693,23 @@
     public sensorTableFocus(index) {
         this.sensorTableFocusIndex = index;
     }
+   
     public sensorTableBlur(index) {
         this.sensorTableFocusIndex = -1;
     }
+    public sensorSelectVisible = false;
+    public treeMouseOverOccur = false;
+    public onTreeMouseOver(event) {
+        this.treeMouseOverOccur = true;
+    }
+    public onTreeMouseOut(event) {
+        this.treeMouseOverOccur = false;
+        setTimeout(() => {
+            if (!this.treeMouseOverOccur) {
+                this.sensorSelectVisible =  false;
+            }
+        }, 900);
+    }
 }
 
 

--
Gitblit v1.8.0