diff --git a/src/views/atmosphere/acid-rain/statistic/base.vue b/src/views/atmosphere/acid-rain/statistic/base.vue
index c3a0b3e..6db93bf 100644
--- a/src/views/atmosphere/acid-rain/statistic/base.vue
+++ b/src/views/atmosphere/acid-rain/statistic/base.vue
@@ -67,7 +67,6 @@ import XLSX from "xlsx";
import {pageAcidRainUrl, getColumnOptions} from "@/api/ecology/atmosphere/acid";
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
import moment from "moment";
-import { tableColumns } from "./colums";
// import utils from "./utils";
export default {
name: "StatisticSoundZoneBase",
@@ -258,120 +257,66 @@ export default {
exportFile() {
const columns = [
- {
- title: "行政代码",
- dataIndex: "regionCode",
- sorter: true,
- },
- {
- title: "市(县,区)",
- dataIndex: "address",
- slots: {customRender: "Address"},
- },
- {
- title: "采样点",
- dataIndex: "place",
- sorter: true,
- },
- {
- title: "点位类型",
- dataIndex: "placeType",
- sorter: true,
- },
- {
- title: "采样开始时间",
- dataIndex: "monitorStartTime",
- customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY-MM-DD HH:mm")
- },
- {
- title: "采样结束时间",
- dataIndex: "monitorEndTime",
- customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY-MM-DD HH:mm")
- },
- {
- title: "降水类型",
- dataIndex: "precipitationType",
- sorter: true,
- },
- {
- title: "降水量",
- dataIndex: "precipitation",
- sorter: true,
- },
- {
- title: "pH",
- dataIndex: "ph",
- sorter: true,
- },
- {
- title: "电导率",
- dataIndex: "conductivity",
- sorter: true,
- },
- {
- title: "SO42",
- dataIndex: "so42",
- sorter: true,
- },
- {
- title: "NO3",
- dataIndex: "no3",
- sorter: true,
- },
- {
- title: "F",
- dataIndex: "f",
- sorter: true,
- },
- {
- title: "CL",
- dataIndex: "cl",
- sorter: true,
- },
- {
- title: "NH4",
- dataIndex: "nh4",
- sorter: true,
- },
- {
- title: "Ca2",
- dataIndex: "ca",
- sorter: true,
- },
- {
- title: "Mg2",
- dataIndex: "mg",
- sorter: true,
- },
- {
- title: "Na",
- dataIndex: "na",
- sorter: true,
- },
- {
- title: "K",
- dataIndex: "k",
- sorter: true,
- },
- {
- title: "系统编码",
- dataIndex: "systemCode",
- sorter: true,
- },
+ {title: "",dataIndex: "regionCode",customRender:()=>"450100",},
+ {title: "",dataIndex: "address"},
+ {title: "",dataIndex: "place", },
+ {title: "",dataIndex: "placeType",},
+ {title: "年",dataIndex: "monitorStartTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").year()},
+ {title: "月",dataIndex: "monitorStartTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").month()},
+ {title: "日",dataIndex: "monitorStartTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").days()},
+ {title: "时",dataIndex: "monitorStartTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").hour()},
+ {title: "分",dataIndex: "monitorStartTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").minute()},
+ {title: "年",dataIndex: "monitorEndTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").year()},
+ {title: "月",dataIndex: "monitorEndTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").month()},
+ {title: "日",dataIndex: "monitorEndTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").days()},
+ {title: "时",dataIndex: "monitorEndTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").hour()},
+ {title: "分",dataIndex: "monitorEndTime", customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").minute()},
+ {title: "",dataIndex: "precipitationType", },
+ { title: "(mm)",dataIndex: "precipitation",sorter: true, },
+ {title: "",dataIndex: "ph", },
+ {title: "(mS/m)",dataIndex: "conductivity", },
+ {title: "SO42-", dataIndex: "so42",},
+ {title: "NO3-",dataIndex: "no3",},
+ { title: "F-", dataIndex: "f",},
+ {title: "CL-", dataIndex: "cl",},
+ {title: "NH4",dataIndex: "nh4", },
+ { title: "Ca2", dataIndex: "ca",},
+ {title: "Mg2",dataIndex: "mg", },
+ {title: "Na",dataIndex: "na",},
+ {title: "K", dataIndex: "k"},
+ {title: "",dataIndex: "systemCode",},
];
- const arr = [];
- const th = columns.map((item) => item.title);
- arr.push(th);
+ const arr = [["酸雨监测结果报告表"]];
+ const th1 = ["行政代码","市(县,区)","采样点","点位类型","采样开始时间","","","","","采样结束时间","","","","","降水类型","降水量","pH","电导率","离子组分(mg/l)","","","","","","","","","系统编码"];
+ const th2 = columns.map((item) => item.title);
+ arr.push(th1);
+ arr.push(th2);
+ const merges = []; // 合并
+ merges.push({s: {r: 0, c: 0}, e: {r: 0, c: 27}});
+ merges.push({s: {r: 1, c: 0}, e: {r: 2, c: 0}});
+ merges.push({s: {r: 1, c: 1}, e: {r: 2, c: 1}});
+ merges.push({s: {r: 1, c: 2}, e: {r: 2, c: 2}});
+ merges.push({s: {r: 1, c: 3}, e: {r: 2, c: 3}});
+ merges.push({s: {r: 1, c: 4}, e: {r: 1, c: 8}});
+ merges.push({s: {r: 1, c: 9}, e: {r: 1, c: 13}});
+ merges.push({s: {r: 1, c: 14}, e: {r: 2, c: 14}});
+ // merges.push({s: {r: 1, c: 16}, e: {r: 2, c: 16}});
+ merges.push({s: {r: 1, c: 16}, e: {r: 2, c: 16}});
+ merges.push({s: {r: 1, c: 18}, e: {r: 1, c: 26}});
+ merges.push({s: {r: 1, c: 27}, e: {r: 2, c: 27}});
this.data.forEach((d) => {
const td = columns.map((item) => {
if (item.dataIndex == "address") {
return d.area ? d.area : d.county ? d.county : d.city
+ }else if(item.customRender){
+ return item.customRender({text:d[item.dataIndex]});
}
return d[item.dataIndex];
});
arr.push(td);
});
let sheet = XLSX.utils.aoa_to_sheet(arr);
+ sheet['!merges'] = merges;
this.$util.exportSheet(XLSX, sheet, new Date().getTime().toString());
},
},
@@ -379,4 +324,4 @@ export default {
\ No newline at end of file
+
diff --git a/src/views/atmosphere/air/statistic/area-base.vue b/src/views/atmosphere/air/statistic/area-base.vue
index 9a56c76..f41cadf 100644
--- a/src/views/atmosphere/air/statistic/area-base.vue
+++ b/src/views/atmosphere/air/statistic/area-base.vue
@@ -237,7 +237,7 @@ export default {
let sheet = XLSX.utils.aoa_to_sheet(arr);
sheet['!merges'] = merges;
- this.$util.exportSheet(XLSX, sheet, moment(this.where.timeStart).format("YYYY年MM月DD日") + "至" + moment(this.where.timeEnd).format("YYYY年MM月DD日"));
+ this.$util.exportSheet(XLSX, sheet, moment(this.where.timeStart).format("YYYY年MM月DD日") + "至" + moment(this.where.timeEnd).format("YYYY年MM月DD日") + "城区浓度统计");
},
},
@@ -246,4 +246,4 @@ export default {
\ No newline at end of file
+
diff --git a/src/views/atmosphere/air/statistic/area.vue b/src/views/atmosphere/air/statistic/area.vue
index 49870ee..4b50bbd 100644
--- a/src/views/atmosphere/air/statistic/area.vue
+++ b/src/views/atmosphere/air/statistic/area.vue
@@ -287,7 +287,13 @@ export default {
})
arr.push(th1,th2);
this.data.forEach((d) => {
- const td = columnsTemp.map((item) => d[item.dataIndex]);
+ const td = columnsTemp.map((item) => {
+ if(item.customRender){
+ return item.customRender({text:d[item.dataIndex]});
+ }
+ return d[item.dataIndex];
+ });
+
arr.push(td);
});
let sheet = XLSX.utils.aoa_to_sheet(arr);
@@ -300,4 +306,4 @@ export default {
\ No newline at end of file
+
diff --git a/src/views/atmosphere/air/statistic/base.vue b/src/views/atmosphere/air/statistic/base.vue
index 70935cb..9c3c336 100644
--- a/src/views/atmosphere/air/statistic/base.vue
+++ b/src/views/atmosphere/air/statistic/base.vue
@@ -276,11 +276,6 @@ export default {
dataIndex: "remark",
sorter: true,
},
- {
- title: "创建人",
- dataIndex: "username",
- sorter: true,
- },
];
const arr = [];
const th = columns.map((item) => item.title);
@@ -292,7 +287,8 @@ export default {
arr.push(td);
});
let sheet = XLSX.utils.aoa_to_sheet(arr);
- this.$util.exportSheet(XLSX, sheet, new Date().getTime().toString());
+ this.$util.exportSheet(XLSX, sheet, moment(this.where.timeStart).format("YYYY年MM月DD日") + "至" + moment(this.where.timeEnd).format("YYYY年MM月DD日") + "基础数据");
+
}
})
@@ -302,4 +298,4 @@ export default {
\ No newline at end of file
+
diff --git a/src/views/atmosphere/air/statistic/city-county-place.vue b/src/views/atmosphere/air/statistic/city-county-place.vue
index f6e1843..a299f69 100644
--- a/src/views/atmosphere/air/statistic/city-county-place.vue
+++ b/src/views/atmosphere/air/statistic/city-county-place.vue
@@ -275,7 +275,7 @@ export default {
});
let sheet = XLSX.utils.aoa_to_sheet(arr);
sheet['!merges'] = merges;
- this.$util.exportSheet(XLSX, sheet, moment(this.where.timeStart).format("YYYY年MM月DD日") + "至" + moment(this.where.timeEnd).format("YYYY年MM月DD日"));
+ this.$util.exportSheet(XLSX, sheet, moment(this.where.timeStart).format("YYYY年MM月DD日") + "至" + moment(this.where.timeEnd).format("YYYY年MM月DD日")+ "统计数据");
},
},
@@ -283,4 +283,4 @@ export default {
\ No newline at end of file
+
diff --git a/src/views/sound/function/collect/noise-bill.vue b/src/views/sound/function/collect/noise-bill.vue
index 44be0bd..adaf359 100644
--- a/src/views/sound/function/collect/noise-bill.vue
+++ b/src/views/sound/function/collect/noise-bill.vue
@@ -7,7 +7,12 @@
-
+
+
+
+
+
+
市级
@@ -25,9 +30,7 @@
-
-
-
+
@@ -228,12 +231,6 @@
/* 刷新表格 */
reload() {
- this.where.reportTimeStart = null;
- this.where.reportTimeEnd = null;
- if (this.reportTimeScope && this.reportTimeScope.length == 2) {
- this.where.reportTimeStart = this.reportTimeScope[0].format("Y-M-D H:m:s")
- this.where.reportTimeEnd = this.reportTimeScope[1].format("Y-M-D H:m:s")
- }
this.$refs.table.reload({
where: this.where
});
@@ -342,7 +339,7 @@
this.$message.error(e.msg);
}).finally(() => hide());
},
-
+
}
}
@@ -390,4 +387,4 @@
.editable-cell:hover .editable-cell-icon {
display: inline-block;
}
-
\ No newline at end of file
+
diff --git a/src/views/sound/road/collect/noise-bill.vue b/src/views/sound/road/collect/noise-bill.vue
index 57cd200..5771624 100644
--- a/src/views/sound/road/collect/noise-bill.vue
+++ b/src/views/sound/road/collect/noise-bill.vue
@@ -7,6 +7,12 @@
+
+
+
+
+
+
市级
@@ -24,9 +30,6 @@
-
-
-
@@ -227,12 +230,7 @@
/* 刷新表格 */
reload() {
- this.where.reportTimeStart = null;
- this.where.reportTimeEnd = null;
- if (this.reportTimeScope && this.reportTimeScope.length == 2) {
- this.where.reportTimeStart = this.reportTimeScope[0].format("Y-M-D H:m:s")
- this.where.reportTimeEnd = this.reportTimeScope[1].format("Y-M-D H:m:s")
- }
+
this.$refs.table.reload({
where: this.where
});
@@ -341,7 +339,7 @@
this.$message.error(e.msg);
}).finally(() => hide());
},
-
+
}
}
@@ -389,4 +387,4 @@
.editable-cell:hover .editable-cell-icon {
display: inline-block;
}
-
\ No newline at end of file
+
diff --git a/src/views/sound/road/statistic/average.vue b/src/views/sound/road/statistic/average.vue
index d482e65..1de26d5 100644
--- a/src/views/sound/road/statistic/average.vue
+++ b/src/views/sound/road/statistic/average.vue
@@ -12,38 +12,33 @@
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- 查询
- 重置
- 导出excel
-
-
-
-
+
+
+
+ 查询
+ 重置
+ 导出excel
+
+
@@ -53,7 +48,8 @@
(where.timeSlot == '夜' && text <= 58)
"
color="green"
- >{{ text }}{{ text }}
+
{{ text }}{{ text }}
+
{{ text }}{{ text }}
+
{{ text }}{{ text }}
+
{{ text }}{{ text }}
+
{{ text }}
@@ -96,7 +96,8 @@
\ 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 9e8cbb8..77f00da 100644
--- a/src/views/sound/road/statistic/base.vue
+++ b/src/views/sound/road/statistic/base.vue
@@ -121,6 +121,7 @@
import XLSX from "xlsx";
import { pageRoadNoiseUrl, getColumnOptions,listAll } from "@/api/ecology/noise/road-sound";
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
+import moment from "moment";
// import moment from "moment";
// import utils from "./utils";
export default {
@@ -141,6 +142,7 @@ export default {
title: "监测日期",
dataIndex: "monitorTime",
sorter: true,
+ customRender:({text})=>moment(text).format("YYYY-MM-DD HH:mm")
},
{
title: "测点名称",
@@ -212,7 +214,7 @@ export default {
dataIndex: "indexLeq",
slots: {customRender: "Leq"},
sorter: true,
-
+
},
{
title: "SDdB(A)",
@@ -505,8 +507,8 @@ export default {
dataIndex: "monitorMinute",
sorter: true,
},
-
-
+
+
{
title: "中小型车20min车流量",
dataIndex: "smallTrafficFlow",
@@ -522,7 +524,7 @@ export default {
dataIndex: "indexLeq",
sorter: true,
},
-
+
{
title: "L10",
dataIndex: "indexL10",
@@ -625,4 +627,4 @@ export default {
\ 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 e2cc4e2..dc777d2 100644
--- a/src/views/sound/road/statistic/compare.vue
+++ b/src/views/sound/road/statistic/compare.vue
@@ -1,267 +1,248 @@
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
- 查询
- 重置
- 导出Excel
-
-
-
-
-
- (data = d.data)"
- >
-
-
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
(data = d.data)"
+ >
+
+
-
-
-
-
+ -->
+
+
+
\ 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
index a6b6256..06190a9 100644
--- a/src/views/sound/zone/collect/noise-bill.vue
+++ b/src/views/sound/zone/collect/noise-bill.vue
@@ -7,6 +7,12 @@
+
+
+
+
+
+
市级
@@ -24,9 +30,6 @@
-
-
-
@@ -223,16 +226,8 @@
};
},
methods: {
-
-
/* 刷新表格 */
reload() {
- this.where.reportTimeStart = null;
- this.where.reportTimeEnd = null;
- if (this.reportTimeScope && this.reportTimeScope.length == 2) {
- this.where.reportTimeStart = this.reportTimeScope[0].format("Y-M-D H:m:s")
- this.where.reportTimeEnd = this.reportTimeScope[1].format("Y-M-D H:m:s")
- }
this.$refs.table.reload({
where: this.where
});
@@ -341,7 +336,7 @@
this.$message.error(e.msg);
}).finally(() => hide());
},
-
+
}
}
@@ -389,4 +384,4 @@
.editable-cell:hover .editable-cell-icon {
display: inline-block;
}
-
\ No newline at end of file
+