diff --git a/src/api/ecology/noise/function-sound.js b/src/api/ecology/noise/function-sound.js
index b8eb258..1007ef7 100644
--- a/src/api/ecology/noise/function-sound.js
+++ b/src/api/ecology/noise/function-sound.js
@@ -28,6 +28,10 @@ const getFunctionNoiseBill = function (id) {
}
// -------------------------数据---------------------
const pageFunctionNoiseUrl = '/sound/function/noise/page';
+const listAllFunctionNoiseUrl = '/sound/function/noise';
+const listAllFunctionNoise = function (params){
+ return axios.get(listAllFunctionNoiseUrl, {params})
+}
// 添加
const saveFunctionNoise = function (data) {
return axios.post("/sound/function/noise",data)
@@ -79,6 +83,8 @@ export {
getHistoryyears,
getColumnOptions,
getGisBase,
- getGisArea
+ getGisArea,
+ listAllFunctionNoiseUrl,
+ listAllFunctionNoise
}
diff --git a/src/api/ecology/noise/zone-noise-leq-level.js b/src/api/ecology/noise/zone-noise-leq-level.js
new file mode 100644
index 0000000..e8ad9e2
--- /dev/null
+++ b/src/api/ecology/noise/zone-noise-leq-level.js
@@ -0,0 +1,32 @@
+import axios from 'axios';
+const baseUri = "/sound/zone/noiseLeqLevel";
+const listAllUrl = baseUri + "";
+
+// 添加
+const saveLeqLevel = function (data) {
+ return axios.post("/sound/zone/noiseLeqLevel",data)
+}
+
+// 删除
+const removeLeqLevel = function (id) {
+ return axios.delete(`/sound/zone/noiseLeqLevel/${id}`,)
+}
+// 批量删除
+const removeBatchLeqLevel = function (ids) {
+ return axios.delete("/sound/zone/noiseLeqLevel/batch",{data:ids})
+}
+
+// 修改
+const updateLeqLevel = function (data) {
+ return axios.put("/sound/zone/noiseLeqLevel",data)
+}
+
+
+export {
+ listAllUrl,
+ saveLeqLevel,
+ updateLeqLevel,
+ removeBatchLeqLevel,
+ removeLeqLevel
+
+}
diff --git a/src/api/ecology/noise/zone-noise-place.js b/src/api/ecology/noise/zone-noise-place.js
new file mode 100644
index 0000000..ef776ba
--- /dev/null
+++ b/src/api/ecology/noise/zone-noise-place.js
@@ -0,0 +1,32 @@
+import axios from 'axios';
+const baseUri = "/sound/zone/place";
+const listAllUrl = baseUri + "";
+
+// 添加
+const savePlace = function (data) {
+ return axios.post("/sound/zone/place",data)
+}
+
+// 删除
+const removePlace = function (id) {
+ return axios.delete(`/sound/zone/place/${id}`,)
+}
+// 批量删除
+const removeBatchPlace = function (ids) {
+ return axios.delete("/sound/zone/place/batch",{data:ids})
+}
+
+// 修改
+const updatePlace = function (data) {
+ return axios.put("/sound/zone/place",data)
+}
+
+
+export {
+ listAllUrl,
+ savePlace,
+ updatePlace,
+ removeBatchPlace,
+ removePlace
+
+}
diff --git a/src/api/ecology/noise/zone-sound.js b/src/api/ecology/noise/zone-sound.js
index 1b63912..c43265c 100644
--- a/src/api/ecology/noise/zone-sound.js
+++ b/src/api/ecology/noise/zone-sound.js
@@ -28,6 +28,10 @@ const getZoneNoiseBill = function (id) {
}
// -------------------------数据---------------------
const pageZoneNoiseUrl = '/sound/zone/noise/page';
+const listAllZoneNoiseUrl = '/sound/zone/noise';
+const listALlZoneNoise = function (params){
+ return axios.get(listAllZoneNoiseUrl,{params})
+}
// 添加
const saveZoneNoise = function (data) {
return axios.post("/sound/zone/noise",data)
@@ -75,6 +79,7 @@ export {
getHistoryyears,
getColumnOptions,
statisticSourceUrl,
- statisticYearUrl
+ statisticYearUrl,
+ listALlZoneNoise
}
diff --git a/src/views/atmosphere/acid-rain/dict/index.vue b/src/views/atmosphere/acid-rain/dict/index.vue
new file mode 100644
index 0000000..73d2acd
--- /dev/null
+++ b/src/views/atmosphere/acid-rain/dict/index.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/atmosphere/acid-rain/dict/leq-level.vue b/src/views/atmosphere/acid-rain/dict/leq-level.vue
new file mode 100644
index 0000000..0ea43ec
--- /dev/null
+++ b/src/views/atmosphere/acid-rain/dict/leq-level.vue
@@ -0,0 +1,302 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 昼
+ 夜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/atmosphere/acid-rain/dict/place.vue b/src/views/atmosphere/acid-rain/dict/place.vue
new file mode 100644
index 0000000..4e3c05b
--- /dev/null
+++ b/src/views/atmosphere/acid-rain/dict/place.vue
@@ -0,0 +1,334 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/function/collect/index.vue b/src/views/sound/function/collect/index.vue
index c237de2..c1fe460 100644
--- a/src/views/sound/function/collect/index.vue
+++ b/src/views/sound/function/collect/index.vue
@@ -76,7 +76,7 @@ export default {
);
// 解析成对象数组
- const billName = aoa[0][0];
+ const billName = file.name;
const billData = utils.toObjData(functionNoiseList);
const billData2 = utils.toPlaceData(functionNoiseList2);
@@ -163,7 +163,7 @@ export default {
});
// 解析成对象数组
- const billName = aoa[0][0];
+ const billName = file.name;
const billData = utils.toAreaObjData(functionNoiseList);
if (!billData || billData.length == 0) {
diff --git a/src/views/sound/function/collect/utils.js b/src/views/sound/function/collect/utils.js
index 365b3a6..9ff2113 100644
--- a/src/views/sound/function/collect/utils.js
+++ b/src/views/sound/function/collect/utils.js
@@ -49,7 +49,7 @@ export default {
}
if (row.indexL10 < row.indexL50 || row.indexL50 < row.indexL90) {
- throw new Error(row.place + "数值有误" + `${row.indexL10},${row.indexL10},${row.indexL50},${row.indexL90}`)
+ throw new Error(row.place + "数值有误" + `${row.indexLeq},${row.indexL10},${row.indexL50},${row.indexL90}`)
}
return row;
})
@@ -81,12 +81,12 @@ export default {
return excelData.map(item => {
const monitorTime = new Date();
monitorTime.setFullYear(item[1]);
- monitorTime.setMonth(item[14] - 1);
- monitorTime.setDate(item[15]);
- monitorTime.setHours(item[16]);
- monitorTime.setMinutes(item[17]);
+ monitorTime.setMonth(item[9] - 1);
+ monitorTime.setDate(item[10]);
+ monitorTime.setHours(item[11]);
+ monitorTime.setMinutes(item[23]);
let quarter = 1;
- const month = item[14]
+ const month = item[9]
if (month < 4) {
quarter = 1
} else if (month < 7) {
diff --git a/src/views/sound/function/statistic/base.vue b/src/views/sound/function/statistic/base.vue
index 6e7edbc..f2cdea8 100644
--- a/src/views/sound/function/statistic/base.vue
+++ b/src/views/sound/function/statistic/base.vue
@@ -1,500 +1,558 @@
-
-
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
- 查询
- 重置
- 导出Excel
-
-
-
-
-
-
- (data = d.data)"
- >
-
- {{text}}
- {{text}}
- {{text}}
- {{text}}
- {{text}}
- {{text}}
-
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+
+
+
+
diff --git a/src/views/sound/function/statistic/index.vue b/src/views/sound/function/statistic/index.vue
index 9a01317..f72d488 100644
--- a/src/views/sound/function/statistic/index.vue
+++ b/src/views/sound/function/statistic/index.vue
@@ -11,9 +11,9 @@
-
-
-
+
+
+
@@ -27,7 +27,7 @@
*/
import BaseStatistic from "./base.vue";
// import QuarterStatistic from "./quarter.vue";
- import Compare from "./compare.vue";
+ // import Compare from "./compare.vue";
import AverageStatistic from "./average.vue";
export default {
@@ -35,7 +35,7 @@
components: {
BaseStatistic,
// QuarterStatistic,
- Compare,
+ // Compare,
AverageStatistic
},
data() {
diff --git a/src/views/sound/road/collect/index.vue b/src/views/sound/road/collect/index.vue
index 3d36771..48cc877 100644
--- a/src/views/sound/road/collect/index.vue
+++ b/src/views/sound/road/collect/index.vue
@@ -86,9 +86,9 @@ export default {
);
// 解析成对象数组
- const billName = aoa[0][0];
+ const billName = file.name;
const billData = utils.toObjData(roadNoiseList);
- const billName2 = aoa2[0][0];
+ const billName2 = file.name;
const billData2 = utils.toObjData(roadNoiseList2);
// 其他信息
const billData3 = utils.toPlaceData(roadNoiseList3);
@@ -199,7 +199,7 @@ export default {
);
// 解析成对象数组
- const billName = aoa[0][0];
+ const billName = file.name;
const billData = utils.toAreaObjData(roadNoiseList);
if (!billData || billData.length == 0) {
diff --git a/src/views/sound/road/statistic/base.vue b/src/views/sound/road/statistic/base.vue
index c999cae..9e8cbb8 100644
--- a/src/views/sound/road/statistic/base.vue
+++ b/src/views/sound/road/statistic/base.vue
@@ -605,7 +605,13 @@ export default {
listAll(this.where).then(res=>{
if(res.data.code == 0){
res.data.data.forEach((d) => {
- const td = columns.map((item) => d[item.dataIndex]);
+ const td = columns.map((item) => {
+ let val = d[item.dataIndex];
+ if(["indexLeq","indexL10","indexL50","indexL90","indexLmax","indexLmin","indexSd"].includes(item.dataIndex)){
+ val = Number(val).toFixed(1);
+ }
+ return val;
+ });
arr.push(td);
});
let sheet = XLSX.utils.aoa_to_sheet(arr);
diff --git a/src/views/sound/zone/collect/index.vue b/src/views/sound/zone/collect/index.vue
index 663219a..e7ec7cf 100644
--- a/src/views/sound/zone/collect/index.vue
+++ b/src/views/sound/zone/collect/index.vue
@@ -1,242 +1,244 @@
-
-
-
-
-
- 市级导入
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ 市级导入
+
+
+ 县级导入
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sound/zone/collect/noise.vue b/src/views/sound/zone/collect/noise.vue
index ef0b297..1c7e7f7 100644
--- a/src/views/sound/zone/collect/noise.vue
+++ b/src/views/sound/zone/collect/noise.vue
@@ -1,687 +1,724 @@
-
-
-
-
-
-
-
-
- {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
- 删除
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- {{text}}
- {{text}}
- {{text}}
- {{text}}
- {{text}}
- {{text}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
-
-
- 修改
-
- 删除
-
-
-
-
-
-
-
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/sound/zone/collect/utils.js b/src/views/sound/zone/collect/utils.js
index 5759bab..2147ae0 100644
--- a/src/views/sound/zone/collect/utils.js
+++ b/src/views/sound/zone/collect/utils.js
@@ -60,6 +60,7 @@ export default {
if (row.indexL10 < row.indexL50 || row.indexL50 < row.indexL90) {
throw new Error(row.place + "数值有误")
}
+ // console.log(monitorTime)
return row;
})
@@ -93,12 +94,12 @@ export default {
return excelData.map(item => {
const monitorTime = new Date();
monitorTime.setFullYear(item[1]);
- monitorTime.setMonth(item[14] - 1);
- monitorTime.setDate(item[15]);
- monitorTime.setHours(item[16]);
- monitorTime.setMinutes(item[17]);
+ monitorTime.setMonth(item[10] - 1);
+ monitorTime.setDate(item[11]);
+ monitorTime.setHours(item[12]);
+ monitorTime.setMinutes(item[13]);
let quarter = 1;
- const month = item[14]
+ const month = item[10]
if (month < 4) {
quarter = 1
} else if (month < 7) {
@@ -108,55 +109,49 @@ export default {
} else {
quarter = 4
}
- let timeSlot = "夜";
- if (item[16] >= 6 && item[16] <= 22) {
- timeSlot = "昼"
- }
- const row = {
+ const row = {
regionCode: item[0],
- regionLevel: "县级",
monitorYear: item[1],
placeCode: item[2],
place: item[3],
placeLng: item[4],
placeLat: item[5],
- road: item[6],
- roadLength: item[7],
- roadWidth: item[8],
- motorway: item[9],
- motorwayType: item[10],
- motorwayLevel: item[11],
- refObj: item[12],
- people: item[13],
- monitorMonth: item[14],
- monitorDay: item[15],
- monitorHour: item[16],
- monitorMinute: item[17],
- smallTrafficFlow: item[18],
- largeTrafficFlow: item[19],
- indexLeq: item[20],
- indexL10: item[21],
- indexL50: item[22],
- indexL90: item[23],
- indexLmax: item[24],
- indexLmin: item[25],
- indexSd: item[26],
- station: item[27],
- monitorInstrumentModel: item[28],
- monitorInstrumentCode: item[29],
- beforeMonitorValue: item[30],
- afterMonitorValue: item[31],
- soundPressureValue: item[32],
- soundInstrumentModel: item[33],
- soundInstrumentCode: item[34],
- remark: item[35],
+ reqObj: item[6],
+ gridLength: item[7],
+ people: item[8],
+ functionCode: item[9],
+ monitorMonth: item[10],
+ monitorDay: item[11],
+ monitorHour: item[12],
+ monitorMinute: item[13],
+ sourceCode: item[14],
+ indexLeq: item[15],
+ indexL10: item[16],
+ indexL50: item[17],
+ indexL90: item[18],
+ indexLmax: item[19],
+ indexLmin: item[20],
+ indexSd: item[21],
+ station: item[22],
+ monitorInstrumentModel: item[23],
+ monitorInstrumentCode: item[24],
+ beforeMonitorValue: item[25],
+ afterMonitorValue: item[26],
+ soundPressureValue: item[27],
+ soundInstrumentModel: item[28],
+ soundInstrumentCode: item[29],
city: '南宁',
- timeSlot,
+ regionLevel: "县级",
monitorTime: monitorTime.getTime(),
quarter
-
}
- if(row.indexL10 < row.indexL50 || row.indexL50 < row.indexL90){
+
+ if (row.monitorHour >= 6 && row.monitorHour < 22) {
+ row.timeSlot = "昼"
+ }else{
+ row.timeSlot = "夜"
+ }
+ if (row.indexL10 < row.indexL50 || row.indexL50 < row.indexL90) {
throw new Error(row.place + "数值有误")
}
return row;
diff --git a/src/views/sound/zone/dict/leq-level.vue b/src/views/sound/zone/dict/leq-level.vue
index 740f614..0ea43ec 100644
--- a/src/views/sound/zone/dict/leq-level.vue
+++ b/src/views/sound/zone/dict/leq-level.vue
@@ -113,11 +113,11 @@ import {
updateLeqLevel,
removeLeqLevel,
removeBatchLeqLevel
-} from "@/api/ecology/noise/road-noise-leq-level";
+} from "@/api/ecology/noise/zone-noise-leq-level";
import { message } from 'ant-design-vue';
// import moment from "moment";
export default {
- name: "RoadNoiseLeqLevel",
+ name: "ZoneNoiseLeqLevel",
components: {},
data() {
return {
diff --git a/src/views/sound/zone/dict/place.vue b/src/views/sound/zone/dict/place.vue
index b2efb8e..4e3c05b 100644
--- a/src/views/sound/zone/dict/place.vue
+++ b/src/views/sound/zone/dict/place.vue
@@ -3,7 +3,7 @@
+
+
+
-
-
-
-
-
-
-
-
-
+
-
-
-
+
+
+
@@ -70,7 +65,7 @@
{
if (res.data.code == 0) {
@@ -314,7 +295,7 @@ export default {
/* 删除单个 */
remove(row) {
const hide = this.$message.loading('请求中..', 0);
- removePlace(row.roadNoisePlaceId).then((res) => {
+ removePlace(row.zoneNoisePlaceId).then((res) => {
hide();
if (res.data.code === 0) {
this.$message.success(res.data.msg);
@@ -330,7 +311,7 @@ export default {
/* 批量删除 */
removeBatch() {
const hide = this.$message.loading('请求中..', 0);
- const ids = this.selectionList.map((item) => item.roadNoisePlaceId);
+ const ids = this.selectionList.map((item) => item.zoneNoisePlaceId);
removeBatchPlace(ids).then((res) => {
if (res.data.code === 0) {
this.$message.success(res.data.msg);
diff --git a/src/views/sound/zone/statistic/average.vue b/src/views/sound/zone/statistic/average.vue
index a657b1e..69a4537 100644
--- a/src/views/sound/zone/statistic/average.vue
+++ b/src/views/sound/zone/statistic/average.vue
@@ -1,211 +1,214 @@
-
-
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- 查询
-
- 导出Excel
-
-
-
-
-
-
- (data = d.data)"
- >
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ 查询
+
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+
+
+
diff --git a/src/views/sound/zone/statistic/base.vue b/src/views/sound/zone/statistic/base.vue
index c9b780a..2c6fd14 100644
--- a/src/views/sound/zone/statistic/base.vue
+++ b/src/views/sound/zone/statistic/base.vue
@@ -1,474 +1,530 @@
-
-
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- 查询
- 重置
- 导出Excel
-
-
-
-
-
-
- (data = d.data)"
- >
-
- {{text}}
- {{text}}
- {{text}}
- {{text}}
- {{text}}
- {{text}}
-
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+ {{ text }}
+
+
+
+
+
diff --git a/src/views/sound/zone/statistic/year.vue b/src/views/sound/zone/statistic/year.vue
index 7b677e3..9510735 100644
--- a/src/views/sound/zone/statistic/year.vue
+++ b/src/views/sound/zone/statistic/year.vue
@@ -1,222 +1,236 @@
-
-
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- 查询
-
- 导出Excel
-
-
-
-
-
-
- (data = d.data)"
- >
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ 查询
+
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+
+
+