Browse Source

修改经纬度删除

develop
王健 4 years ago
parent
commit
144b7f3d9e
  1. 401
      src/views/land/api/land.js
  2. 5
      src/views/land/api/noLand.js
  3. 2
      src/views/land/handLand/newLand.vue

401
src/views/land/api/land.js

@ -2,24 +2,25 @@ import request from '@/router/axios'
// 查询拟挂牌地块
export function fetchHandLandList(query) {
return request({
url: '/api/landlisted',
method: 'get',
params: query
})
return request({
url: '/api/landlisted',
method: 'get',
params: query
})
}
// 保存地块
export function saveHandLandList(param,type) {
return request({
url: '/api/landlisted',
method: type,
headers: {
'Content-Type': 'application/json'
},
data: param
})
export function saveHandLandList(param, type) {
return request({
url: '/api/landlisted',
method: type,
headers: {
'Content-Type': 'application/json'
},
data: param
})
}
// // 编辑地块
// export function putHandLandList(param) {
// return request({
@ -33,272 +34,296 @@ export function saveHandLandList(param,type) {
// }
// 字典表查询
export function getDict(data) {
return request({
url: "/api/dict/type/" + data,
method: "get",
// params:data
})
return request({
url: "/api/dict/type/" + data,
method: "get",
// params:data
})
}
// 通过ID删除拟挂牌地块
export function delHandLandObj(ids) {
return request({
url: '/api/landlisted',
headers: {
'Content-Type': 'application/json'
},
method: 'delete',
data: JSON.stringify(ids)
})
return request({
url: '/api/landlisted',
headers: {
'Content-Type': 'application/json'
},
method: 'delete',
data: JSON.stringify(ids)
})
}
// 通过ID查询挂牌地块
export function queryHandLandObj(id) {
return request({
url: '/api/landlisted/' + id,
method: 'get'
})
return request({
url: '/api/landlisted/' + id,
method: 'get'
})
}
// 导出拟挂牌地块信息
export function exportHandLandToListExcel(ids) {
return request({
url: '/api/landlisted/exportLandToListExcel?ids=' + ids,
method: 'get'
})
return request({
url: '/api/landlisted/exportLandToListExcel?ids=' + ids,
method: 'get'
})
}
// 导出已挂牌地块信息
export function exportHandLandListExcel(ids) {
return request({
url: '/api/landlisted/exportLandListExcel?ids=' + ids,
method: 'get',
responseType: "blob"
})
return request({
url: '/api/landlisted/exportLandListExcel?ids=' + ids,
method: 'get',
responseType: "blob"
})
}
// 下载模板
export function downloadHandLandTemplate() {
return request({
url: '/api/landlisted/getTemplate',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'get'
})
return request({
url: '/api/landlisted/getTemplate',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'get'
})
}
// 通过公告序号经纬度列表查询
export function queryLonLatList(landListedId) {
return request({
url: '/api/landlistedlonlat/list/' + landListedId,
method: 'get'
})
return request({
url: '/api/landlistedlonlat/list/' + landListedId,
method: 'get'
})
}
// 通过公告序号经营企业列表查询
export function conductenterList(data) {
return request({
url: '/api/landlistedconductenterprise/page',
method: 'get',
params:data
})
return request({
url: '/api/landlistedconductenterprise/page',
method: 'get',
params: data
})
}
// 通过公告序号经营配件列表查询
export function constructionPlanList(data) {
return request({
url: '/api/landlistedconstructionplan/page',
method: 'get',
params:data
})
return request({
url: '/api/landlistedconstructionplan/page',
method: 'get',
params: data
})
}
// 新增已挂牌地块经纬度
export function addLonLat(param) {
return request({
url: '/api/landlistedlonlat',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: param
})
return request({
url: '/api/landlistedlonlat',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: param
})
}
// 新增已挂牌地块经营企业
export function addConductenter(param) {
return request({
url: '/api/landlistedconductenterprise',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: param
})
return request({
url: '/api/landlistedconductenterprise',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: param
})
}
// 新增已挂牌地块配件
export function addConstructionPlan(param) {
return request({
url: '/api/landlistedconstructionplan',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: param
})
return request({
url: '/api/landlistedconstructionplan',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: param
})
}
// 更新已挂牌地块配件
export function updateConstructionPlan(param) {
return request({
url: '/api/landlistedconstructionplan',
method: 'put',
headers: {
'Content-Type': 'application/json'
},
data: param
})
return request({
url: '/api/landlistedconstructionplan',
method: 'put',
headers: {
'Content-Type': 'application/json'
},
data: param
})
}
// 通过ID删除经营配件
export function delConstructionPlan(constructionPlanId) {
return request({
url: '/api/landlistedconstructionplan/' + constructionPlanId,
method: 'delete'
})
return request({
url: '/api/landlistedconstructionplan/' + constructionPlanId,
method: 'delete'
})
}
// 更新已挂牌地块经营企业
export function updateConductenter(param) {
return request({
url: '/api/landlistedconductenterprise',
method: 'put',
headers: {
'Content-Type': 'application/json'
},
data: param
})
return request({
url: '/api/landlistedconductenterprise',
method: 'put',
headers: {
'Content-Type': 'application/json'
},
data: param
})
}
// 更新已挂牌地块经纬度
export function updateLonLat(param) {
return request({
url: '/api/landlistedlonlat',
method: 'put',
headers: {
'Content-Type': 'application/json'
},
data: param
})
return request({
url: '/api/landlistedlonlat',
method: 'put',
headers: {
'Content-Type': 'application/json'
},
data: param
})
}
// 通过ID删除拟挂牌地块
export function delLandLonLat(landListedId, landCode) {
return request({
url: '/api/landlistedlonlat/' + landListedId,
method: 'delete'
})
return request({
url: '/api/landlistedlonlat/' + landListedId,
method: 'delete'
})
}
// 通过ID删除经营企业
export function delConductenter(conductEnterpriseId) {
return request({
url: '/api/landlistedconductenterprise/' + conductEnterpriseId,
method: 'delete'
})
return request({
url: '/api/landlistedconductenterprise/' + conductEnterpriseId,
method: 'delete'
})
}
// 通过序号和文件类型查询文件列表
export function queryFileList(param) {
return request({
url: '/api/landAttachment/',
method: 'get',
params: param
})
return request({
url: '/api/landAttachment/',
method: 'get',
params: param
})
}
// 保存地块文件
export function saveLandResFile(fileName, filePath, fileType, landListedId) {
return request({
url: '/api/landAttachment/',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: {
fileName: fileName,
filePath: filePath,
fileType: fileType,
landListedId: landListedId
}
})
return request({
url: '/api/landAttachment/',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: {
fileName: fileName,
filePath: filePath,
fileType: fileType,
landListedId: landListedId
}
})
}
// 通过id删除地块文件
export function delLandResFile(id) {
return request({
url: '/api/landAttachment/' + id,
method: 'delete'
})
return request({
url: '/api/landAttachment/' + id,
method: 'delete'
})
}
// 批量删除
export function multiDeteleList(data) {
return request({
url: '/api/landlisted/',
method: 'delete',
data: data,
})
return request({
url: '/api/landlisted/',
method: 'delete',
data: data,
})
}
//导入
export function importFile(data) {
return request({
url: '/api/landlisted/importLandListExcel',
method: 'post',
data: data,
})
return request({
url: '/api/landlisted/importLandListExcel',
method: 'post',
data: data,
})
}
// 导入土地拍卖
export function importLand(data) {
return request({
url: '/api/auction_record/importRecordExcel',
method: 'post',
data: data,
})
return request({
url: '/api/auction_record/importRecordExcel',
method: 'post',
data: data,
})
}
// 导入经纬度
export function importLonLat(data) {
return request({
url: '/api/landlistedlonlat/importLandListLatExcel',
method: 'post',
data: data,
})
return request({
url: '/api/landlistedlonlat/importLandListLatExcel',
method: 'post',
data: data,
})
}
export function saveLandMulti(data) {
return request({
url: '/api/auction_record/multi',
method: 'post',
data: data,
})
return request({
url: '/api/auction_record/multi',
method: 'post',
data: data,
})
}
//新增编辑参拍
export function updateRecord(data) {
return request({
url: '/api/auction_record',
method: 'post',
data: data,
})
return request({
url: '/api/auction_record',
method: 'post',
data: data,
})
}
//查询参拍
export function queryRecord(data) {
return request({
url: '/api/auction_record/list',
method: 'get',
params: data,
})
return request({
url: '/api/auction_record/list',
method: 'get',
params: data,
})
}
//删除参拍
export function deleteRecord(data) {
return request({
url: '/api/auction_record/' + data,
method: 'delete',
})
export function deleteRecord(param) {
return request({
url: '/api/auction_record/',
method: 'delete',
headers: {
'Content-Type': 'application/json'
},
data: param
})
}
//保存已挂牌地块文件
export function allFileUpload(data) {
return request({
url: '/api/landAttachment',
method: 'post',
data:data
})
return request({
url: '/api/landAttachment',
method: 'post',
data: data
})
}

5
src/views/land/api/noLand.js

@ -281,10 +281,11 @@ export function queryRecord(data) {
}
//删除参拍
export function deleteRecord(data) {
export function deleteRecord(param) {
return request({
url: '/api/auction_record/' + data,
url: '/api/auction_record/',
method: 'delete',
data: param
})
}

2
src/views/land/handLand/newLand.vue

@ -2106,7 +2106,7 @@ export default {
}
},
handelDeleteRecord(row) {
deleteRecord(row.auctionRecordId).then((res) => {
deleteRecord(JSON.stringify([row.auctionRecordId])).then((res) => {
if (res.data.success) {
this.$message({
type: "success",

Loading…
Cancel
Save