@@ -104,16 +104,16 @@
} from '@ant-design/icons-vue';
import {
pageBillUrl,
- saveRoadSoundBill,
- removeRoadSoundBill,
- removeBatchRoadSoundBill,
- updateRoadSoundBill,
- verifyRoadSoundBill
- } from "@/api/ecology/road_sound";
+ saveRoadNoiseBill,
+ removeRoadNoiseBill,
+ removeBatchRoadNoiseBill,
+ updateRoadNoiseBill,
+ verifyRoadNoiseBill
+ } from "@/api/ecology/road-sound";
import utils from "./utils";
import moment from "moment";
export default {
- name: 'RoadSound',
+ name: 'RoadNoise',
components: {
CheckOutlined,
EditOutlined
@@ -233,17 +233,17 @@
},
detail(record) {
this.$router.replace({
- path: "/collect/sound/road/table/" + record.roadSoundBillId
+ path: "/collect/sound/road/table/" + record.roadNoiseBillId
})
},
edit(record) {
- this.editableData[record.roadSoundBillId] = _.cloneDeep(record);
- this.editableData[record.roadSoundBillId].reportTime = moment(this.editableData[record.roadSoundBillId]
+ this.editableData[record.roadNoiseBillId] = _.cloneDeep(record);
+ this.editableData[record.roadNoiseBillId].reportTime = moment(this.editableData[record.roadNoiseBillId]
.reportTime)
},
verify(record) {
const hide = this.$message.loading('请求中..', 0);
- verifyRoadSoundBill({roadSoundBillId:record.roadSoundBillId}).then(res => {
+ verifyRoadNoiseBill({roadNoiseBillId:record.roadNoiseBillId}).then(res => {
if (res.data.code == 0) {
record.checked = 1
this.$message.success(res.data.msg);
@@ -259,19 +259,19 @@
save(record) {
let {
- roadSoundBillId,
+ roadNoiseBillId,
billName,
reportTime
- } = this.editableData[record.roadSoundBillId];
- if (!roadSoundBillId || !reportTime) {
+ } = this.editableData[record.roadNoiseBillId];
+ if (!roadNoiseBillId || !reportTime) {
this.$message.error('请填写完整信息再提交')
return
}
const hide = this.$message.loading('请求中..', 0);
reportTime = reportTime.format("x")
reportTime = Number(reportTime)
- updateRoadSoundBill({
- roadSoundBillId,
+ updateRoadNoiseBill({
+ roadNoiseBillId,
billName,
reportTime
}).then(res => {
@@ -286,7 +286,7 @@
console.log(e);
this.$message.error(e.message);
}).finally(() => {
- delete this.editableData[record.roadSoundBillId]
+ delete this.editableData[record.roadNoiseBillId]
hide()
})
@@ -294,7 +294,7 @@
/* 删除单个 */
remove(row) {
const hide = this.$message.loading('请求中..', 0);
- removeRoadSoundBill(row.roadSoundBillId).then(res => {
+ removeRoadNoiseBill(row.roadNoiseBillId).then(res => {
if (res.data.code === 0) {
this.$message.success(res.data.msg);
this.reload();
@@ -306,9 +306,9 @@
}).finally(() => hide());
},
removeBatch() {
- const ids = this.selectionList.map(item => item.roadSoundBillId);
+ const ids = this.selectionList.map(item => item.roadNoiseBillId);
const hide = this.$message.loading('请求中..', 0);
- removeBatchRoadSoundBill(ids).then(res => {
+ removeBatchRoadNoiseBill(ids).then(res => {
if (res.data.code === 0) {
this.$message.success(res.data.msg);
this.reload();
@@ -337,14 +337,14 @@
});
const reportDate = aoa[1][0].replace(/[^\d]+/g, "-")
- const roadSoundList = aoa.filter(item => item.length == 21 && typeof item[0] == "number");
+ const roadNoiseList = aoa.filter(item => item.length == 21 && typeof item[0] == "number");
// 解析成对象数组
- const billData = utils.toObjData(roadSoundList);
+ const billData = utils.toObjData(roadNoiseList);
// 上传到服务器
- saveRoadSoundBill({
+ saveRoadNoiseBill({
reportTime: new Date(reportDate).getTime(),
billName: file.name.substr(0, file.name.lastIndexOf(".")),
- roadSoundList: billData
+ roadNoiseList: billData
}).then(() => {
this.reload()
})
diff --git a/src/views/collect/sound/road/table.vue b/src/views/sound/function/table.vue
similarity index 94%
rename from src/views/collect/sound/road/table.vue
rename to src/views/sound/function/table.vue
index 85c985f..1734a7e 100644
--- a/src/views/collect/sound/road/table.vue
+++ b/src/views/sound/function/table.vue
@@ -30,7 +30,7 @@
-
@@ -139,7 +139,7 @@
-
@@ -169,18 +169,18 @@
+
+
\ No newline at end of file
diff --git a/src/views/sound/road/collect/other.vue b/src/views/sound/road/collect/other.vue
new file mode 100644
index 0000000..1734a7e
--- /dev/null
+++ b/src/views/sound/road/collect/other.vue
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 昼
+ 夜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/road/collect/table.vue b/src/views/sound/road/collect/table.vue
new file mode 100644
index 0000000..1734a7e
--- /dev/null
+++ b/src/views/sound/road/collect/table.vue
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 昼
+ 夜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/road/collect/utils.js b/src/views/sound/road/collect/utils.js
new file mode 100644
index 0000000..c69b8ff
--- /dev/null
+++ b/src/views/sound/road/collect/utils.js
@@ -0,0 +1,37 @@
+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],
+ roadLength: item[5],
+ roadWidth: item[6],
+ smallTrafficFlow: item[7],
+ largeTrafficFlow: item[7],
+ 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],
+ }
+ })
+
+ }
+}
\ No newline at end of file
diff --git a/src/views/sound/road/other/index.vue b/src/views/sound/road/other/index.vue
new file mode 100644
index 0000000..d4075b3
--- /dev/null
+++ b/src/views/sound/road/other/index.vue
@@ -0,0 +1,407 @@
+
+
+
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+ 导入excel
+
+
+ 删除
+
+
+
+
+
+
+
+ {{ text || ' ' }}
+
+
+
+
+
+
+
+
+ {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }}
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+ 查看
+
+ 审核
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/road/other/other.vue b/src/views/sound/road/other/other.vue
new file mode 100644
index 0000000..1734a7e
--- /dev/null
+++ b/src/views/sound/road/other/other.vue
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 昼
+ 夜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/road/other/table.vue b/src/views/sound/road/other/table.vue
new file mode 100644
index 0000000..1734a7e
--- /dev/null
+++ b/src/views/sound/road/other/table.vue
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 昼
+ 夜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/road/other/utils.js b/src/views/sound/road/other/utils.js
new file mode 100644
index 0000000..c69b8ff
--- /dev/null
+++ b/src/views/sound/road/other/utils.js
@@ -0,0 +1,37 @@
+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],
+ roadLength: item[5],
+ roadWidth: item[6],
+ smallTrafficFlow: item[7],
+ largeTrafficFlow: item[7],
+ 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],
+ }
+ })
+
+ }
+}
\ No newline at end of file
diff --git a/src/views/sound/road/statistic/index.vue b/src/views/sound/road/statistic/index.vue
new file mode 100644
index 0000000..a35a67c
--- /dev/null
+++ b/src/views/sound/road/statistic/index.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/zone/index.vue b/src/views/sound/zone/index.vue
new file mode 100644
index 0000000..b19928e
--- /dev/null
+++ b/src/views/sound/zone/index.vue
@@ -0,0 +1,407 @@
+
+
+
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+ 导入excel
+
+
+ 删除
+
+
+
+
+
+
+
+ {{ text || ' ' }}
+
+
+
+
+
+
+
+
+ {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }}
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+ 查看
+
+ 审核
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/zone/table.vue b/src/views/sound/zone/table.vue
new file mode 100644
index 0000000..1734a7e
--- /dev/null
+++ b/src/views/sound/zone/table.vue
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 昼
+ 夜
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/sound/zone/utils.js b/src/views/sound/zone/utils.js
new file mode 100644
index 0000000..c69b8ff
--- /dev/null
+++ b/src/views/sound/zone/utils.js
@@ -0,0 +1,37 @@
+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],
+ roadLength: item[5],
+ roadWidth: item[6],
+ smallTrafficFlow: item[7],
+ largeTrafficFlow: item[7],
+ 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],
+ }
+ })
+
+ }
+}
\ No newline at end of file