调整结构
This commit is contained in:
71
src/api/ecology/zone-place.js
Normal file
71
src/api/ecology/zone-place.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import axios from 'axios';
|
||||
// ----------------------列表-----------------------
|
||||
const pageBillUrl = '/sound/zone/place/bill/page';
|
||||
// 添加
|
||||
const saveZonePlaceBill = function (data) {
|
||||
return axios.post("/sound/zone/place/bill",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeZonePlaceBill = function (id) {
|
||||
return axios.delete(`/sound/zone/place/bill/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchZonePlaceBill = function (ids) {
|
||||
return axios.delete("/sound/zone/place/bill/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateZonePlaceBill = function (data) {
|
||||
return axios.put("/sound/zone/place/bill",data)
|
||||
}
|
||||
// 审核
|
||||
const verifyZonePlaceBill = function (data) {
|
||||
return axios.put("/sound/zone/place/bill/verify",data);
|
||||
}
|
||||
const getZonePlaceBill = function (id) {
|
||||
return axios.get(`/sound/zone/place/bill/${id}`)
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageZonePlaceUrl = '/sound/zone/place/page';
|
||||
// 添加
|
||||
const saveZonePlace = function (data) {
|
||||
return axios.post("/sound/zone/place",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeZonePlace = function (id) {
|
||||
return axios.delete(`/sound/zone/place/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchZonePlace = function (ids) {
|
||||
return axios.delete("/sound/zone/place/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateZonePlace = function (data) {
|
||||
return axios.put("/sound/zone/place",data)
|
||||
}
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageZonePlaceStatisticUrl = '/sound/zone/place/statistic';
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/sound/zone/place/history-year")
|
||||
}
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveZonePlaceBill,
|
||||
removeZonePlaceBill,
|
||||
updateZonePlaceBill,
|
||||
removeBatchZonePlaceBill,
|
||||
verifyZonePlaceBill,
|
||||
getZonePlaceBill,
|
||||
pageZonePlaceUrl,
|
||||
saveZonePlace,
|
||||
removeZonePlace,
|
||||
updateZonePlace,
|
||||
removeBatchZonePlace,
|
||||
pageZonePlaceStatisticUrl,
|
||||
getHistoryyears
|
||||
|
||||
}
|
||||
71
src/api/ecology/zone-sound.js
Normal file
71
src/api/ecology/zone-sound.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import axios from 'axios';
|
||||
// ----------------------列表-----------------------
|
||||
const pageBillUrl = '/sound/zone/noise/bill/page';
|
||||
// 添加
|
||||
const saveZoneNoiseBill = function (data) {
|
||||
return axios.post("/sound/zone/noise/bill",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeZoneNoiseBill = function (id) {
|
||||
return axios.delete(`/sound/zone/noise/bill/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchZoneNoiseBill = function (ids) {
|
||||
return axios.delete("/sound/zone/noise/bill/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateZoneNoiseBill = function (data) {
|
||||
return axios.put("/sound/zone/noise/bill",data)
|
||||
}
|
||||
// 审核
|
||||
const verifyZoneNoiseBill = function (data) {
|
||||
return axios.put("/sound/zone/noise/bill/verify",data);
|
||||
}
|
||||
const getZoneNoiseBill = function (id) {
|
||||
return axios.get(`/sound/zone/noise/bill/${id}`)
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageZoneNoiseUrl = '/sound/zone/noise/page';
|
||||
// 添加
|
||||
const saveZoneNoise = function (data) {
|
||||
return axios.post("/sound/zone/noise",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeZoneNoise = function (id) {
|
||||
return axios.delete(`/sound/zone/noise/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchZoneNoise = function (ids) {
|
||||
return axios.delete("/sound/zone/noise/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateZoneNoise = function (data) {
|
||||
return axios.put("/sound/zone/noise",data)
|
||||
}
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageZoneNoiseStatisticUrl = '/sound/zone/noise/statistic';
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/sound/zone/noise/history-year")
|
||||
}
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveZoneNoiseBill,
|
||||
removeZoneNoiseBill,
|
||||
updateZoneNoiseBill,
|
||||
removeBatchZoneNoiseBill,
|
||||
verifyZoneNoiseBill,
|
||||
getZoneNoiseBill,
|
||||
pageZoneNoiseUrl,
|
||||
saveZoneNoise,
|
||||
removeZoneNoise,
|
||||
updateZoneNoise,
|
||||
removeBatchZoneNoise,
|
||||
pageZoneNoiseStatisticUrl,
|
||||
getHistoryyears
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user