@@ -106,15 +106,15 @@
import { Modal } from 'ant-design-vue';
import {
pageBillUrl,
- // saveZoneNoiseBill,
- removeZoneNoiseBill,
- removeBatchZoneNoiseBill,
- updateZoneNoiseBill,
- verifyZoneNoiseBill
- } from "@/api/ecology/zone-sound";
+ // saveLakeBill,
+ removeLakeBill,
+ removeBatchLakeBill,
+ updateLakeBill,
+ verifyLakeBill
+ } from "@/api/ecology/special-lake";
import moment from "moment";
export default {
- name: 'ZoneCollectNoiseBill',
+ name: 'SpecialLakeCollectNoiseBill',
components: {
CheckOutlined,
EditOutlined
@@ -144,11 +144,6 @@
},
},
- {
- title: '区域等级',
- dataIndex: 'regionLevel',
- sorter: true,
- },
{
title: '条目',
dataIndex: 'recordSize',
@@ -160,17 +155,17 @@
// dataIndex: 'title',
// sorter: true
// },
- {
- title: '上报时间',
- dataIndex: 'reportTime',
- sorter: true,
- slots: {
- customRender: 'reportTime',
- },
- // customRender: ({
- // text
- // }) => this.$util.toDateString(text)
- },
+ // {
+ // title: '上报时间',
+ // dataIndex: 'reportTime',
+ // sorter: true,
+ // slots: {
+ // customRender: 'reportTime',
+ // },
+ // // customRender: ({
+ // // text
+ // // }) => this.$util.toDateString(text)
+ // },
{
title: '导入时间',
dataIndex: 'createTime',
@@ -190,7 +185,7 @@
},
{
title: '创建人',
- dataIndex: 'username',
+ dataIndex: 'userName',
sorter: true,
},
@@ -245,18 +240,18 @@
},
detail(record) {
this.$router.replace({
- path: "/sound/zone/collect/noise/" + record.zoneNoiseBillId
+ path: "/water/lake/collect/special-water/" + record.lakeLibrarySpecialBillId
})
},
edit(record) {
- this.editableData[record.zoneNoiseBillId] = _.cloneDeep(record);
- this.editableData[record.zoneNoiseBillId].reportTime = moment(this.editableData[record.zoneNoiseBillId]
+ this.editableData[record.lakeLibrarySpecialBillId] = _.cloneDeep(record);
+ this.editableData[record.lakeLibrarySpecialBillId].reportTime = moment(this.editableData[record.lakeLibrarySpecialBillId]
.reportTime)
},
verify(record,checked) {
const hide = this.$message.loading('请求中..', 0);
- verifyZoneNoiseBill({
- zoneNoiseBillId: record.zoneNoiseBillId,
+ verifyLakeBill({
+ lakeLibrarySpecialBillId: record.lakeLibrarySpecialBillId,
checked
}).then(res => {
if (res.data.code == 0) {
@@ -280,19 +275,19 @@
save(record) {
let {
- zoneNoiseBillId,
+ lakeLibrarySpecialBillId,
billName,
reportTime
- } = this.editableData[record.zoneNoiseBillId];
- if (!zoneNoiseBillId || !reportTime) {
+ } = this.editableData[record.lakeLibrarySpecialBillId];
+ if (!lakeLibrarySpecialBillId || !reportTime) {
this.$message.error('请填写完整信息再提交')
return
}
const hide = this.$message.loading('请求中..', 0);
reportTime = reportTime.format("x")
reportTime = Number(reportTime)
- updateZoneNoiseBill({
- zoneNoiseBillId,
+ updateLakeBill({
+ lakeLibrarySpecialBillId,
billName,
reportTime
}).then(res => {
@@ -307,7 +302,7 @@
console.log(e);
this.$message.error(e.message);
}).finally(() => {
- delete this.editableData[record.zoneNoiseBillId]
+ delete this.editableData[record.lakeLibrarySpecialBillId]
hide()
})
@@ -315,7 +310,7 @@
/* 删除单个 */
remove(row) {
const hide = this.$message.loading('请求中..', 0);
- removeZoneNoiseBill(row.zoneNoiseBillId).then(res => {
+ removeLakeBill(row.lakeLibrarySpecialBillId).then(res => {
if (res.data.code === 0) {
this.$message.success(res.data.msg);
this.reload();
@@ -327,9 +322,9 @@
}).finally(() => hide());
},
removeBatch() {
- const ids = this.selectionList.map(item => item.zoneNoiseBillId);
+ const ids = this.selectionList.map(item => item.lakeLibrarySpecialBillId);
const hide = this.$message.loading('请求中..', 0);
- removeBatchZoneNoiseBill(ids).then(res => {
+ removeBatchLakeBill(ids).then(res => {
if (res.data.code === 0) {
this.$message.success(res.data.msg);
this.reload();
@@ -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
+
diff --git a/src/views/water/lake/collect/special-water.vue b/src/views/water/lake/collect/special-water.vue
new file mode 100644
index 0000000..ca29a37
--- /dev/null
+++ b/src/views/water/lake/collect/special-water.vue
@@ -0,0 +1,331 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/lake/collect/utils.js b/src/views/water/lake/collect/utils.js
index 5759bab..ae2bb3b 100644
--- a/src/views/water/lake/collect/utils.js
+++ b/src/views/water/lake/collect/utils.js
@@ -1,165 +1,140 @@
+import moment from "moment";
export default {
- toObjData(excelData) {
+ // 城市内湖导入
+ toInnerCityLakeObjData(excelData,reportDate) {
+
return excelData.map(item => {
- const monitorTime = new Date();
- monitorTime.setFullYear(item[0]);
- monitorTime.setMonth(item[7] - 1);
- monitorTime.setDate(item[8]);
- monitorTime.setHours(item[9]);
- monitorTime.setMinutes(item[10]);
- let quarter = 1;
- const month = item[7]
- if (month < 4) {
- quarter = 1
- } else if (month < 7) {
- quarter = 2
- } else if (month < 10) {
- quarter = 3
- } else {
- quarter = 4
- }
+ const monitorTime = new Date(reportDate);
const row = {
- regionCode: "450100",
- monitorYear: item[0],
- gridLength: item[1],
- gridWidth: item[2],
- place: item[3],
- gridNo: item[4],
- area: item[5],
- source: item[6],
- monitorMonth: item[7],
- monitorDay: item[8],
- monitorHour: item[9],
- monitorMinute: item[10],
- indexLeq: item[11],
- indexSd: item[12],
- indexL10: item[13],
- indexL50: item[14],
- indexL90: item[15],
- indexLmax: item[16],
- indexLmin: item[17],
- station: item[18],
- monitorInstrumentModel: item[19],
- monitorInstrumentCode: item[20],
- beforeMonitorValue: item[21],
- afterMonitorValue: item[22],
- soundPressureValue: item[23],
- soundInstrumentModel: item[24],
- soundInstrumentCode: item[25],
- city: '南宁',
- regionLevel: "市级",
- monitorTime: monitorTime.getTime(),
- quarter
- }
+ monitorTime: monitorTime.getTime(),
+ province: "广西壮族自治区",
+ city: "南宁",
+ pointName: item[0],
+ waterTemperature: item[1],
+ ph: item[2],
+ transparency:item [3],
+ dissolvedOxygenSaturation:item [4],
+ dissolvedOxygen:item [5],
+ permanganateIndex:item [6],
+ fiveDayBod:item [7],
+ totalNitrogen:item [8],
+ ammonia:item [9],
+ volatilePhenol:item [10],
+ as:item [11],
+ hg:item [12],
+ cr6:item [13],
+ pb:item [14],
+ cd:item [15],
+ totalPhosphorus:item [16],
+ petro:item [17],
+ fecalColiforms:item [18],
+ cod:item [19],
+ chlA:item [20],
+ anSaa:item [21],
+ s:item [22],
+ oxidationReductionPotential:item [23],
+ remark:item [23],
- 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;
})
},
- 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],
+// 五象湖
+ toWuxiangLakeObjData(excelData) {
+ return excelData.map(item => {
+ const row = {
+ province: "广西壮族自治区",
+ city: "南宁",
+ pointName: item[0],
+ monitorTime: moment(item[1],"YYYY年M月D日").valueOf(),
+ waterTemperature: item[2],
+ dissolvedOxygen:item [3],
+ dissolvedOxygenSaturation:item [4],
+ transparency:item [5],
+ ph:item [6],
+ fiveDayBod:item [7],
+ permanganateIndex:item [8],
+ cod:item [9],
+ ammonia:item [10],
+ chlA:item [11],
+ oxidationReductionPotential:item [12],
+ cr6:item [13],
+ hg:item [14],
+ pb:item [15],
+ as:item [16],
+ cd:item [17],
+ totalPhosphorus:item [18],
+ s:item [19],
+ petro:item [20],
+ totalNitrogen:item [21],
+ fecalColiforms:item [22],
+ anSaa:item [23],
+ remark:item [24],
- }
- })
+ }
+ return row;
+ })
- },
- // 解析县级数据
- toAreaObjData(excelData) {
- 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]);
- let quarter = 1;
- const month = item[14]
- if (month < 4) {
- quarter = 1
- } else if (month < 7) {
- quarter = 2
- } else if (month < 10) {
- quarter = 3
- } else {
- quarter = 4
- }
- let timeSlot = "夜";
- if (item[16] >= 6 && item[16] <= 22) {
- timeSlot = "昼"
- }
- 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],
- city: '南宁',
- timeSlot,
- monitorTime: monitorTime.getTime(),
- quarter
+ },
+ // 专项湖库
+ toSpecialLakeData(excelData) {
+ return excelData.map(item => {
+ const row = {
+ province: "广西壮族自治区",
+ city: "南宁",
+ // nothing: item[0],
+ stationName: item[1],
+ stationCode: item[2],
+ lakeLibraryName:item [3],
+ lakeLibraryCode:item [4],
+ sectionName:item [5],
+ sectionCode:item [6],
+ controlAttributes:item [7],
+ watershed:item [8],
+ monitorTime:item [9],
+ waterPeriodCode:item [10],
+ turbidity:item [11],
+ wTemp:item [12],
+ wd:item [13],
+ ph:item [14],
+ wCond:item [15],
+ transp:item [16],
+ dissolvedOxygen:item [17],
+ codmn:item [18],
+ bod5:item [19],
+ nh4N:item [20],
+ oils:item [21],
+ nTotal:item [22],
+ pTotal:item [23],
+ chlA:item [24],
+ vPhen:item [25],
+ wHg:item [26],
+ wPb:item [27],
+ codcr:item [28],
+ wCu:item [29],
+ wZn:item [30],
+ f:item [31],
+ se:item [32],
+ as:item [33],
+ cd:item [34],
+ cr6:item [35],
+ cnTotal:item [36],
+ anSaa:item [37],
+ s:item [38],
+ coloOrg:item [39],
+ so4:item [40],
+ cl:item [41],
+ no3N:item [42],
+ wFe:item [43],
+ wMn:item [44],
+ waterQualityCategory:item [45],
+ remark:item [49],
+ systemCode:item[47],
+ }
+ return row;
+ })
- }
- if(row.indexL10 < row.indexL50 || row.indexL50 < row.indexL90){
- throw new Error(row.place + "数值有误")
- }
- return row;
- })
- }
-}
\ No newline at end of file
+ },
+
+}
diff --git a/src/views/water/lake/collect/water-bill.vue b/src/views/water/lake/collect/water-bill.vue
new file mode 100644
index 0000000..e4e407f
--- /dev/null
+++ b/src/views/water/lake/collect/water-bill.vue
@@ -0,0 +1,387 @@
+
+
+
+
+
+
+
+
+
+
+ 市级
+ 县级
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 批量删除
+
+
+
+
+
+
+ {{ text || ' ' }}
+
+
+
+
+
+
+
+
+ {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }}
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+ 查看
+
+
+ 审核
+
+
+ 撤回
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/lake/collect/water.vue b/src/views/water/lake/collect/water.vue
new file mode 100644
index 0000000..cafe2b3
--- /dev/null
+++ b/src/views/water/lake/collect/water.vue
@@ -0,0 +1,331 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/river-station/collect/colums.js b/src/views/water/river-station/collect/colums.js
new file mode 100644
index 0000000..9b77e15
--- /dev/null
+++ b/src/views/water/river-station/collect/colums.js
@@ -0,0 +1,21 @@
+const tableColumns = [
+ {title: "城区", dataIndex: "area", sorter: true,},
+ {title: "县", dataIndex: "county", sorter: true,},
+ {title: "所在流域", dataIndex: "watershed", sorter: true,},
+ {title: "所在河流", dataIndex: "river", sorter: true,},
+ {title: "站点名称", dataIndex: "place", sorter: true,},
+ {title: "本期水质", dataIndex: "periodWaterQuality", sorter: true,},
+ {title: "水温", dataIndex: "waterTemperature", sorter: true,},
+ {title: "pH值", dataIndex: "ph", sorter: true,},
+ {title: "溶解氧", dataIndex: "dissolvedOxygen", sorter: true,},
+ {title: "电导率", dataIndex: "conductivity", sorter: true,},
+ {title: "浊度", dataIndex: "turbidity", sorter: true,},
+ {title: "高锰酸盐指数", dataIndex: "permanganateIndex", sorter: true,},
+ {title: "氨氮", dataIndex: "ammonia", sorter: true,},
+ {title: "总磷", dataIndex: "totalPhosphorus", sorter: true,},
+ {title: "总氮", dataIndex: "totalNitrogen", sorter: true,},
+ {title: "主要污染指标(超标倍数)", dataIndex: "mainPollutionIndicators", sorter: true,},
+ {title: "备注", dataIndex: "remark", sorter: true,},
+];
+
+export {tableColumns}
diff --git a/src/views/water/river-station/collect/index.vue b/src/views/water/river-station/collect/index.vue
new file mode 100644
index 0000000..fb90153
--- /dev/null
+++ b/src/views/water/river-station/collect/index.vue
@@ -0,0 +1,351 @@
+
+
+
+
+
+
+ 市级地表水导入
+
+
+ 县级地表水导入
+
+
+ 县级地下水导入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/river-station/collect/utils.js b/src/views/water/river-station/collect/utils.js
new file mode 100644
index 0000000..0304802
--- /dev/null
+++ b/src/views/water/river-station/collect/utils.js
@@ -0,0 +1,3 @@
+export default {
+
+}
diff --git a/src/views/water/river-station/collect/water-bill.vue b/src/views/water/river-station/collect/water-bill.vue
new file mode 100644
index 0000000..7618027
--- /dev/null
+++ b/src/views/water/river-station/collect/water-bill.vue
@@ -0,0 +1,389 @@
+
+
+
+
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 批量删除
+
+
+
+
+
+
+ {{ text || ' ' }}
+
+
+
+
+
+
+
+
+ {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }}
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+ 查看
+
+
+ 审核
+
+
+ 撤回
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/river-station/collect/water.vue b/src/views/water/river-station/collect/water.vue
new file mode 100644
index 0000000..0c8b92c
--- /dev/null
+++ b/src/views/water/river-station/collect/water.vue
@@ -0,0 +1,351 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/river-station/statistic/average.vue b/src/views/water/river-station/statistic/average.vue
new file mode 100644
index 0000000..fb5825a
--- /dev/null
+++ b/src/views/water/river-station/statistic/average.vue
@@ -0,0 +1,258 @@
+
+
+
(data = d.data)"
+ :scroll="{ x: 'max-content' }"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出excel
+
+
+
+
+
+
+
+
+ {{ text }}
+ {{ text }}
+ {{ text }}
+ {{ text }}
+ {{ text }}
+ {{ text }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/river-station/statistic/base.vue b/src/views/water/river-station/statistic/base.vue
new file mode 100644
index 0000000..75e6a60
--- /dev/null
+++ b/src/views/water/river-station/statistic/base.vue
@@ -0,0 +1,571 @@
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+ {{text}}
+ {{text}}
+ {{text}}
+ {{text}}
+ {{text}}
+ {{text}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/river-station/statistic/compare.vue b/src/views/water/river-station/statistic/compare.vue
new file mode 100644
index 0000000..733daea
--- /dev/null
+++ b/src/views/water/river-station/statistic/compare.vue
@@ -0,0 +1,508 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
+
+
(data = d.data)"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/river-station/statistic/index.vue b/src/views/water/river-station/statistic/index.vue
new file mode 100644
index 0000000..c9fb001
--- /dev/null
+++ b/src/views/water/river-station/statistic/index.vue
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/river/collect/index.vue b/src/views/water/river/collect/index.vue
index 09c9f5a..687ae40 100644
--- a/src/views/water/river/collect/index.vue
+++ b/src/views/water/river/collect/index.vue
@@ -8,20 +8,33 @@
:showUploadList="false"
accept=".xls,.xlsx,.csv"
>
-
市级导入
+
江河导入
-
+
水功能区导入
+
+
+ 水站导入
+
-
-
+
+
+
+
+
+
+
+
@@ -33,16 +46,22 @@ import XLSX from "xlsx";
import utils from "./utils";
import {Modal} from "ant-design-vue";
import WaterBill from "./water-bill.vue";
+import FunctionBill from "../../water-function-area/collect/water-bill"
+import StationBill from "../../river-station/collect/water-bill"
+import {saveWaterFunctionAreaBill} from "@/api/ecology/water-function-area"
import {saveRiverBill} from "@/api/ecology/river";
+import {saveRiverStationBill} from "@/api/ecology/river-station";
export default {
name: "RiverCollectIndex",
components: {
WaterBill,
+ FunctionBill,
+ StationBill
},
data() {
return {
- activeKey: "noise",
+ activeKey: "functionWater",
};
},
methods: {
@@ -106,7 +125,7 @@ export default {
title: "导入成功",
content: `成功导入${billData.length}条数据`,
});
- this.$refs.noise && this.$refs.noise.reload();
+ this.$refs.water && this.$refs.water.reload();
} else {
Modal.error({
title: "导入失败",
@@ -137,7 +156,168 @@ export default {
return false;
},
+ importFileFunctionArea(file) {
+ const hide = this.$message.loading("导入中..", 0);
+ let reader = new FileReader();
+ reader.onload = (e) => {
+ try {
+ let data = new Uint8Array(e.target.result);
+ let workbook = XLSX.read(data, {
+ type: "array",
+ });
+ //0.昼间数据 1.夜间数据 2.其他信息
+ let sheetNames = workbook.SheetNames;
+ // 解析成二维数组
+ let aoa = XLSX.utils.sheet_to_json(workbook.Sheets[sheetNames[0]], {
+ header: 1,
+ });
+ const riverList = aoa.filter(
+ (item) => {
+ console.log(item[8])
+ return item.length >= 30 && item[8] && item[8] != "水体类型"
+ }
+ );
+ // 解析成对象数组
+ const billName = file.name;
+ const billData = utils.toNationalLevelDataObj(riverList);
+ if (!billData || billData.length == 0) {
+ hide()
+ Modal.error({
+ title: "导入失败",
+ content: "找不到数据",
+ });
+ return;
+ }
+ const tasks = [];
+ if (billData.length > 0) {
+ tasks.push(
+ saveWaterFunctionAreaBill({
+ billName: billName,
+ nationalLevelWaterFunctionAreaList: billData,
+ })
+ );
+ }
+ // 上传到服务器
+
+ Promise.all(tasks)
+ .then((res) => {
+ if (res[0].data.code == 0) {
+ Modal.success({
+ title: "导入成功",
+ content: `成功导入${billData.length}条数据`,
+ });
+ this.$refs.functionWater && this.$refs.functionWater.reload();
+ } else {
+ Modal.error({
+ title: "导入失败",
+ content: "数据上传出错",
+ });
+ }
+
+ })
+ .catch(() => {
+ Modal.error({
+ title: "导入失败",
+ content: "数据上传出错",
+ });
+ })
+ .finally(() => {
+ hide();
+ });
+ } catch (error) {
+ hide();
+ Modal.error({
+ title: "导入失败",
+ content: error.message,
+ });
+ }
+ // console.log(billData);
+ };
+ reader.readAsArrayBuffer(file);
+
+ return false;
+ },
+ importFileStation(file) {
+ const hide = this.$message.loading("导入中..", 0);
+
+ let reader = new FileReader();
+ reader.onload = (e) => {
+ try {
+ let data = new Uint8Array(e.target.result);
+ let workbook = XLSX.read(data, {
+ type: "array",
+ });
+ let sheetNames = workbook.SheetNames;
+ // 解析成二维数组
+ let aoa = XLSX.utils.sheet_to_json(workbook.Sheets[sheetNames[0]], {
+ header: 1,
+ });
+ const riverList = aoa.filter(
+ (item) => {
+ return item.length >= 15 && item[0] && item[0] != "序号"
+ }
+ );
+ // 解析成对象数组
+ const billName = file.name;
+ const billData = utils.toRiverStationObjData(riverList);
+ if (!billData || billData.length == 0) {
+ hide()
+ Modal.error({
+ title: "导入失败",
+ content: "找不到数据",
+ });
+ return;
+ }
+ const tasks = [];
+ if (billData.length > 0) {
+ tasks.push(
+ saveRiverStationBill({
+ billName: billName,
+ waterStationWaterFunctionAreaList: billData,
+ })
+ );
+ }
+ // 上传到服务器
+
+ Promise.all(tasks)
+ .then((res) => {
+ if (res[0].data.code == 0) {
+ Modal.success({
+ title: "导入成功",
+ content: `成功导入${billData.length}条数据`,
+ });
+ this.$refs.station && this.$refs.station.reload();
+ } else {
+ Modal.error({
+ title: "导入失败",
+ content: "数据上传出错",
+ });
+ }
+
+ })
+ .catch(() => {
+ Modal.error({
+ title: "导入失败",
+ content: "数据上传出错",
+ });
+ })
+ .finally(() => {
+ hide();
+ });
+ } catch (error) {
+ hide();
+ Modal.error({
+ title: "导入失败",
+ content: error.message,
+ });
+ }
+ // console.log(billData);
+ };
+ reader.readAsArrayBuffer(file);
+
+ return false;
+ },
},
};
diff --git a/src/views/water/river/collect/utils.js b/src/views/water/river/collect/utils.js
index 004cbd5..2760e1f 100644
--- a/src/views/water/river/collect/utils.js
+++ b/src/views/water/river/collect/utils.js
@@ -1,6 +1,7 @@
+import moment from "moment";
+
export default {
toObjData(excelData) {
-
return excelData.map(item => {
const monitorTime = new Date();
monitorTime.setFullYear(item[12]);
@@ -59,5 +60,61 @@ export default {
})
},
+ // 水站均值数据 水功能区
+ toRiverStationObjData(excelData) {
+ return excelData.map(item => {
+ const row = {
+ area: item[1].includes("区") ? item[1] : null,
+ county: item[1].includes("县") ? item[1] : null,
+ watershed: item[2],
+ river: item[3],
+ place: item[4],
+ periodWaterQuality: item[5],
+ waterTemperature: item[6],
+ ph: item[7],
+ dissolvedOxygen: item[8],
+ conductivity: item[9],
+ turbidity: item[10],
+ permanganateIndex: item[11],
+ ammonia: item[12],
+ totalPhosphorus: item[13],
+ totalNitrogen: item[14],
+ mainPollutionIndicators: item[15],
+ remark: item[15],
+ // dissolvedOxygen: item[16],
+ }
+ return row;
+ })
+
+ },
+ // 国家级水功能区上报数据
+ toNationalLevelDataObj(excelData) {
+ return excelData.map(item => {
+ const row = {
+ waterBodyType: item[8],
+ provinceRegionCode: item[0],
+ waterResourcesFirstLevelZoneName: item[10],
+ waterQualityGoal: item[11],
+ dataSources: item[12],
+ sectionName: item[13],
+ samplingTime:item[14]? moment(item[14],"M月D日").valueOf():new Date().getTime(),
+ permanganateIndex: item[15],
+ ammonia: item[15],
+ totalPhosphorus: item[17],
+ ffeWaterFunctionAreaWaterQualityCategory: item[18],
+ lprlCompliantEvaluationConclusion: item[19],
+ ffeCompliantEvaluationConclusion: item[20],
+ ffeMajorOverStandardItemsMultiples: item[21],
+ lprlWaterFunctionAreaWaterQualityCategory: item[22],
+ // lprlCompliantEvaluationConclusion: item[14],
+ lprlMajorOverStandardItemsMultiples: item[23],
+ remark: item[24],
+ systemCode: item[25],
+
+ }
+ return row;
+ })
+
+ },
}
diff --git a/src/views/water/sewage/collect/city-river-bill.vue b/src/views/water/sewage/collect/city-river-bill.vue
new file mode 100644
index 0000000..3e95dfe
--- /dev/null
+++ b/src/views/water/sewage/collect/city-river-bill.vue
@@ -0,0 +1,387 @@
+
+
+
+
+
+
+
+
+
+
+ 市级
+ 县级
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 批量删除
+
+
+
+
+
+
+ {{ text || ' ' }}
+
+
+
+
+
+
+
+
+ {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }}
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+ 查看
+
+
+ 审核
+
+
+ 撤回
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/sewage/collect/city-river.vue b/src/views/water/sewage/collect/city-river.vue
new file mode 100644
index 0000000..0d5cbb0
--- /dev/null
+++ b/src/views/water/sewage/collect/city-river.vue
@@ -0,0 +1,331 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/sewage/collect/colums.js b/src/views/water/sewage/collect/colums.js
new file mode 100644
index 0000000..c6d4379
--- /dev/null
+++ b/src/views/water/sewage/collect/colums.js
@@ -0,0 +1,52 @@
+const tableColumns = [
+ {title: "名称", dataIndex: "name", sorter: true,},
+ {title: "评价结果", dataIndex: "evaluationResults", sorter: true,},
+ {title: "透明度(cm)", dataIndex: "transparency", sorter: true,},
+ {title: "溶解氧 (mg/L)", dataIndex: "dissolvedOxygen", sorter: true,},
+ {title: "氧化还原电位(mV)", dataIndex: "oxidationReductionPotential", sorter: true,},
+ {title: "氨氮(mg/L)", dataIndex: "ammonia", sorter: true,},
+ {title: "备注", dataIndex: "remark", sorter: true,},
+];
+const cityRiverColumns = [
+ {title: "点位名称", dataIndex: "pointName", sorter: true,},
+ {title: "水深(m)", dataIndex: "waterDepth", sorter: true,},
+ {title: "沟宽(m)", dataIndex: "grooveWidth", sorter: true,},
+ {title: "流速(m/s)", dataIndex: "flowRate", sorter: true,},
+ {title: "水温(℃)", dataIndex: "waterTemperature", sorter: true,},
+ {title: "pH", dataIndex: "ph", sorter: true,},
+ {title: "溶解氧", dataIndex: "dissolvedOxygen", sorter: true,},
+ {title: "透明度(cm)", dataIndex: "transparency", sorter: true,},
+ {title: "氧化还原电位(mV)", dataIndex: "oxidationReductionPotential", sorter: true,},
+ {title: "悬浮物", dataIndex: "suspendedMatter", sorter: true,},
+ {title: "总硬度(以CaCO3计)", dataIndex: "totalHardnessCaco3", sorter: true,},
+ {title: "高锰酸盐指数", dataIndex: "permanganateIndex", sorter: true,},
+ {title: "五日生化需氧量", dataIndex: "fiveDayBod", sorter: true,},
+ {title: "化学需氧量", dataIndex: "cod", sorter: true,},
+ {title: "氨氮", dataIndex: "ammonia", sorter: true,},
+ {title: "总氮", dataIndex: "totalNitrogen", sorter: true,},
+ {title: "硝酸盐氮 (mg/L)", dataIndex: "nitrateNitrogen", sorter: true,},
+ {title: "挥发酚", dataIndex: "volatilePhenol", sorter: true,},
+ {title: "氰化物(mg/L)", dataIndex: "cyanide", sorter: true,},
+ {title: "砷(mg/L)", dataIndex: "as", sorter: true,},
+ {title: "汞 (mg/L)", dataIndex: "hg", sorter: true,},
+ {title: "六价铬 (mg/L)", dataIndex: "cr6", sorter: true,},
+ {title: "铅 (mg/L)", dataIndex: "pb", sorter: true,},
+ {title: "镉 (mg/L)", dataIndex: "cd", sorter: true,},
+ {title: "石油类", dataIndex: "petro", sorter: true,},
+ {title: "电导率(µS/cm)", dataIndex: "conductivity", sorter: true,},
+ {title: "铜 (mg/L)", dataIndex: "cu", sorter: true,},
+ {title: "锌 (mg/L)", dataIndex: "zn", sorter: true,},
+ {title: "氟化物(mg/L)", dataIndex: "fluoride", sorter: true,},
+ {title: "硫化物(mg/L)", dataIndex: "s", sorter: true,},
+ {title: "总磷", dataIndex: "totalPhosphorus", sorter: true,},
+ {title: "阴离子表面活性剂(mg/L)", dataIndex: "anSaa", sorter: true,},
+ {title: "硒 (mg/L)", dataIndex: "se", sorter: true,},
+ {title: "粪大肠菌群(个/L)", dataIndex: "fecalColiforms", sorter: true,},
+ {title: "氯化物 (mg/L)", dataIndex: "chloride", sorter: true,},
+ {title: "总铬", dataIndex: "totalCr", sorter: true,},
+ {title: "经度", dataIndex: "longitude", sorter: true,},
+ {title: "纬度", dataIndex: "latitude", sorter: true,},
+ {title: "磷酸盐", dataIndex: "phosphate", sorter: true,},
+ {title: "备注", dataIndex: "remark", sorter: true,},
+]
+export {tableColumns,cityRiverColumns}
diff --git a/src/views/water/sewage/collect/index.vue b/src/views/water/sewage/collect/index.vue
new file mode 100644
index 0000000..8fe1b96
--- /dev/null
+++ b/src/views/water/sewage/collect/index.vue
@@ -0,0 +1,241 @@
+
+
+
+
+
+
+ 黑臭水体导入
+
+
+ 城市内河导入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/sewage/collect/utils.js b/src/views/water/sewage/collect/utils.js
new file mode 100644
index 0000000..6f1df47
--- /dev/null
+++ b/src/views/water/sewage/collect/utils.js
@@ -0,0 +1,73 @@
+export default {
+
+
+ // 黑臭水体
+ toBlackSmellyWaterObjData(excelData,monitorTime){
+ return excelData.map(item=>{
+ const row = {
+ monitorTime,
+ name: item[1],
+ evaluationResults: item[2],
+ transparency: item[3],
+ dissolvedOxygen: item[4],
+ oxidationReductionPotential: item[5],
+ ammonia: item[6],
+ remark: item[7],
+ };
+ return row;
+ })
+ },
+ // 城市内河
+ toCityInnerRiverObjData(excelData,monitorTime){
+ return excelData.map(item=>{
+ const row = {
+ monitorTime,
+ pointName: item[0],
+ waterDepth: item[1],
+ grooveWidth: item[2],
+ flowRate: item[3],
+ flow: item[4],
+ waterTemperature: item[5],
+ ph: item[6],
+ dissolvedOxygen: item[7],
+ transparency: item[8],
+ oxidationReductionPotential: item[9],
+ suspendedMatter: item[10],
+ totalHardnessCaco3: item[11],
+ permanganateIndex: item[12],
+ fiveDayBod: item[13],
+ cod: item[14],
+ ammonia: item[15],
+
+ totalNitrogen: item[16],
+ nitrateNitrogen: item[17],
+ volatilePhenol: item[18],
+ cyanide: item[19],
+ as: item[20],
+ hg: item[21],
+ cr6: item[22],
+ pb: item[23],
+ cd: item[24],
+ petro: item[25],
+ conductivity: item[26],
+ cu: item[27],
+ zn: item[28],
+ fluoride: item[29],
+ s: item[30],
+ totalPhosphorus: item[31],
+ anSaa: item[32],
+ se: item[33],
+ fecalColiforms: item[34],
+ chloride: item[35],
+ totalCr: item[36],
+ longitude: item[37],
+ latitude: item[38],
+ phosphate: item[39],
+ remark: item[40],
+ };
+ return row;
+ })
+ },
+
+
+}
diff --git a/src/views/water/sewage/collect/water-bill.vue b/src/views/water/sewage/collect/water-bill.vue
new file mode 100644
index 0000000..9ee4d32
--- /dev/null
+++ b/src/views/water/sewage/collect/water-bill.vue
@@ -0,0 +1,377 @@
+
+
+
+
+
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 批量删除
+
+
+
+
+
+
+ {{ text || ' ' }}
+
+
+
+
+
+
+
+
+ {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }}
+
+
+
+
+
+
+ 已审核
+ 未审核
+
+
+
+
+
+ 查看
+
+
+ 审核
+
+
+ 撤回
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/sewage/collect/water.vue b/src/views/water/sewage/collect/water.vue
new file mode 100644
index 0000000..fec17c4
--- /dev/null
+++ b/src/views/water/sewage/collect/water.vue
@@ -0,0 +1,330 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+ 删除
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/water/sewage/statistic/average.vue b/src/views/water/sewage/statistic/average.vue
new file mode 100644
index 0000000..3abe54f
--- /dev/null
+++ b/src/views/water/sewage/statistic/average.vue
@@ -0,0 +1,213 @@
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ 查询
+
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/sewage/statistic/base.vue b/src/views/water/sewage/statistic/base.vue
new file mode 100644
index 0000000..a97c692
--- /dev/null
+++ b/src/views/water/sewage/statistic/base.vue
@@ -0,0 +1,477 @@
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+ {{text}}
+ {{text}}
+ {{text}}
+ {{text}}
+ {{text}}
+ {{text}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/sewage/statistic/index.vue b/src/views/water/sewage/statistic/index.vue
new file mode 100644
index 0000000..a7a8b60
--- /dev/null
+++ b/src/views/water/sewage/statistic/index.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/sewage/statistic/source.vue b/src/views/water/sewage/statistic/source.vue
new file mode 100644
index 0000000..e974462
--- /dev/null
+++ b/src/views/water/sewage/statistic/source.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ 查询
+
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/sewage/statistic/year.vue b/src/views/water/sewage/statistic/year.vue
new file mode 100644
index 0000000..2d4b011
--- /dev/null
+++ b/src/views/water/sewage/statistic/year.vue
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ 查询
+
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)"
+ >
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/water-function-area/collect/colums.js b/src/views/water/water-function-area/collect/colums.js
index d801d8d..839f2ea 100644
--- a/src/views/water/water-function-area/collect/colums.js
+++ b/src/views/water/water-function-area/collect/colums.js
@@ -1,128 +1,33 @@
const tableColumns = [
- {title: "点位名称",dataIndex: "place",sorter: true,},
- {title: "'水温(℃)",dataIndex: "waterTemperature",sorter: true,},
- {title: "pH(无量纲)",dataIndex: "ph",sorter: true,},
- {title: "溶解氧",dataIndex: "dissolvedOxygen",sorter: true,},
- {title: "高锰酸盐指数",dataIndex: "permanganateIndex",sorter: true,},
- {title: "化学需氧量",dataIndex: "cod",sorter: true,},
- {title: "五日生化需氧量",dataIndex: "fiveDayBod",sorter: true,},
- {title: "氨氮",dataIndex: "ammonia",sorter: true,},
- {title: "总磷",dataIndex: "totalPhosphorus",sorter: true,},
- {title: "总氮",dataIndex: "totalNitrogen",sorter: true,},
- {title: "铜",dataIndex: "cu",sorter: true,},
- {title: "锌",dataIndex: "zn",sorter: true,},
- {title: "氟化物",dataIndex: "fluoride",sorter: true,},
- {title: "硒",dataIndex: "se",sorter: true,},
- {title: "砷",dataIndex: "as",sorter: true,},
- {title: "汞",dataIndex: "hg",sorter: true,},
- {title: "镉",dataIndex: "cd",sorter: true,},
- {title: "铬(六价)",dataIndex: "cr",sorter: true,},
- {title: "铅",dataIndex: "pb",sorter: true,},
- {title: "氰化物",dataIndex: "cyanide",sorter: true,},
- {title: "挥发酚",dataIndex: "volatilePhenol",sorter: true,},
- {title: "石油类",dataIndex: "petro",sorter: true,},
- {title: "阴离子表面活性剂",dataIndex: "anionicSurfactant",sorter: true,},
- {title: "硫化物",dataIndex: "sulfide",sorter: true,},
- {title: "粪大肠菌群(MPN/L)",dataIndex: "fecalColiforms",sorter: true,},
- {title: "硫酸盐",dataIndex: "sulfate",sorter: true,},
- {title: "氯化物",dataIndex: "chloride",sorter: true,},
- {title: "硝酸盐氮",dataIndex: "nitrateNitrogen",sorter: true,},
- {title: "铁",dataIndex: "fe",sorter: true,},
- {title: "锰",dataIndex: "mn",sorter: true,},
- {title: "三氯甲烷",dataIndex: "chcl3",sorter: true,},
- {title: "四氯化碳",dataIndex: "ccl4",sorter: true,},
- {title: "三溴甲烷",dataIndex: "chbr3",sorter: true,},
- {title: "二氯甲烷",dataIndex: "ch2cl2",sorter: true,},
- {title: "1,2-二氯乙烷",dataIndex: "c2h4cl2",sorter: true,},
- {title: "环氧氯丙烷",dataIndex: "c3h5clO",sorter: true,},
- {title: "氯乙烯",dataIndex: "c2h3cl",sorter: true,},
- {title: "1,1-二氯乙烯",dataIndex: "c2h2cl211",sorter: true,},
- {title: "1,2-二氯乙烯",dataIndex: "c2h2cl212",sorter: true,},
- {title: "三氯乙烯",dataIndex: "c2hcl3",sorter: true,},
- {title: "四氯乙烯",dataIndex: "c2cl4",sorter: true,},
- {title: "氯丁二烯",dataIndex: "c4h5cl",sorter: true,},
- {title: "六氯丁二烯",dataIndex: "c4cl6",sorter: true,},
- {title: "苯乙烯",dataIndex: "c8h8",sorter: true,},
- {title: "甲醛",dataIndex: "ch2o",sorter: true,},
- {title: "乙醛",dataIndex: "c2h4o",sorter: true,},
- {title: "丙烯醛",dataIndex: "c3h4o",sorter: true,},
- {title: "三氯乙醛",dataIndex: "c2hcl3o",sorter: true,},
- {title: "苯",dataIndex: "c6h6",sorter: true,},
- {title: "甲苯",dataIndex: "c7h8",sorter: true,},
- {title: "乙苯",dataIndex: "c8h10Ethylbenzene",sorter: true,},
- {title: "二甲苯",dataIndex: "c8h10Dimethylbenzene",sorter: true,},
- {title: "异丙苯",dataIndex: "c9h12",sorter: true,},
- {title: "氯苯",dataIndex: "c6h5cl",sorter: true,},
- {title: "1,2-二氯苯",dataIndex: "c6h4cl212",sorter: true,},
- {title: "1,4-二氯苯",dataIndex: "c6h4cl214",sorter: true,},
- {title: "三氯苯",dataIndex: "c6h3cl3",sorter: true,},
- {title: "四氯苯",dataIndex: "c6h2cl4",sorter: true,},
- {title: "六氯苯",dataIndex: "c6cl6",sorter: true,},
- {title: "硝基苯",dataIndex: "c6h5no2",sorter: true,},
- {title: "二硝基苯",dataIndex: "c6h4n2o4",sorter: true,},
- {title: "2,4-二硝基甲苯",dataIndex: "c7h6n2o4",sorter: true,},
- {title: "2,4,6-三硝基甲苯",dataIndex: "c7h5o6n3",sorter: true,},
- {title: "硝基氯苯",dataIndex: "c6h4clno2",sorter: true,},
- {title: "2,4-二硝基氯苯 ",dataIndex: "c6h3cln2o4",sorter: true,},
- {title: "2,4-二氯苯酚",dataIndex: "c6h4cl2o",sorter: true,},
- {title: "2,4,6-三氯苯酚",dataIndex: "c6h3cl3o",sorter: true,},
- {title: "五氯酚",dataIndex: "c6hcl5o",sorter: true,},
- {title: "苯胺",dataIndex: "c6h7n",sorter: true,},
- {title: "联苯胺",dataIndex: "c6h4nh22",sorter: true,},
- {title: "丙烯酰胺",dataIndex: "c3h5no",sorter: true,},
- {title: "丙烯腈",dataIndex: "c3h3n",sorter: true,},
- {title: "邻苯二甲酸二丁酯",dataIndex: "c16h22o4",sorter: true,},
- {title: "邻苯二甲酸二(2-乙基已基)酯",dataIndex: "c16h35o4p",sorter: true,},
- {title: "水合肼",dataIndex: "n2h4h2o",sorter: true,},
- {title: "四乙基铅",dataIndex: "c8h20pd",sorter: true,},
- {title: "吡啶",dataIndex: "c5h5n",sorter: true,},
- {title: "松节油",dataIndex: "turpentine",sorter: true,},
- {title: "苦味酸",dataIndex: "c6h3n3o7",sorter: true,},
- {title: "丁基黄原酸",dataIndex: "butylXanthogenAcid",sorter: true,},
- {title: "活性氯",dataIndex: "activeChlorine",sorter: true,},
- {title: "滴滴涕",dataIndex: "c14h9cl5",sorter: true,},
- {title: "林丹",dataIndex: "c6h6cl6",sorter: true,},
- {title: "环氧七氯",dataIndex: "c10h5cl7O",sorter: true,},
- {title: "对硫磷",dataIndex: "c10h14no5ps",sorter: true,},
- {title: "甲基对硫磷",dataIndex: "c8h10o5nps",sorter: true,},
- {title: "马拉硫磷",dataIndex: "c10h19o6ps2",sorter: true,},
- {title: "乐果",dataIndex: "c5h12no3ps2",sorter: true,},
- {title: "敌敌畏",dataIndex: "c4h7cl2o4p",sorter: true,},
- {title: "敌百虫",dataIndex: "c4h8cl3o4p",sorter: true,},
- {title: "内吸磷",dataIndex: "c8h19o3ps2",sorter: true,},
- {title: "百菌清",dataIndex: "c8cl4n2",sorter: true,},
- {title: "甲萘威",dataIndex: "c12h11no2",sorter: true,},
- {title: "溴氰菊酯",dataIndex: "c22h19br2no3",sorter: true,},
- {title: "阿特拉津",dataIndex: "c8h14cln5",sorter: true,},
- {title: "苯并(a)芘 ",dataIndex: "c20h12",sorter: true,},
- {title: "甲基汞",dataIndex: "ch3hg",sorter: true,},
- {title: "多氯联苯",dataIndex: "c12h10Xclx",sorter: true,},
- {title: "微囊藻毒素-LR",dataIndex: "微囊藻毒素-LR",sorter: true,},
- {title: "黄磷",dataIndex: "p4",sorter: true,},
- {title: "钼",dataIndex: "mo",sorter: true,},
- {title: "钴",dataIndex: "co",sorter: true,},
- {title: "铍",dataIndex: "be",sorter: true,},
- {title: "硼",dataIndex: "b",sorter: true,},
- {title: "锑",dataIndex: "sb",sorter: true,},
- {title: "镍",dataIndex: "ni",sorter: true,},
- {title: "钡",dataIndex: "ba",sorter: true,},
- {title: "钒",dataIndex: "v",sorter: true,},
- {title: "钛",dataIndex: "ti",sorter: true,},
- {title: "铊",dataIndex: "tl",sorter: true,},
+ {title: "水体类型", dataIndex: "waterBodyType", sorter: true,},
+ {title: "水资源一级区名称", dataIndex: "waterResourcesFirstLevelZoneName", sorter: true,},
+ {title: "水质目标", dataIndex: "waterQualityGoal", sorter: true,},
+ {title: "数据来源", dataIndex: "dataSources", sorter: true,},
+ {title: "断面名称", dataIndex: "sectionName", sorter: true,},
+ // {title: "采样时间", dataIndex: "samplingTime", sorter: true,},
+ {title: "溶解氧", dataIndex: "dissolvedOxygen", sorter: true,},
+ {title: "高锰酸盐指数", dataIndex: "permanganateIndex", sorter: true,},
+ {title: "化学需氧量", dataIndex: "cod", sorter: true,},
+ {title: "五日生化需氧量", dataIndex: "fiveDayBod", sorter: true,},
+ {title: "氨氮", dataIndex: "ammonia", sorter: true,},
+ {title: "总磷", dataIndex: "totalPhosphorus", sorter: true,},
+ {
+ title: "全因子评价", children: [
+ {title: "水功能区水质类别", dataIndex: "ffeWaterFunctionAreaWaterQualityCategory"},
+ {title: "达标评价结论", dataIndex: "ffeCompliantEvaluationConclusion"},
+ {title: "主要超标项目及其超标倍数", dataIndex: "ffeMajorOverStandardItemsMultiples"},
+ ]
+ },
+ {
+ title: "水功能区限值纳污红线主要控制项目达标评价", children: [
+ {title: "水功能区水质类别", dataIndex: "lprlWaterFunctionAreaWaterQualityCategory"},
+ {title: "达标评价结论", dataIndex: "lprlCompliantEvaluationConclusion"},
+ {title: "主要超标项目及其超标倍数", dataIndex: "lprlMajorOverStandardItemsMultiples"},
+ ]
+ },
+ {title: "系统编码", dataIndex: "systemCode", sorter: true,},
+ {title: "备注", dataIndex: "remark", sorter: true,},
- {title: "六价铬",dataIndex: "cr6",sorter: true,},
- {title: "邻二氯苯",dataIndex: "odcb",sorter: true,},
- {title: "对二氯苯",dataIndex: "pdcp",sorter: true,},
+];
- {title: "苯并(a)芘",dataIndex: "bap",sorter: true,},
- {title: "苯并(b)荧蒽",dataIndex: "bbfa",sorter: true,},
- {title: "磷酸盐",dataIndex: "phosphate",sorter: true,},
- {title: "急性毒性",dataIndex: "acuteToxicity",sorter: true,},
- {title: "余氯",dataIndex: "residualChlorine",sorter: true,},
- {title: "六六六",dataIndex: "c6h6cl6666",sorter: true,},
- {title: "2,4,6-三氯酚",dataIndex: "c6h3cl3o246",sorter: true,},
-
-
- ];
-
- export {tableColumns}
\ No newline at end of file
+export {tableColumns}
diff --git a/src/views/water/water-function-area/collect/index.vue b/src/views/water/water-function-area/collect/index.vue
index a0c3b90..18d78c7 100644
--- a/src/views/water/water-function-area/collect/index.vue
+++ b/src/views/water/water-function-area/collect/index.vue
@@ -42,7 +42,7 @@ import { Modal } from "ant-design-vue";
import WaterBill from "./water-bill.vue";
import { saveWaterFunctionAreaBill } from "@/api/ecology/water-function-area";
export default {
- name: "DrinkWaterCollectIndex",
+ name: "RiverFunctionCollectIndex",
components: {
WaterBill,
},
@@ -348,4 +348,4 @@ export default {
\ No newline at end of file
+
diff --git a/src/views/water/water-function-area/collect/utils.js b/src/views/water/water-function-area/collect/utils.js
index 7189b25..0304802 100644
--- a/src/views/water/water-function-area/collect/utils.js
+++ b/src/views/water/water-function-area/collect/utils.js
@@ -1,57 +1,3 @@
-import moment from "moment";
export default {
- // 水站均值数据 水功能区
- toStationAvgObjData(excelData) {
- return excelData.map(item => {
- const row = {
- area: item[1].includes("区") ? item[1] : null,
- county: !item[1].includes("县") ? item[1] : null,
- watershed: item[2],
- place: item[3],
- periodWaterQuality: item[4],
- waterTemperature: item[5],
- ph: item[6],
- dissolvedOxygen: item[7],
- conductivity: item[8],
- turbidity: item[9],
- permanganateIndex: item[10],
- ammonia: item[11],
- totalPhosphorus: item[12],
- totalNitrogen: item[13],
- mainPollutionIndicators: item[14],
- remark: item[15],
- // dissolvedOxygen: item[16],
- }
- return row;
- })
- },
- // 国家级水功能区上报数据
- toNationalLevelDataObj(excelData) {
- return excelData.map(item => {
- const row = {
- waterBodyType: item[0],
- provinceRegionCode: item[1],
- waterResourcesFirstLevelZoneName: item[2],
- dataSources: item[3],
- sectionName: item[4],
- samplingTime: moment(item[5],"M月D日").valueOf(),
- permanganateIndex: item[6],
- ammonia: item[7],
- totalPhosphorus: item[8],
- ffeWaterFunctionAreaWaterQualityCategory: item[9],
- lprlCompliantEvaluationConclusion: item[10],
- ffeCompliantEvaluationConclusion: item[11],
- ffeMajorOverStandardItemsMultiples: item[12],
- lprlWaterFunctionAreaWaterQualityCategory: item[13],
- // lprlCompliantEvaluationConclusion: item[14],
- lprlMajorOverStandardItemsMultiples: item[15],
- remark: item[16],
- systemCode: item[17],
-
- }
- return row;
- })
-
- },
}
diff --git a/src/views/water/water-function-area/collect/water-bill.vue b/src/views/water/water-function-area/collect/water-bill.vue
index 854936f..efaae11 100644
--- a/src/views/water/water-function-area/collect/water-bill.vue
+++ b/src/views/water/water-function-area/collect/water-bill.vue
@@ -1,7 +1,7 @@