From e345d037f90322380028acad8bbc2006cdcf93d7 Mon Sep 17 00:00:00 2001
From: weicw <594098497@qq.com>
Date: Mon, 16 Aug 2021 18:18:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8A=A5=E5=91=8A=20?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=86=E8=8A=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/ecology/road-sound.js | 4 +-
src/views/sound/road/collect/utils.js | 12 +
src/views/sound/road/statistic/average.vue | 412 ++++++++++++
src/views/sound/road/statistic/base.vue | 730 +++++++++++----------
src/views/sound/road/statistic/compare.vue | 204 +++---
src/views/sound/road/statistic/index.vue | 21 +-
6 files changed, 941 insertions(+), 442 deletions(-)
create mode 100644 src/views/sound/road/statistic/average.vue
diff --git a/src/api/ecology/road-sound.js b/src/api/ecology/road-sound.js
index 195a4d5..578b9fb 100644
--- a/src/api/ecology/road-sound.js
+++ b/src/api/ecology/road-sound.js
@@ -49,6 +49,7 @@ const updateRoadNoise = function (data) {
// -------------------------统计---------------------
const pageRoadNoiseStatisticUrl = '/sound/road/noise/statistic';
+const pageRoadNoiseCompare = '/sound/road/noise/statistic/compare';
const getHistoryyears = function () {
return axios.get("/sound/road/noise/history-year")
}
@@ -66,6 +67,7 @@ export {
updateRoadNoise,
removeBatchRoadNoise,
pageRoadNoiseStatisticUrl,
- getHistoryyears
+ getHistoryyears,
+ pageRoadNoiseCompare
}
diff --git a/src/views/sound/road/collect/utils.js b/src/views/sound/road/collect/utils.js
index e5e1d52..a01afb6 100644
--- a/src/views/sound/road/collect/utils.js
+++ b/src/views/sound/road/collect/utils.js
@@ -7,6 +7,16 @@ export default {
monitorTime.setDate(item[11]);
monitorTime.setHours(item[12]);
monitorTime.setMinutes(item[13]);
+ let quarter = 1;
+ if ((item[10] - 1) < 4) {
+ quarter = 1
+ } else if ((item[10] - 1) < 7) {
+ quarter = 2
+ } else if ((item[10] - 1) < 10) {
+ quarter = 3
+ } else{
+ quarter = 4
+ }
return {
monitorYear: item[0],
place: item[1],
@@ -31,6 +41,8 @@ export default {
indexL90: item[18],
indexLmin: item[19],
indexLmax: item[20],
+ quarter
+
}
})
diff --git a/src/views/sound/road/statistic/average.vue b/src/views/sound/road/statistic/average.vue
new file mode 100644
index 0000000..755e2fb
--- /dev/null
+++ b/src/views/sound/road/statistic/average.vue
@@ -0,0 +1,412 @@
+
+
+
data = d.data" :scroll="{x: 'max-content'}">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出excel
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/road/statistic/base.vue b/src/views/sound/road/statistic/base.vue
index 737ebf6..a7ea29f 100644
--- a/src/views/sound/road/statistic/base.vue
+++ b/src/views/sound/road/statistic/base.vue
@@ -1,412 +1,422 @@
-
-
data = d.data" :scroll="{x: 'max-content'}">
-
-
-
+
+
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
-
+
+
+
-
-
+
查询
重置
- 导出excel
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 昼
+ 夜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
diff --git a/src/views/sound/road/statistic/compare.vue b/src/views/sound/road/statistic/compare.vue
index ceac8bc..619cabb 100644
--- a/src/views/sound/road/statistic/compare.vue
+++ b/src/views/sound/road/statistic/compare.vue
@@ -1,54 +1,55 @@
-
data = d.data" :scroll="{x: 'max-content'}">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- 查询
- 重置
- 导出excel
-
-
-
-
-
-
-
-
+
+