From 082613d446e29e4ec1c16bfaa52345106a498b23 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 08 Nov 2022 09:03:49 +0800
Subject: [PATCH] 农事操作隐藏后四个,地图模式2d改为3d

---
 src/api/land/land.js |  101 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 95 insertions(+), 6 deletions(-)

diff --git a/src/api/land/land.js b/src/api/land/land.js
index 56f8216..9783bde 100644
--- a/src/api/land/land.js
+++ b/src/api/land/land.js
@@ -1,8 +1,16 @@
+/*
+ * @Author: shuishen 1109946754@qq.com
+ * @Date: 2022-08-02 11:43:42
+ * @LastEditors: shuishen 1109946754@qq.com
+ * @LastEditTime: 2022-08-02 15:56:01
+ * @FilePath: \zhny_web\src\api\land\land.js
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
 import request from '@/router/axios';
 
 export const getList = (current, size, params) => {
   return request({
-    url: '/api/land/land/list',
+    url: '/api/land/land/page',
     method: 'get',
     params: {
       ...params,
@@ -12,9 +20,19 @@
   })
 }
 
+export const getLandListNoPage = (params) => {
+  return request({
+    url: '/api/land/land/getLandList',
+    method: 'get',
+    params: {
+      ...params,
+    }
+  })
+}
+
 export const getDetail = (id) => {
   return request({
-    url: '/api/land/land/detail',
+    url: '/api/land/land/details',
     method: 'get',
     params: {
       id
@@ -34,17 +52,88 @@
 
 export const add = (row) => {
   return request({
-    url: '/api/land/land/submit',
+    url: '/api/land/land/save',
     method: 'post',
     data: row
   })
 }
 
-export const update = (row) => {
+export const update = (params) => {
   return request({
-    url: '/api/land/land/submit',
+    url: '/api/land/land/updateLandAr',
     method: 'post',
-    data: row
+    data: params
   })
 }
 
+export const getLandList = (userid) => {
+  return request({
+    url: '/api/land/land/selectLandList',
+    method: 'get',
+    params: {
+      userid
+    }
+  })
+}
+
+export const selectRecoveryLandList = (farmId) => {
+  return request({
+    url: '/api/land/land/selectRecoveryLandList',
+    method: 'get',
+    params: {
+      farmId
+    }
+  })
+}
+
+export const selectCount = (farmId) => {
+  return request({
+    url: '/api/land/land/selectCount',
+    method: 'get',
+    params: {
+      farmId
+    }
+  })
+}
+
+export const getLandIsAreaStatistic = (farmId) => {
+  return request({
+      url: '/api/land/land/getLandIsAreaStatistic',
+      method: 'get',
+      params: {
+        farmId
+      }
+  })
+}
+
+export const submit = (params) => {
+    return request({
+        url: '/api/land/land/submit',
+        method: 'post',
+        data: {
+          ...params
+        }
+    })
+  }
+
+  export const selectByStrainId = (strainId,farmId)=>{
+    return request({
+      url: '/api/land/land/selcetByStrainId',
+      method: 'get',
+      params: {
+        strainId,
+        farmId
+      }
+    })
+  }
+
+  export const getByStrainIdFarmId = (params)=>{
+    return request({
+      url: '/api/land/land/getByStrainIdFarmId',
+      method: 'get',
+      params: {
+        ...params,
+      }
+    })
+  }
+  
\ No newline at end of file

--
Gitblit v1.9.3