From 5c1b9dd682b7d460316473bae9363e485163f669 Mon Sep 17 00:00:00 2001 From: weicw <594098497@qq.com> Date: Tue, 10 Aug 2021 18:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8C=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=87=87=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecology/function-place.js | 71 +++ src/api/ecology/function-sound.js | 71 +++ src/api/ecology/road-place.js | 41 +- src/views/sound/function/collect/index.vue | 115 ++++ .../{index.vue => collect/noise-bill.vue} | 159 ++--- .../function/{table.vue => collect/noise.vue} | 183 ++---- .../sound/function/collect/place-bill.vue | 361 +++++++++++ .../list.vue => function/collect/place.vue} | 284 ++++----- src/views/sound/function/collect/utils.js | 52 ++ src/views/sound/function/utils.js | 37 -- src/views/sound/road/collect/index.vue | 13 +- .../road/collect/{base.vue => noise-bill.vue} | 4 +- .../{other/other.vue => collect/noise.vue} | 2 +- src/views/sound/road/collect/place-bill.vue | 362 +++++++++++ src/views/sound/road/collect/place.vue | 569 +++++++++--------- src/views/sound/road/other/index.vue | 407 ------------- src/views/sound/road/other/table.vue | 459 -------------- src/views/sound/road/other/utils.js | 37 -- src/views/sound/road/statistic/quarter.vue | 32 +- 19 files changed, 1624 insertions(+), 1635 deletions(-) create mode 100644 src/api/ecology/function-place.js create mode 100644 src/api/ecology/function-sound.js create mode 100644 src/views/sound/function/collect/index.vue rename src/views/sound/function/{index.vue => collect/noise-bill.vue} (65%) rename src/views/sound/function/{table.vue => collect/noise.vue} (68%) create mode 100644 src/views/sound/function/collect/place-bill.vue rename src/views/sound/{road/collect/list.vue => function/collect/place.vue} (54%) create mode 100644 src/views/sound/function/collect/utils.js delete mode 100644 src/views/sound/function/utils.js rename src/views/sound/road/collect/{base.vue => noise-bill.vue} (99%) rename src/views/sound/road/{other/other.vue => collect/noise.vue} (99%) create mode 100644 src/views/sound/road/collect/place-bill.vue delete mode 100644 src/views/sound/road/other/index.vue delete mode 100644 src/views/sound/road/other/table.vue delete mode 100644 src/views/sound/road/other/utils.js 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 @@