fengxiang
2018-05-15 6da582b887cf7ceadf1617417d7c15b239a2e008
src/app/routes/devices/basic-info/basic-info.component.ts
@@ -23,7 +23,7 @@
    { title: '名称', index: 'name' },
    { title: 'mac', index: 'mac' },
    { title: '型号', index: 'deviceVersion.name' },
    { title: '监控点', index: 'monitorPoint.name' },
    { title: '监控站点', index: 'monitorPoint.name' },
    { title: '维护人', index: 'operateUser.name' },
    { title: '生产时间', width: '100px', type: 'date', index: 'createTime' },
    { title: '安装时间', width: '100px', type: 'date', index: 'installTime' },
@@ -126,7 +126,7 @@
  }
  addOrModify(d) {
    const data = {};
    if (d != null) {
    if (d != null) {
      Object.assign(data, d);
    }
    this.modalHelper.static(DeviceEditComponent, { data }).subscribe(
@@ -175,6 +175,7 @@
              (staticComp) => {
                     const data: Device = {
                        id: record.id,
                        mac: record.mac,
                        longitude: _data.longitude,
                        latitude: _data.latitude,
                     };
@@ -185,8 +186,7 @@
                          this.msgSrv.success('坐标配置成功!');
                        }
                      }
                     );
                     );
              }
           );
         }