| | |
| | | import { Component, OnInit } from '@angular/core'; |
| | | import { Subject } from 'rxjs/Subject'; |
| | | import { SensorEditComponent } from './sensor-edit/sensor-edit.component'; |
| | | import { SensorUnitComponent } from './sensor-unit/sensor-unit.component'; |
| | | |
| | | |
| | | |
| | |
| | | text: '名称', |
| | | width: '200px' |
| | | }, |
| | | key: { |
| | | sensorKey: { |
| | | text: '键值', |
| | | width: '60px' |
| | | }, |
| | |
| | | } |
| | | this.load(); |
| | | } |
| | | configSensorUnit(d) { |
| | | const data = {}; |
| | | if ( d != null) { |
| | | Object.assign(data, d); |
| | | } |
| | | this.modalHelper.static(SensorUnitComponent, { data }).subscribe( |
| | | res => { |
| | | |
| | | } |
| | | ); |
| | | } |
| | | } |