From af95e3f15895995607604ecf0e757c48169795b3 Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Thu, 05 Jul 2018 15:00:27 +0800 Subject: [PATCH] 修复 区域为空拼接问题 --- src/app/business/entity/data.ts | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/app/business/entity/data.ts b/src/app/business/entity/data.ts index c44c39f..2cd044c 100644 --- a/src/app/business/entity/data.ts +++ b/src/app/business/entity/data.ts @@ -1,5 +1,5 @@ import { Column } from '@business/entity/grid'; -import { AlarmStyle, TimeUnits, AreaRange, DeviceDimension } from '@business/enum/types.enum'; +import { AlarmStyle, TimeUnits, AreaRange, DeviceDimension, Operator } from '@business/enum/types.enum'; export interface AreaNames { @@ -167,3 +167,21 @@ category: string; value: number; } +export interface OperatorRule { + operator: Operator; + value: number; +} +export interface SensorUnit { + id?: number|any; + originalUnitName?: string; + name?: string|any; + rules?: OperatorRule[]|any; + sensorId?: number|any; +} +export interface OrganizationSensorUnit { + id?: number|any; + sensorUnitId?: number|any; + sensorUnit?: SensorUnit|any; + sensor?: Sensor|any; + organizationId?: number|any; +} -- Gitblit v1.8.0