| | |
| | | import { Column } from '@business/entity/grid'; |
| | | import { AlarmStyle } from '@business/enum/types.enum'; |
| | | import { AlarmStyle, TimeUnits, AreaRange, DeviceDimension, Operator } from '@business/enum/types.enum'; |
| | | |
| | | |
| | | export interface AreaNames { |
| | | provinceName?: string; |
| | | cityName?: string; |
| | | areaName?: string; |
| | | townName?: string; |
| | | villageName?: string; |
| | | } |
| | | // 传感器 |
| | | export interface Sensor { |
| | |
| | | provinceCode?: Column|any; |
| | | rank?: Column|any; |
| | | telephone?: Column|any; |
| | | areaNames?: AreaNames|any ; |
| | | areaNames?: AreaNames; |
| | | } |
| | | |
| | | // 设备型号 |
| | |
| | | version?: Column|any; |
| | | } |
| | | |
| | | // 监控点 |
| | | // 监控站点 |
| | | export interface MonitorPoint { |
| | | address?: any|Column; |
| | | areaCode?: any|Column; |
| | |
| | | provinceCode?: any|Column; |
| | | areaNames?: AreaNames|any ; |
| | | organization?: Organization; |
| | | townCode?: any|Column; |
| | | villageCode?: any|Column; |
| | | |
| | | } |
| | | |
| | | // 报警配置 |
| | |
| | | |
| | | export interface AlarmConfigValue { |
| | | alarmMode: AlarmMode; |
| | | alarmLevels:{[key: string]:AlarmSensorLevel}; |
| | | alarmLevels: {[key: string]: AlarmSensorLevel}; |
| | | } |
| | | |
| | | |
| | | export interface AlarmSensorLevel { |
| | | enable: boolean|any []; |
| | | increment: number []|any[]; |
| | | degressEnable:boolean|any []; |
| | | degressEnable: boolean|any []; |
| | | degression: number []|any []; |
| | | } |
| | | export interface Device { |
| | |
| | | mac?: any|Column; |
| | | monitorPoint?: any|Column; |
| | | monitorPointId?: any|Column; |
| | | professionId?: any|Column; |
| | | name?: any|Column; |
| | | operateUser?: any|Column; |
| | | operateUserId?: any|Column; |
| | |
| | | |
| | | export interface AlarmMode { |
| | | enable: boolean|any[]; |
| | | interval: number; |
| | | level1: AlarmStyle[]|any[]; |
| | | level2: AlarmStyle[]|any[]; |
| | | level3: AlarmStyle[]|any[]; |
| | |
| | | deviceId?: number|any[]; |
| | | id?: number|any[]; |
| | | updateTime?: number|any[]; |
| | | value?:{[s:string] : number}|any[]; |
| | | value?: {[s: string]: number}|any[]; |
| | | } |
| | | |
| | | export interface CoorPicker{ |
| | | longitude:number;// 经度 |
| | | latitude:number;// 纬度 |
| | | address:string; |
| | | describe:string; |
| | | name:string; |
| | | export interface CoorPicker { |
| | | longitude: number; // 经度 |
| | | latitude: number; // 纬度 |
| | | address: string; |
| | | describe: string; |
| | | name: string; |
| | | } |
| | | |
| | | export interface UserContext { |
| | |
| | | mode: string; |
| | | organizationId: number; |
| | | username: string; |
| | | } |
| | | } |
| | | |
| | | |
| | | export interface LineChartCriteria { |
| | | dataConditions?: DataCondition[]; |
| | | sensorKeys?: string[]; |
| | | timePeriod?: TimePeriod; |
| | | } |
| | | |
| | | export interface TimePeriod { |
| | | endTime?: Date; |
| | | startTime?: Date; |
| | | timeUnits?: TimeUnits; |
| | | } |
| | | |
| | | export interface DataCondition { |
| | | actualTime?: number; |
| | | areaRange?: AreaRange; |
| | | areaRangeId?: number; |
| | | timeUnits?: TimeUnits; |
| | | deviceDimension?: DeviceDimension; |
| | | dimensionValue?: any; |
| | | } |
| | | |
| | | export interface PairData { |
| | | 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; |
| | | } |