From e588ddee1dace9aee2c172ceb4b7a957fef8484d Mon Sep 17 00:00:00 2001 From: weicw <594098497@qq.com> Date: Thu, 12 Aug 2021 09:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=93=E6=9E=84?= 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 | 71 +++ src/views/sound/zone/collect/index.vue | 127 ++++++ src/views/sound/zone/collect/noise-bill.vue | 368 ++++++++++++++++ src/views/sound/zone/collect/noise.vue | 464 ++++++++++++++++++++ src/views/sound/zone/collect/place-bill.vue | 366 +++++++++++++++ src/views/sound/zone/collect/place.vue | 390 ++++++++++++++++ src/views/sound/zone/collect/utils.js | 62 +++ 8 files changed, 1919 insertions(+) create mode 100644 src/api/ecology/zone-place.js create mode 100644 src/api/ecology/zone-sound.js create mode 100644 src/views/sound/zone/collect/index.vue create mode 100644 src/views/sound/zone/collect/noise-bill.vue create mode 100644 src/views/sound/zone/collect/noise.vue create mode 100644 src/views/sound/zone/collect/place-bill.vue create mode 100644 src/views/sound/zone/collect/place.vue create mode 100644 src/views/sound/zone/collect/utils.js diff --git a/src/api/ecology/zone-place.js b/src/api/ecology/zone-place.js new file mode 100644 index 0000000..a24b9b8 --- /dev/null +++ b/src/api/ecology/zone-place.js @@ -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 + +} diff --git a/src/api/ecology/zone-sound.js b/src/api/ecology/zone-sound.js new file mode 100644 index 0000000..e2a954d --- /dev/null +++ b/src/api/ecology/zone-sound.js @@ -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 + +} diff --git a/src/views/sound/zone/collect/index.vue b/src/views/sound/zone/collect/index.vue new file mode 100644 index 0000000..e352afc --- /dev/null +++ b/src/views/sound/zone/collect/index.vue @@ -0,0 +1,127 @@ + + + + + + + 导入excel + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sound/zone/collect/noise-bill.vue b/src/views/sound/zone/collect/noise-bill.vue new file mode 100644 index 0000000..36bda35 --- /dev/null +++ b/src/views/sound/zone/collect/noise-bill.vue @@ -0,0 +1,368 @@ + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + 批量删除 + + + + + + + + + + {{ text || ' ' }} + + + + + + + + + + + + + {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }} + + + + + + + 已审核 + 未审核 + + + + + + 查看 + + + 审核 + + + 撤回 + + + + 删除 + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sound/zone/collect/noise.vue b/src/views/sound/zone/collect/noise.vue new file mode 100644 index 0000000..4432145 --- /dev/null +++ b/src/views/sound/zone/collect/noise.vue @@ -0,0 +1,464 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + + + + + 昼 + 夜 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 新增 + + 删除 + + + + + + + + 修改 + + 删除 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sound/zone/collect/place-bill.vue b/src/views/sound/zone/collect/place-bill.vue new file mode 100644 index 0000000..eeea398 --- /dev/null +++ b/src/views/sound/zone/collect/place-bill.vue @@ -0,0 +1,366 @@ + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + 批量删除 + + + + + + + + + + {{ text || ' ' }} + + + + + + + + + + + + + {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }} + + + + + + + 已审核 + 未审核 + + + + + + 查看 + + + 审核 + + + 撤回 + + + + 删除 + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sound/zone/collect/place.vue b/src/views/sound/zone/collect/place.vue new file mode 100644 index 0000000..4eabb9d --- /dev/null +++ b/src/views/sound/zone/collect/place.vue @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 新增 + + 删除 + + + + + + 修改 + + 删除 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sound/zone/collect/utils.js b/src/views/sound/zone/collect/utils.js new file mode 100644 index 0000000..e5e1d52 --- /dev/null +++ b/src/views/sound/zone/collect/utils.js @@ -0,0 +1,62 @@ +export default { + toObjData(excelData) { + return excelData.map(item => { + const monitorTime = new Date(); + monitorTime.setFullYear(item[0]); + monitorTime.setMonth(item[10]-1); + monitorTime.setDate(item[11]); + monitorTime.setHours(item[12]); + monitorTime.setMinutes(item[13]); + return { + monitorYear: item[0], + place: item[1], + placeCode: item[2], + road: item[3], + area: item[4], + city: '南宁', + roadLength: item[5], + roadWidth: item[6], + smallTrafficFlow: item[7], + largeTrafficFlow: item[8], + timeSlot: item[9], + monitorMonth: item[10], + monitorDay: item[11], + monitorHour: item[12], + monitorMinute: item[13], + monitorTime: monitorTime.getTime(), + indexLeq: item[14], + indexSd: item[15], + indexL10: item[16], + indexL50: item[17], + indexL90: item[18], + indexLmin: item[19], + indexLmax: item[20], + } + }) + + }, + toPlaceData(excelData) { + return excelData.map(item => { + return { + place: item[0], + placeLng: item[1], + placeLat: item[2], + motorway: item[3], + motorwayType: item[4], + motorwayLevel: item[5], + refObj: item[6], + people: item[7], + station: item[8], + monitorInstrumentModel: item[9], + monitorInstrumentCode: item[10], + beforeMonitorValue: item[11], + afterMonitorValue: item[12], + soundPressureValue: item[13], + soundInstrumentModel: item[14], + soundInstrumentCode: item[15], + + } + }) + + } +} \ No newline at end of file