| | |
| | | }, |
| | | //点击地图marker |
| | | tapMapMark: function (e) { |
| | | console.log(e,484) |
| | | // console.log(e,484) |
| | | var id = e.detail.markerId; |
| | | // console.log(id) |
| | | //console.log(e) |
| | |
| | | for (var i = 0; i < markers.length; i++) { |
| | | markerTipInfo = markers[i]; |
| | | if(id==markers[i].id){ |
| | | type=markerTipInfo.markerType |
| | | type=markers[i].markerType |
| | | if(type=='Station'){ |
| | | let stationLastRecord = await that.getGeneralLastRecordByStationID(id) |
| | | markerTipInfo.markerInfo.Records = stationLastRecord |
| | | } |
| | | if(type=='FlowMeter'){ |
| | | |
| | | } |
| | | } |
| | | console.log(type,584) |
| | | if(type=='Station'){ |
| | | let stationLastRecord = await that.getGeneralLastRecordByStationID(id) |
| | | markerTipInfo.markerInfo.Records = stationLastRecord |
| | | let flowMeterLastRecord = await that.getMonitorKpiInfoByFlowMeterID(id) |
| | | markerTipInfo.markerInfo.Records = flowMeterLastRecord |
| | | } |
| | | if(type=='PressMeter'){ |
| | | console.log(13) |
| | | let infoByPressMeterLastRecord = await that.getMonitorKpiInfoByPressMeterID(id) |
| | | markerTipInfo.markerInfo.Records = infoByPressMeterLastRecord |
| | | } |
| | | if(type=='gongdan'){ |
| | | console.log(14) |
| | | var FormType=markerTipInfo.markerInfo.FormType |
| | | var FormID=markerTipInfo.markerInfo.FormID |
| | | let repairLastRecord = await that.getRepairStatusInfo(FormType,FormID) |
| | | markerTipInfo.markerInfo = repairLastRecord |
| | | } |
| | | that.setData({ |
| | | markerTipInfo: markerTipInfo |
| | | markerTipInfo: markerTipInfo, |
| | | }) |
| | | |
| | | } |
| | | if(type=='FlowMeter'){ |
| | | let stationLastRecord = await that.getMonitorKpiInfoByFlowMeterID(id) |
| | | markerTipInfo.markerInfo.Records = stationLastRecord |
| | | that.setData({ |
| | | markerTipInfo: markerTipInfo |
| | | }) |
| | | |
| | | } |
| | | if(type=='PressMeter'){ |
| | | |
| | | let stationLastRecord = await that.getMonitorKpiInfoByPressMeterID(id) |
| | | markerTipInfo.markerInfo.Records = stationLastRecord |
| | | that.setData({ |
| | | markerTipInfo: markerTipInfo |
| | | }) |
| | | |
| | | } |
| | | if(type=='gongdan'){ |
| | | var FormType=markerTipInfo.markerInfo.FormType |
| | | var FormID=markerTipInfo.markerInfo.FormID |
| | | let stationLastRecord = await that.getRepairStatusInfo(FormType,FormID) |
| | | console.log(stationLastRecord,628) |
| | | markerTipInfo.markerInfo = stationLastRecord |
| | | that.setData({ |
| | | markerTipInfo: markerTipInfo |
| | | }) |
| | | |
| | | } |
| | | console.log(markerTipInfo.markerType,625) |
| | | |
| | | }, |
| | | |
| | | //获取泵站最近一条数据 |