| | |
| | | }); |
| | | } |
| | | get listUrl() { |
| | | return this.deviceService.getListUrl();; |
| | | return this.deviceService.getListUrl(); |
| | | } |
| | | extraParams = { queryParams: null }; |
| | | queryText: string; |
| | |
| | | } |
| | | configCoord(record:Device):void { |
| | | Object.assign(this.coorPickerService.data,record); |
| | | let _data = this.coorPickerService.data; |
| | | const _data = this.coorPickerService.data; |
| | | this.monitorPointService.getEntity(record.monitorPointId).subscribe( |
| | | res => { |
| | | if(res!=null && res.code==1 && res.data!=null){ |
| | | if (res != null && res.code === 1 && res.data != null) { |
| | | const areaNames = res.data.areaNames; |
| | | let adress = null; |
| | | if(areaNames != null){ |
| | |
| | | id:record.id, |
| | | longitude:_data.longitude, |
| | | latitude:_data.latitude, |
| | | } |
| | | }; |
| | | this.deviceService.save(data).subscribe( |
| | | (res: any) => { |
| | | if (res.code === 1) { |
| | | (resp: any) => { |
| | | if (resp.code === 1) { |
| | | this.load(); |
| | | this.msgSrv.success('坐标配置成功!'); |
| | | } |
| | |
| | | } |
| | | ); |
| | | } |
| | | ) |
| | | ); |
| | | } |
| | | } |