fengxiang
2018-05-28 21ec9878f8687d3da75b4fd424ffa4ee8d73d448
坐标完善
1 files modified
7 ■■■■■ changed files
src/app/routes/devices/basic-info/basic-info.component.ts 7 ●●●●● patch | view | raw | blame | history
src/app/routes/devices/basic-info/basic-info.component.ts
@@ -158,8 +158,11 @@
      });
  }
  configCoord(record: Device): void {
     // 复制数据放在此处,放在后面,adress会被覆盖
     Object.assign(this.coorPickerService.data, record);
     this.coorPickerService.data['describe'] = '设备名称';
      //当前 坐标未设置 取监控点地址
      if((!!record.latitude||!!record.longitude)&&!!record.monitorPointId){
      if ((!record.latitude || !record.longitude) && !!record.monitorPointId) {
            this.monitorPointService.getEntity(record.monitorPointId).subscribe(
              res => {
                if (res != null && res.code === 1 && res.data != null) {
@@ -184,9 +187,7 @@
      }
  }
  private openMap(record: Device){
    Object.assign(this.coorPickerService.data, record);
    const _data = this.coorPickerService.data;
    this.coorPickerService.data['describe'] = '设备名称';
    this.modalHelper.static(CoordinatesPickerComponent).subscribe(
      (staticComp) => {
             const data: Device = {