From 1d73a0440a135c321de53940f8800973eb9501ab Mon Sep 17 00:00:00 2001
From: shixiaoman <531268472@qq.com>
Date: Mon, 22 Nov 2021 22:22:25 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B1=9F=E6=B2=B3=E6=B0=B4=E7=BB=9F=E8=AE=A1?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/ecology/water/river-api-relate.js | 6 +-
src/api/ecology/water/river-autonomous.js | 6 +-
src/api/ecology/water/river-plcae.js | 6 +-
src/api/ecology/water/river-water.js | 4 +-
.../water/river-station/statistic/average.vue | 258 ------
.../water/river-station/statistic/base.vue | 570 --------------
.../water/river-station/statistic/compare.vue | 508 ------------
.../water/river-station/statistic/index.vue | 56 --
.../river-station/statistic/site-day-avg.vue | 654 ++++------------
.../water/river-station/statistic/site.vue | 738 +++++-------------
src/views/water/river/collect/index.vue | 26 -
src/views/water/river/collect/utils.js | 9 +-
src/views/water/river/dict/api-relate.vue | 3 +
src/views/water/river/dict/autonomous.vue | 3 +
src/views/water/river/statistic/base.vue | 408 +++-------
src/views/water/river/statistic/index.vue | 16 +-
.../water-function-area/statistic/auto.vue | 453 ++++-------
.../water-function-area/statistic/base.vue | 570 --------------
.../water-function-area/statistic/colums.js | 53 +-
.../water-function-area/statistic/index.vue | 40 -
.../statistic/national.vue | 508 +++++-------
21 files changed, 920 insertions(+), 3975 deletions(-)
delete mode 100644 src/views/water/river-station/statistic/average.vue
delete mode 100644 src/views/water/river-station/statistic/base.vue
delete mode 100644 src/views/water/river-station/statistic/compare.vue
delete mode 100644 src/views/water/river-station/statistic/index.vue
delete mode 100644 src/views/water/water-function-area/statistic/base.vue
delete mode 100644 src/views/water/water-function-area/statistic/index.vue
diff --git a/src/api/ecology/water/river-api-relate.js b/src/api/ecology/water/river-api-relate.js
index c557ebd..d6a9d74 100644
--- a/src/api/ecology/water/river-api-relate.js
+++ b/src/api/ecology/water/river-api-relate.js
@@ -29,6 +29,9 @@ const copyBatchAqiRelate = function (data){
const getColumnOptions = function(column){
return axios.get("waterFunctionArea/nationalLevelWaterFunctionAreaPoint/options",{params:{column}})
}
+const listInfo = function(){
+ return axios.post("/waterFunctionArea/nationalLevelWaterFunctionAreaPoint/listInfo",{})
+}
export {
listAllUrl,
saveAqiRelate,
@@ -36,6 +39,7 @@ export {
removeBatchAqiRelate,
removeAqiRelate,
copyBatchAqiRelate,
- getColumnOptions
+ getColumnOptions,
+ listInfo
}
diff --git a/src/api/ecology/water/river-autonomous.js b/src/api/ecology/water/river-autonomous.js
index 62f5e9d..4719d9a 100644
--- a/src/api/ecology/water/river-autonomous.js
+++ b/src/api/ecology/water/river-autonomous.js
@@ -28,6 +28,9 @@ const copyBatchStandard = function (data){
const getColumnOptions = function(column){
return axios.get("waterFunctionArea/autonomousWaterFunctionAreaPoint/options",{params:{column}})
}
+const listInfo = function(){
+ return axios.post("/waterFunctionArea/autonomousWaterFunctionAreaPoint/listInfo",{})
+}
export {
listAllUrl,
saveStandard,
@@ -35,6 +38,7 @@ export {
removeBatchStandard,
removeStandard,
copyBatchStandard,
- getColumnOptions
+ getColumnOptions,
+ listInfo
}
diff --git a/src/api/ecology/water/river-plcae.js b/src/api/ecology/water/river-plcae.js
index 7cd615a..89bce65 100644
--- a/src/api/ecology/water/river-plcae.js
+++ b/src/api/ecology/water/river-plcae.js
@@ -27,6 +27,9 @@ const copyBatchPlace = function (data){
const getColumnOptions = function(column){
return axios.get("/waterFunctionArea/surfaceWaterPoint/options",{params:{column}})
}
+const listInfo = function(){
+ return axios.post("/waterFunctionArea/surfaceWaterPoint/listInfo",{})
+}
export {
listAllUrl,
savePlace,
@@ -34,6 +37,7 @@ export {
removeBatchPlace,
removePlace,
copyBatchPlace,
- getColumnOptions
+ getColumnOptions,
+ listInfo
}
diff --git a/src/api/ecology/water/river-water.js b/src/api/ecology/water/river-water.js
index 59436ed..4386723 100644
--- a/src/api/ecology/water/river-water.js
+++ b/src/api/ecology/water/river-water.js
@@ -28,8 +28,8 @@ const copyBatchPlace = function (data){
const getColumnOptions = function(column){
return axios.get("/waterFunctionArea/WaterStationPoint/options",{params:{column}})
}
-const listInfo = function(data){
- return axios.get("/waterFunctionArea/WaterStationPoint",{params:data})
+const listInfo = function(){
+ return axios.post("/waterFunctionArea/autonomousWaterFunctionAreaPoint/listInfo",{})
}
export {
listInfo,
diff --git a/src/views/water/river-station/statistic/average.vue b/src/views/water/river-station/statistic/average.vue
deleted file mode 100644
index d482e65..0000000
--- a/src/views/water/river-station/statistic/average.vue
+++ /dev/null
@@ -1,258 +0,0 @@
-
-
-
(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
deleted file mode 100644
index 39bfef4..0000000
--- a/src/views/water/river-station/statistic/base.vue
+++ /dev/null
@@ -1,570 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{ 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
deleted file mode 100644
index 43bbc77..0000000
--- a/src/views/water/river-station/statistic/compare.vue
+++ /dev/null
@@ -1,508 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
- 导出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
deleted file mode 100644
index 7b7f135..0000000
--- a/src/views/water/river-station/statistic/index.vue
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/water/river-station/statistic/site-day-avg.vue b/src/views/water/river-station/statistic/site-day-avg.vue
index 43bbc77..c324d69 100644
--- a/src/views/water/river-station/statistic/site-day-avg.vue
+++ b/src/views/water/river-station/statistic/site-day-avg.vue
@@ -1,508 +1,188 @@
+
-
-
-
-
+
+
+
+
+ {{ item.sectionName }}
+
- -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
- 导出Excel
-
-
-
-
-
- (data = d.data)"
- >
-
-
-
-
-
-
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
+
+
+
(data = d.data)">
+
+
+
-
\ No newline at end of file
+
diff --git a/src/views/water/river-station/statistic/site.vue b/src/views/water/river-station/statistic/site.vue
index 39bfef4..69094bc 100644
--- a/src/views/water/river-station/statistic/site.vue
+++ b/src/views/water/river-station/statistic/site.vue
@@ -1,57 +1,36 @@
+
-
+
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
- {{ item.label }}
-
-
-
+
+
+ {{ item.sectionName }}
+
+
+
+
+
+
+
+
+
+ 上半月
+ 下半月
+ 整月
+
+
@@ -64,24 +43,12 @@
- (data = d.data)"
- >
-
- {{text}}
- {{text}}
- {{text}}
- {{text}}
- {{text}}
- {{text}}
-
+ (data = d.data)">
+
+
+ (data = d.data)">
@@ -89,482 +56,175 @@
\ 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 c84ce44..3b73c77 100644
--- a/src/views/water/river/collect/index.vue
+++ b/src/views/water/river/collect/index.vue
@@ -27,23 +27,6 @@
-
-
@@ -147,15 +130,6 @@
if (res.data.code == 0) {
console.log(res.data.data)
this.visibleWater = true;
- // this.form = res.data.data.map(item => {
- // return {
- // riverName: item.riverName,
- // stationName: item.stationName,
- // system:item.system,
- // waterStationPointId:item.waterStationPointId,
- // waterTarget:item.waterTarget
- // }
- // })
res.data.data.forEach(e => {
this.form.push(e);
});
diff --git a/src/views/water/river/collect/utils.js b/src/views/water/river/collect/utils.js
index 123ef50..95d4371 100644
--- a/src/views/water/river/collect/utils.js
+++ b/src/views/water/river/collect/utils.js
@@ -114,6 +114,7 @@ export default {
},
// 国家级水功能区上报数据
toNationalLevelDataObj(excelData) {
+ var dataTime;
return excelData.map(item => {
let date = new Date();
let year = date.getFullYear(); // 年
@@ -123,7 +124,9 @@ export default {
time = item[14].replace('月','-').replace('日','').trim();
samplingTime = year+"-"+time;
}
-
+ if(samplingTime != ''){
+ dataTime = samplingTime;
+ }
const row = {
waterSystem:item[1],
riverLakeLibrary:item[2],
@@ -138,7 +141,7 @@ export default {
waterQualityGoal:item[11],
dataSources:item[12],
sectionName:item[13],
- samplingTime:samplingTime,
+ samplingTime:samplingTime==''?dataTime:samplingTime,
wTemp:item[15],
ph:item[16],
dissolvedOxygen:item[17],
@@ -192,7 +195,7 @@ export default {
watershed:item[2],
river:item[3],
sectionName:item[4],
- monitorTime:item[5],
+ monitorTime:item[5]==null || item[5]==''?new Date():item[5],
place:item[6],
periodWaterQuality:item[7],
waterTemperature:item[8],
diff --git a/src/views/water/river/dict/api-relate.vue b/src/views/water/river/dict/api-relate.vue
index b5898b7..164be78 100644
--- a/src/views/water/river/dict/api-relate.vue
+++ b/src/views/water/river/dict/api-relate.vue
@@ -306,6 +306,9 @@ export default {
loading: false,
rules: {
year: [{required: true, message: '请输入年份'}],
+ waterQualityGoal:[{
+ required:true,message: "请输入考核目标",
+ }]
},
yearOptions: [],
showNYear:false,
diff --git a/src/views/water/river/dict/autonomous.vue b/src/views/water/river/dict/autonomous.vue
index 61a699f..6a63951 100644
--- a/src/views/water/river/dict/autonomous.vue
+++ b/src/views/water/river/dict/autonomous.vue
@@ -308,6 +308,9 @@ export default {
loading: false,
rules: {
year: [{required: true, message: '请输入年份'}],
+ waterQualityGoal:[{
+ required:true,message: "请输入考核目标",
+ }]
},
yearOptions: [],
showNYear:false,
diff --git a/src/views/water/river/statistic/base.vue b/src/views/water/river/statistic/base.vue
index 9c3c336..11fb4c0 100644
--- a/src/views/water/river/statistic/base.vue
+++ b/src/views/water/river/statistic/base.vue
@@ -1,300 +1,142 @@
+
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
- {{ item.label }}
-
-
-
+
+
+
+
+
+
+
+ {{ item.sectionName }}
+
+
+
+
+
+
+
+
+
-
- 查询
- 重置
- 导出Excel
-
-
-
- (data = d.data)"
- :init-load="false"
- >
-
-
-
-
-
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
+
+
+
+
+ (data = d.data)">
+
+
+
+
\ No newline at end of file
diff --git a/src/views/water/water-function-area/statistic/colums.js b/src/views/water/water-function-area/statistic/colums.js
index 094a206..9dce1ac 100644
--- a/src/views/water/water-function-area/statistic/colums.js
+++ b/src/views/water/water-function-area/statistic/colums.js
@@ -4,24 +4,53 @@ const tableColumns = [
{title: "水质目标", dataIndex: "waterQualityGoal", sorter: true,},
{title: "数据来源", dataIndex: "dataSources", sorter: true,},
{title: "断面名称", dataIndex: "sectionName", sorter: true,},
- // {title: "采样时间", dataIndex: "samplingTime", sorter: true,},
+ {title: "水温", dataIndex: "wTemp", 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: "ffeWaterFunctionAreaWaterQualityCategory"},
- {title: "达标评价结论", dataIndex: "ffeCompliantEvaluationConclusion"},
- {title: "主要超标项目及其超标倍数", dataIndex: "ffeMajorOverStandardItemsMultiples"},
-
- {title: "水功能区水质类别", dataIndex: "lprlWaterFunctionAreaWaterQualityCategory"},
- {title: "达标评价结论", dataIndex: "lprlCompliantEvaluationConclusion"},
- {title: "主要超标项目及其超标倍数", dataIndex: "lprlMajorOverStandardItemsMultiples"},
+ {title: "铜", dataIndex: "cu", sorter: true,},
+ {title: "锌", dataIndex: "zn", sorter: true,},
+ {title: "氟化物", dataIndex: "f", sorter: true,},
+ {title: "硒", dataIndex: "se", sorter: true,},
+ {title: "砷", dataIndex: "as", sorter: true,},
+ {title: "汞", dataIndex: "hg", sorter: true,},
+ {title: "镉", dataIndex: "cd", sorter: true,},
+ {title: "六价铬", dataIndex: "cr6", sorter: true,},
+ {title: "铅", dataIndex: "pb", sorter: true,},
+ {title: "氰化物", dataIndex: "cyanide", sorter: true,},
+ {title: "挥发酚", dataIndex: "vPhen", sorter: true,},
+ {title: "石油类", dataIndex: "oils", sorter: true,},
+ {title: "阴离子表面活性剂", dataIndex: "anSaa", sorter: true,},
+ {title: "硫化物", dataIndex: "s", sorter: true,},
+ {title: "粪大肠菌群", dataIndex: "coloOrg", sorter: true,},
+ {title: "硫酸盐", dataIndex: "so4", sorter: true,},
+ {title: "氯化物", dataIndex: "cl", sorter: true,},
+ {title: "硝酸盐氮", dataIndex: "nitrateNitrogen", sorter: true,},
+ {title: "铁", dataIndex: "fe", sorter: true,},
+ {title: "锰", dataIndex: "mn", sorter: true,},
+ {title: "总氮", dataIndex: "nTotal", sorter: true,},
+ {title: "透明度", dataIndex: "transp", sorter: true,},
+ {title: "叶绿素", dataIndex: "chla", 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,},
-
-];
+
+ ];
export {tableColumns}
diff --git a/src/views/water/water-function-area/statistic/index.vue b/src/views/water/water-function-area/statistic/index.vue
deleted file mode 100644
index f04a754..0000000
--- a/src/views/water/water-function-area/statistic/index.vue
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/water/water-function-area/statistic/national.vue b/src/views/water/water-function-area/statistic/national.vue
index 5a827a1..6f1bc0c 100644
--- a/src/views/water/water-function-area/statistic/national.vue
+++ b/src/views/water/water-function-area/statistic/national.vue
@@ -1,148 +1,38 @@
-
+
-
+
-
+
+
+ {{ item.sectionName }}
+
+
+
+
+
+
+
+
+
+
查询
重置
+ 导出Excel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
- 删除
-
-
-
-
-
- 修改
-
- 删除
-
-
-
+ (data = d.data)">
@@ -150,204 +40,184 @@