From b5bce391f66547c63c4ea5bceb74c76ed7c1a602 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 04 Aug 2022 16:33:31 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhny-dsjdp
---
src/api/land/land.js | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/src/api/land/land.js b/src/api/land/land.js
index a4eedc3..f01e8ee 100644
--- a/src/api/land/land.js
+++ b/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,
+ }
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3