智慧农业大数据平台
shuishen
2022-08-04 b5bce391f66547c63c4ea5bceb74c76ed7c1a602
src/api/land/land.js
@@ -48,12 +48,13 @@
    })
}
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
        }
    })
}
@@ -67,3 +68,27 @@
        }
    })
}
// 根据地块获取监测监控设备
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,
        }
    })
}