2024-11-20 18:20:46 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// 查询列表
|
2025-01-02 12:16:58 +08:00
|
|
|
export function getLandList(query) {
|
|
|
|
return request({
|
|
|
|
url: '/system/app/land/getLandList',
|
|
|
|
method: "get",
|
|
|
|
params: query
|
|
|
|
})
|
2024-11-20 18:20:46 +08:00
|
|
|
}
|
|
|
|
|
2024-11-25 09:23:51 +08:00
|
|
|
// 根据用户id查询列表
|
2025-01-02 12:16:58 +08:00
|
|
|
export function getLandByUserId(query) {
|
|
|
|
return request({
|
|
|
|
url: '/system/app/land/getLandByUserId',
|
|
|
|
method: "get",
|
|
|
|
params: query
|
|
|
|
})
|
2024-11-25 09:23:51 +08:00
|
|
|
}
|
|
|
|
|
2024-11-20 19:09:37 +08:00
|
|
|
//查询地块详情
|
|
|
|
export function getLandInfo(param) {
|
2025-01-02 12:16:58 +08:00
|
|
|
return request({
|
|
|
|
url: '/system/land/' + param,
|
|
|
|
method: 'get'
|
|
|
|
})
|
2024-11-20 19:09:37 +08:00
|
|
|
}
|
|
|
|
|
2024-11-22 11:18:50 +08:00
|
|
|
//查询地块编码排序
|
|
|
|
export function getLandNum() {
|
2025-01-02 12:16:58 +08:00
|
|
|
return request({
|
|
|
|
url: '/system/land/getLandNum',
|
|
|
|
method: 'get'
|
|
|
|
})
|
2024-11-22 11:18:50 +08:00
|
|
|
}
|
|
|
|
|
2024-11-22 10:38:49 +08:00
|
|
|
// 新增地块
|
2025-01-02 12:16:58 +08:00
|
|
|
export function addLand(data) {
|
|
|
|
return request({
|
|
|
|
url: '/system/land',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
2024-11-22 10:38:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 修改地块
|
2025-01-02 12:16:58 +08:00
|
|
|
export function updateLand(data) {
|
|
|
|
return request({
|
|
|
|
url: '/system/land',
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
})
|
2025-01-16 15:36:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 查询地块列表
|
|
|
|
export function getLandAndDevice(query) {
|
|
|
|
return request({
|
|
|
|
url: '/system/land/getLandAndDevice',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
2025-01-23 11:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//获取地块配置
|
|
|
|
export function getLandConfig(id) {
|
|
|
|
return request({
|
|
|
|
url: `/system/land/getLandConfig/${id}`,
|
|
|
|
method: 'get'
|
|
|
|
})
|
2025-02-07 11:05:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//获取地块配置
|
|
|
|
export function getLandUser(query) {
|
|
|
|
return request({
|
|
|
|
url: `/system/landuser/list`,
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
2025-01-02 12:16:58 +08:00
|
|
|
}
|