From 4041ef323765aeaad7fa100557e9a84b4be97521 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 29 Aug 2025 16:31:25 +0800
Subject: [PATCH] feat:参数修改

---
 src/api/patchManagement/index.js |   64 ++++++++++++++++++++++++++++++--
 1 files changed, 60 insertions(+), 4 deletions(-)

diff --git a/src/api/patchManagement/index.js b/src/api/patchManagement/index.js
index ae6d048..41be308 100644
--- a/src/api/patchManagement/index.js
+++ b/src/api/patchManagement/index.js
@@ -10,7 +10,7 @@
 // 图斑类型分页
 export const listOfSpotTypesApi = params => {
 	return request({
-		url: `/drone-device-core/lotType/page`,
+		url: `/drone-device-core/patchesType/page`,
 		method: 'get',
 		params,
 	})
@@ -18,7 +18,7 @@
 // 图斑类型创建
 export const spotTypesCreateApi = (data) => {
 	return request({
-		url: `/drone-device-core/lotType/create`,
+		url: `/drone-device-core/patchesType/create`,
 		method: 'post',
 		data
 	})
@@ -26,7 +26,7 @@
 // 图斑类型编辑
 export const editSpotTypeApi = (data) => {
 	return request({
-		url: `/drone-device-core/lotType/updateType`,
+		url: `/drone-device-core/patchesType/updateType`,
 		method: 'put',
 		data
 	})
@@ -34,8 +34,64 @@
 // 图斑类型删除
 export const deleteSpotTypeApi = (data) => {
 	return request({
-		url: `/drone-device-core/lotType/batch`,
+		url: `/drone-device-core/patchesType/batch`,
 		method:'delete',
 		data
 	})
+}
+
+//图斑管理表格
+export const spotManagementTableApi = params => {
+	return request({
+		url: `/drone-device-core/patches/api/v1/Patches/getPatchesPage`,
+		method: 'get',
+		params,
+	})
+}
+// 图斑管理搜索
+export const searchManagementApi = params => {
+	return request({
+		url: `/drone-device-core/patches/api/v1/Patches/getPatchesInfoUserAndArea`,
+		method: 'get',
+		params,
+	})
+}
+// 图斑上传
+export const uploadManagementApi = data => {
+	return request({
+		url: `/drone-device-core/patches/api/v1/Patches/uploadLot`,
+		method: 'post',
+		data,
+	})
+}
+// 图斑地图表格接口
+export const tableMapListApi = params => {
+	return request({
+		url: `/drone-device-core/patches/api/v1/Patches/getLotInfoByPatchesId`,
+		method: 'get',
+		params,
+	})
+}
+// 导出
+export const exportExcel = ids => {
+	return request({
+		url: `/drone-device-core/patches/api/v1/Patches/getExcel?ids=${ids}`,
+		method: 'get',
+		responseType: 'blob',
+	})
+}
+// 图斑管理删除
+export const patchDeleteApi = (id) => {
+	return request({
+	  url: `/drone-device-core/patches/api/v1/Patches/delete/${id}`,
+	  method: 'delete'
+	})
+  }
+// 编辑图斑信息
+export const patchEditApi = (data) => {
+	return request({
+		url: `/drone-device-core/patches/api/v1/Patches/updatePatchesInfo`,
+		method: 'put',
+		data
+	})
 }
\ No newline at end of file

--
Gitblit v1.9.3