酸雨
This commit is contained in:
80
src/api/ecology/acid.js
Normal file
80
src/api/ecology/acid.js
Normal file
@@ -0,0 +1,80 @@
|
||||
import axios from 'axios';
|
||||
// ----------------------列表-----------------------
|
||||
const pageBillUrl = '/acidRain/acidBill/page';
|
||||
// 添加
|
||||
const saveAcidBill = function (data) {
|
||||
return axios.post("/acidRain/acidBill",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeAcidBill = function (id) {
|
||||
return axios.delete(`/acidRain/acidBill/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchAcidBill = function (ids) {
|
||||
return axios.delete("/acidRain/acidBill/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateAcidBill = function (data) {
|
||||
return axios.put("/acidRain/acidBill",data)
|
||||
}
|
||||
// 审核
|
||||
const verifyAcidBill = function (data) {
|
||||
return axios.put("/acidRain/acidBill/verify",data);
|
||||
}
|
||||
const getAcidBill = function (id) {
|
||||
return axios.get(`/acidRain/acidBill/${id}`)
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageAcidUrl = '/acidRain/acid/page';
|
||||
// 添加
|
||||
const saveAcid = function (data) {
|
||||
return axios.post("/acidRain/acid",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeAcid = function (id) {
|
||||
return axios.delete(`/acidRain/acid/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchAcid = function (ids) {
|
||||
return axios.delete("/acidRain/acid/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateAcid = function (data) {
|
||||
return axios.put("/acidRain/acid",data)
|
||||
}
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageAcidStatisticUrl = '/acidRain/acid/statistic';
|
||||
const statisticSourceUrl = '/acidRain/acid/statistic/source';
|
||||
const statisticYearUrl = '/acidRain/acid/statistic/year';
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/acidRain/acid/history-year")
|
||||
}
|
||||
const getColumnOptions = function(column){
|
||||
return axios.get("/acidRain/acid/options",{params:{column}})
|
||||
}
|
||||
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveAcidBill,
|
||||
removeAcidBill,
|
||||
updateAcidBill,
|
||||
removeBatchAcidBill,
|
||||
verifyAcidBill,
|
||||
getAcidBill,
|
||||
pageAcidUrl,
|
||||
saveAcid,
|
||||
removeAcid,
|
||||
updateAcid,
|
||||
removeBatchAcid,
|
||||
pageAcidStatisticUrl,
|
||||
getHistoryyears,
|
||||
getColumnOptions,
|
||||
statisticSourceUrl,
|
||||
statisticYearUrl
|
||||
|
||||
}
|
||||
@@ -28,6 +28,10 @@ const getRoadNoiseBill = function (id) {
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageRoadNoiseUrl = '/sound/road/noise/page';
|
||||
|
||||
const listAll = function(data){
|
||||
return axios.get("/sound/road/noise",{params:data})
|
||||
}
|
||||
// 添加
|
||||
const saveRoadNoise = function (data) {
|
||||
return axios.post("/sound/road/noise",data)
|
||||
@@ -47,6 +51,8 @@ const updateRoadNoise = function (data) {
|
||||
return axios.put("/sound/road/noise",data)
|
||||
}
|
||||
|
||||
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageRoadNoiseStatisticUrl = '/sound/road/noise/statistic';
|
||||
const pageRoadNoiseCompare = '/sound/road/noise/statistic/compare';
|
||||
@@ -72,6 +78,7 @@ export {
|
||||
pageRoadNoiseStatisticUrl,
|
||||
getHistoryyears,
|
||||
pageRoadNoiseCompare,
|
||||
getColumnOptions
|
||||
getColumnOptions,
|
||||
listAll
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user