You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 创建地块状态
|
|
|
|
|
export function createLandBlockState(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/product/land-block-state/create',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新地块状态
|
|
|
|
|
export function updateLandBlockState(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/product/land-block-state/update',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除地块状态
|
|
|
|
|
export function deleteLandBlockState(id) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/product/land-block-state/delete?id=' + id,
|
|
|
|
|
method: 'delete'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获得地块状态
|
|
|
|
|
export function getLandBlockState(id) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/product/land-block-state/get?id=' + id,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获得地块状态分页
|
|
|
|
|
export function getLandBlockStatePage(query) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/product/land-block-state/page',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: query
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 导出地块状态 Excel
|
|
|
|
|
export function exportLandBlockStateExcel(query) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/product/land-block-state/export-excel',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: query,
|
|
|
|
|
responseType: 'blob'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 根据商户ID获取所有地块状态
|
|
|
|
|
export function getBusinessInfoByListLandBlockState(query) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/product/land-block-state/getBusinessInfoByListLandBlockState',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: query
|
|
|
|
|
})
|
|
|
|
|
}
|