| | |
| | | }) |
| | | } |
| | | |
| | | export const getLandList = (userid) => { |
| | | export const getLandList = (userid, farmId) => { |
| | | return request({ |
| | | url: '/land/land/selectLandList', |
| | | url: 'http://182.106.212.58:8013/api/land/land/getLandList', |
| | | method: 'get', |
| | | params: { |
| | | userid |
| | | userid, |
| | | farmId |
| | | } |
| | | }) |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // 根据地块获取监测监控设备 |
| | | export const getStationAndVideoByLandId = (landId, type) => { |
| | | return request({ |
| | | url: 'http://dev.jxpskj.com:8030/pyh-station/stationAndVideo/queryStationAndVideoByLandId', |
| | | method: 'get', |
| | | params: { |
| | | 'land_id': landId, |
| | | 'type': type, |
| | | } |
| | | }) |
| | | } |
| | | // 根据设备号获取监测设备数据 |
| | | export const getStationDateByStcd = (stcd, startTime, endTime) => { |
| | | return request({ |
| | | url: 'http://dev.jxpskj.com:8030/pyh-station/naturalFactors/findElementDataByTime', |
| | | method: 'get', |
| | | params: { |
| | | 'stcd': stcd, |
| | | 'startTime': startTime, |
| | | 'endTime': endTime, |
| | | } |
| | | }) |
| | | } |