江河水
This commit is contained in:
94
src/api/ecology/water-function-area.js
Normal file
94
src/api/ecology/water-function-area.js
Normal file
@@ -0,0 +1,94 @@
|
||||
import axios from 'axios';
|
||||
// ----------------------列表-----------------------
|
||||
const pageBillUrl = '/waterFunctionArea/waterFunctionAreaBill/page';
|
||||
// 添加
|
||||
const saveWaterFunctionAreaBill = function (data) {
|
||||
return axios.post("/waterFunctionArea/waterFunctionAreaBill/importBatch",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeWaterFunctionAreaBill = function (id) {
|
||||
return axios.delete(`/waterFunctionArea/waterFunctionAreaBill/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchWaterFunctionAreaBill = function (ids) {
|
||||
return axios.delete("/waterFunctionArea/waterFunctionAreaBill/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateWaterFunctionAreaBill = function (data) {
|
||||
return axios.put("/waterFunctionArea/waterFunctionAreaBill",data)
|
||||
}
|
||||
// 审核
|
||||
const verifyWaterFunctionAreaBill = function (data) {
|
||||
return axios.put("/waterFunctionArea/waterFunctionAreaBill/verify",data);
|
||||
}
|
||||
const getWaterFunctionAreaBill = function (id) {
|
||||
return axios.get(`/waterFunctionArea/waterFunctionAreaBill/${id}`)
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageWaterFunctionAreaUrl = '/waterFunctionArea/waterFunctionArea/page';
|
||||
|
||||
const listAll = function(data){
|
||||
return axios.get("/waterFunctionArea/waterFunctionArea",{params:data})
|
||||
}
|
||||
// 添加
|
||||
const saveWaterFunctionArea = function (data) {
|
||||
return axios.post("/waterFunctionArea/waterFunctionArea",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeWaterFunctionArea = function (id) {
|
||||
return axios.delete(`/waterFunctionArea/waterFunctionArea/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchWaterFunctionArea = function (ids) {
|
||||
return axios.delete("/waterFunctionArea/waterFunctionArea/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateWaterFunctionArea = function (data) {
|
||||
return axios.put("/waterFunctionArea/waterFunctionArea",data)
|
||||
}
|
||||
|
||||
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageWaterFunctionAreaStatisticUrl = '/waterFunctionArea/waterFunctionArea/statistic';
|
||||
const pageWaterFunctionAreaCompare = '/waterFunctionArea/waterFunctionArea/statistic/compare';
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/waterFunctionArea/waterFunctionArea/history-year")
|
||||
}
|
||||
const getColumnOptions = function(column){
|
||||
return axios.get("/waterFunctionArea/waterFunctionArea/options",{params:{column}})
|
||||
}
|
||||
|
||||
const getGisBase = function(data){
|
||||
return axios.get("/waterFunctionArea/waterFunctionArea/gis",{params:data})
|
||||
}
|
||||
|
||||
const getGisArea = function(data){
|
||||
return axios.get("/waterFunctionArea/waterFunctionArea/gis/area",{params:data})
|
||||
}
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveWaterFunctionAreaBill,
|
||||
removeWaterFunctionAreaBill,
|
||||
updateWaterFunctionAreaBill,
|
||||
removeBatchWaterFunctionAreaBill,
|
||||
verifyWaterFunctionAreaBill,
|
||||
getWaterFunctionAreaBill,
|
||||
pageWaterFunctionAreaUrl,
|
||||
saveWaterFunctionArea,
|
||||
removeWaterFunctionArea,
|
||||
updateWaterFunctionArea,
|
||||
removeBatchWaterFunctionArea,
|
||||
pageWaterFunctionAreaStatisticUrl,
|
||||
getHistoryyears,
|
||||
pageWaterFunctionAreaCompare,
|
||||
getColumnOptions,
|
||||
listAll,
|
||||
getGisBase,
|
||||
getGisArea
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user