From 59e13d11c1414ff485a66dca900d23a39461dab0 Mon Sep 17 00:00:00 2001 From: weicw <594098497@qq.com> Date: Thu, 26 Aug 2021 11:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E5=A3=B0=E6=BA=90=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecology/zone-place.js | 71 -------- src/api/ecology/zone-sound.js | 5 +- src/views/sound/zone/statistic/index.vue | 6 +- src/views/sound/zone/statistic/source.vue | 195 ++++++++++++++++++++++ 4 files changed, 204 insertions(+), 73 deletions(-) delete mode 100644 src/api/ecology/zone-place.js create mode 100644 src/views/sound/zone/statistic/source.vue diff --git a/src/api/ecology/zone-place.js b/src/api/ecology/zone-place.js deleted file mode 100644 index a24b9b8..0000000 --- a/src/api/ecology/zone-place.js +++ /dev/null @@ -1,71 +0,0 @@ -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 - -} diff --git a/src/api/ecology/zone-sound.js b/src/api/ecology/zone-sound.js index 6f83ebc..0107142 100644 --- a/src/api/ecology/zone-sound.js +++ b/src/api/ecology/zone-sound.js @@ -49,12 +49,14 @@ const updateZoneNoise = function (data) { // -------------------------统计--------------------- const pageZoneNoiseStatisticUrl = '/sound/zone/noise/statistic'; +const statisticSourceUrl = '/sound/zone/noise/statistic/source'; const getHistoryyears = function () { return axios.get("/sound/zone/noise/history-year") } const getColumnOptions = function(column){ return axios.get("/sound/zone/noise/options",{params:{column}}) } + export { pageBillUrl, saveZoneNoiseBill, @@ -70,6 +72,7 @@ export { removeBatchZoneNoise, pageZoneNoiseStatisticUrl, getHistoryyears, - getColumnOptions + getColumnOptions, + statisticSourceUrl } diff --git a/src/views/sound/zone/statistic/index.vue b/src/views/sound/zone/statistic/index.vue index 3253b15..9ca9104 100644 --- a/src/views/sound/zone/statistic/index.vue +++ b/src/views/sound/zone/statistic/index.vue @@ -5,6 +5,9 @@ + + + @@ -29,12 +32,13 @@ // import QuarterStatistic from "./quarter.vue"; import Compare from "./compare.vue" import AverageStatistic from "./average.vue" + import SourceStatistic from "./source.vue" export default { name: 'StatisticSoundZone', components: { BaseStatistic, - // QuarterStatistic, + SourceStatistic, Compare, AverageStatistic }, diff --git a/src/views/sound/zone/statistic/source.vue b/src/views/sound/zone/statistic/source.vue new file mode 100644 index 0000000..e974462 --- /dev/null +++ b/src/views/sound/zone/statistic/source.vue @@ -0,0 +1,195 @@ + + + + + \ No newline at end of file