diff --git a/src/api/ecology/function-place.js b/src/api/ecology/function-place.js new file mode 100644 index 0000000..dbeb296 --- /dev/null +++ b/src/api/ecology/function-place.js @@ -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 + +} diff --git a/src/api/ecology/function-sound.js b/src/api/ecology/function-sound.js new file mode 100644 index 0000000..9488196 --- /dev/null +++ b/src/api/ecology/function-sound.js @@ -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 + +} diff --git a/src/api/ecology/road-place.js b/src/api/ecology/road-place.js index 24ff4e7..c534b02 100644 --- a/src/api/ecology/road-place.js +++ b/src/api/ecology/road-place.js @@ -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 -} \ No newline at end of file + getRoadPlaceBill, + pageRoadPlaceUrl, + saveRoadPlace, + removeRoadPlace, + updateRoadPlace, + removeBatchRoadPlace, + pageRoadPlaceStatisticUrl, + getHistoryyears + +} diff --git a/src/views/sound/function/collect/index.vue b/src/views/sound/function/collect/index.vue new file mode 100644 index 0000000..8ace682 --- /dev/null +++ b/src/views/sound/function/collect/index.vue @@ -0,0 +1,115 @@ + + + + + \ No newline at end of file diff --git a/src/views/sound/function/index.vue b/src/views/sound/function/collect/noise-bill.vue similarity index 65% rename from src/views/sound/function/index.vue rename to src/views/sound/function/collect/noise-bill.vue index b19928e..ffe0b47 100644 --- a/src/views/sound/function/index.vue +++ b/src/views/sound/function/collect/noise-bill.vue @@ -1,56 +1,45 @@