From 50223d066f7bb4446e47467463783b7f0170f889 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Wed, 06 Jun 2018 13:59:30 +0800
Subject: [PATCH] 登录失效拦截完善

---
 src/app/routes/devices/monitor-point/monitor-point.component.ts |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/app/routes/devices/monitor-point/monitor-point.component.ts b/src/app/routes/devices/monitor-point/monitor-point.component.ts
index a724ad9..9d69db9 100644
--- a/src/app/routes/devices/monitor-point/monitor-point.component.ts
+++ b/src/app/routes/devices/monitor-point/monitor-point.component.ts
@@ -52,7 +52,7 @@
         width: '300px'
       }
     };
-    this.grid.title = '���������';
+    this.grid.title = '������������';
     this.grid.setColumns(this.monitorPoint);
     this.grid.pageSize = 10;
   }
@@ -181,12 +181,18 @@
     Object.assign(this.coorPickerService.data, record);
     const _data = this.coorPickerService.data;
     const areaNames = record.areaNames;
-    let adress = null;
+    let adress = '';
     if (areaNames != null) {
-      adress = areaNames.provinceName + areaNames.cityName + areaNames.areaName + record.address;
+      adress += !!areaNames.provinceName?areaNames.provinceName:'';
+      adress += ' ';
+      adress += !!areaNames.cityName?areaNames.cityName:'';
+      adress += ' ';
+      adress += !!areaNames.areaName?areaNames.areaName:'';
+      adress += ' ';
+      adress += !!record.address?record.address:'';
     }
     this.coorPickerService.data.address = adress;
-    this.coorPickerService.data['describe'] = '���������������';
+    this.coorPickerService.data['describe'] = '������������������';
     this.modalHelper.static(CoordinatesPickerComponent).subscribe(
       (staticComp) => {
         const data: MonitorPoint = {

--
Gitblit v1.8.0