fengxiang
2018-06-25 27cd36be226ca2434f06b1ae9e4d43f1fea639ab
src/app/routes/sensors/basic-info/basic-info.component.ts
@@ -7,6 +7,7 @@
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';
@@ -27,7 +28,7 @@
        text: '名称',
        width: '200px'  
      },
      key: {
      sensorKey: {
        text: '键值',
        width: '60px'  
      },
@@ -171,5 +172,15 @@
     }
     this.load();
  }
  configSensorUnit(d) {
    const data = {};
    if ( d != null) {
      Object.assign(data, d);
    }
    this.modalHelper.static(SensorUnitComponent, { data }).subscribe(
      res => {
      }
    );
  }
}