From fd7b11ec894b6f8c5cc736489c0f26eec35ad3ce Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Fri, 11 May 2018 17:20:53 +0800
Subject: [PATCH] 设备 增加 行业
---
src/app/routes/reports/query/query.component.ts | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/app/routes/reports/query/query.component.ts b/src/app/routes/reports/query/query.component.ts
index 6e81d40..f2acf0f 100644
--- a/src/app/routes/reports/query/query.component.ts
+++ b/src/app/routes/reports/query/query.component.ts
@@ -131,7 +131,7 @@
if (!!text) {
example.or().andEqualTo({ name: 'monitorPointId', value: this.monitorPoint.id })
.andLike({name: 'text', value: text});
- }else {
+ } else {
example.or().andEqualTo({ name: 'monitorPointId', value: this.monitorPoint.id });
}
this.deviceService.getPageByExample(null, example).subscribe(
@@ -182,7 +182,7 @@
});
this._sensors = {};
// ������ ������ ������������
- }else {
+ } else {
// ������������
children.forEach(element => {
element['checked'] = true;
@@ -191,7 +191,7 @@
data['checked'] = true;
data['halfChecked'] = false;
}
- }else {
+ } else {
const parentData = event.node.parent.data;
data['checked'] = !data['checked'];
if (data['checked']) {
@@ -278,11 +278,11 @@
); break;
}
}
- // ��������������������� ��������� ��� ���������������������
+ // ��������������������� ��������� ��� ������������������������
public setAreasData(areas: {label: string, value: string}[] ) {
let isChanged = false;
isChanged = areas.some( (item , index: number) => {
- // this._areas[index] ���null ������ ���������������
+ // this._areas[index] ���null ������ ������������������
return this._areas.length < areas.length
|| !this._areas[index]
|| this._areas[index].value !== item.value;
@@ -294,7 +294,7 @@
}
}
- // ��������� ������ ���������, ������ ���������������������������null ������������������������������
+ // ��������� ������ ������������, ������ ���������������������������null ������������������������������
public _monitorPoint: MonitorPoint;
get monitorPoint(): MonitorPoint {
return this._monitorPoint;
@@ -315,7 +315,7 @@
}
}
- // ��������� ������ ���������
+ // ��������� ������ ������������
public _device: Device;
set device(val: Device) {
this._device = val;
@@ -349,10 +349,10 @@
} else {
this._sensors = {};
}
- }else {
+ } else {
if (!!data.checked) {
this._sensors [data.id] = data.sensorKey;
- }else {
+ } else {
delete this._sensors[data.id];
}
}
@@ -616,7 +616,7 @@
const names = ['������', '������', '������', '������'];
switch ( this.dataCondition.areaRange ) {
case AreaRange.MONITORPOINT :
- names[0] = '���������';
+ names[0] = '������������';
names[1] = this._monitorPoint.name; break;
case AreaRange.DEVICE :
names[0] = '������';
--
Gitblit v1.8.0