功能区数据采集
This commit is contained in:
71
src/api/ecology/function-place.js
Normal file
71
src/api/ecology/function-place.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import axios from 'axios';
|
||||
// ----------------------列表-----------------------
|
||||
const pageBillUrl = '/sound/function/place/bill/page';
|
||||
// 添加
|
||||
const saveFunctionPlaceBill = function (data) {
|
||||
return axios.post("/sound/function/place/bill",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeFunctionPlaceBill = function (id) {
|
||||
return axios.delete(`/sound/function/place/bill/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchFunctionPlaceBill = function (ids) {
|
||||
return axios.delete("/sound/function/place/bill/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateFunctionPlaceBill = function (data) {
|
||||
return axios.put("/sound/function/place/bill",data)
|
||||
}
|
||||
// 审核
|
||||
const verifyFunctionPlaceBill = function (data) {
|
||||
return axios.put("/sound/function/place/bill/verify",data);
|
||||
}
|
||||
const getFunctionPlaceBill = function (id) {
|
||||
return axios.get(`/sound/function/place/bill/${id}`)
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageFunctionPlaceUrl = '/sound/function/place/page';
|
||||
// 添加
|
||||
const saveFunctionPlace = function (data) {
|
||||
return axios.post("/sound/function/place",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeFunctionPlace = function (id) {
|
||||
return axios.delete(`/sound/function/place/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchFunctionPlace = function (ids) {
|
||||
return axios.delete("/sound/function/place/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateFunctionPlace = function (data) {
|
||||
return axios.put("/sound/function/place",data)
|
||||
}
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageFunctionPlaceStatisticUrl = '/sound/function/place/statistic';
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/sound/function/place/history-year")
|
||||
}
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveFunctionPlaceBill,
|
||||
removeFunctionPlaceBill,
|
||||
updateFunctionPlaceBill,
|
||||
removeBatchFunctionPlaceBill,
|
||||
verifyFunctionPlaceBill,
|
||||
getFunctionPlaceBill,
|
||||
pageFunctionPlaceUrl,
|
||||
saveFunctionPlace,
|
||||
removeFunctionPlace,
|
||||
updateFunctionPlace,
|
||||
removeBatchFunctionPlace,
|
||||
pageFunctionPlaceStatisticUrl,
|
||||
getHistoryyears
|
||||
|
||||
}
|
||||
71
src/api/ecology/function-sound.js
Normal file
71
src/api/ecology/function-sound.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import axios from 'axios';
|
||||
// ----------------------列表-----------------------
|
||||
const pageBillUrl = '/sound/function/noise/bill/page';
|
||||
// 添加
|
||||
const saveFunctionNoiseBill = function (data) {
|
||||
return axios.post("/sound/function/noise/bill",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeFunctionNoiseBill = function (id) {
|
||||
return axios.delete(`/sound/function/noise/bill/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchFunctionNoiseBill = function (ids) {
|
||||
return axios.delete("/sound/function/noise/bill/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateFunctionNoiseBill = function (data) {
|
||||
return axios.put("/sound/function/noise/bill",data)
|
||||
}
|
||||
// 审核
|
||||
const verifyFunctionNoiseBill = function (data) {
|
||||
return axios.put("/sound/function/noise/bill/verify",data);
|
||||
}
|
||||
const getFunctionNoiseBill = function (id) {
|
||||
return axios.get(`/sound/function/noise/bill/${id}`)
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageFunctionNoiseUrl = '/sound/function/noise/page';
|
||||
// 添加
|
||||
const saveFunctionNoise = function (data) {
|
||||
return axios.post("/sound/function/noise",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeFunctionNoise = function (id) {
|
||||
return axios.delete(`/sound/function/noise/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchFunctionNoise = function (ids) {
|
||||
return axios.delete("/sound/function/noise/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateFunctionNoise = function (data) {
|
||||
return axios.put("/sound/function/noise",data)
|
||||
}
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageFunctionNoiseStatisticUrl = '/sound/function/noise/statistic';
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/sound/function/noise/history-year")
|
||||
}
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveFunctionNoiseBill,
|
||||
removeFunctionNoiseBill,
|
||||
updateFunctionNoiseBill,
|
||||
removeBatchFunctionNoiseBill,
|
||||
verifyFunctionNoiseBill,
|
||||
getFunctionNoiseBill,
|
||||
pageFunctionNoiseUrl,
|
||||
saveFunctionNoise,
|
||||
removeFunctionNoise,
|
||||
updateFunctionNoise,
|
||||
removeBatchFunctionNoise,
|
||||
pageFunctionNoiseStatisticUrl,
|
||||
getHistoryyears
|
||||
|
||||
}
|
||||
@@ -5,6 +5,7 @@ const pageBillUrl = '/sound/road/place/bill/page';
|
||||
const saveRoadPlaceBill = function (data) {
|
||||
return axios.post("/sound/road/place/bill",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeRoadPlaceBill = function (id) {
|
||||
return axios.delete(`/sound/road/place/bill/${id}`,)
|
||||
@@ -25,12 +26,46 @@ const verifyRoadPlaceBill = function (data) {
|
||||
const getRoadPlaceBill = function (id) {
|
||||
return axios.get(`/sound/road/place/bill/${id}`)
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageRoadPlaceUrl = '/sound/road/place/page';
|
||||
// 添加
|
||||
const saveRoadPlace = function (data) {
|
||||
return axios.post("/sound/road/place",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeRoadPlace = function (id) {
|
||||
return axios.delete(`/sound/road/place/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchRoadPlace = function (ids) {
|
||||
return axios.delete("/sound/road/place/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateRoadPlace = function (data) {
|
||||
return axios.put("/sound/road/place",data)
|
||||
}
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageRoadPlaceStatisticUrl = '/sound/road/place/statistic';
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/sound/road/place/history-year")
|
||||
}
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveRoadPlaceBill,
|
||||
removeRoadPlaceBill,
|
||||
removeBatchRoadPlaceBill,
|
||||
updateRoadPlaceBill,
|
||||
removeBatchRoadPlaceBill,
|
||||
verifyRoadPlaceBill,
|
||||
getRoadPlaceBill
|
||||
}
|
||||
getRoadPlaceBill,
|
||||
pageRoadPlaceUrl,
|
||||
saveRoadPlace,
|
||||
removeRoadPlace,
|
||||
updateRoadPlace,
|
||||
removeBatchRoadPlace,
|
||||
pageRoadPlaceStatisticUrl,
|
||||
getHistoryyears
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user