From bff3daa644d99974d0504277e8bcd497fcf66fea Mon Sep 17 00:00:00 2001
From: shixiaoman <531268472@qq.com>
Date: Thu, 2 Dec 2021 22:03:06 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B1=9F=E6=B2=B3=E6=A8=A1=E5=9D=97=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/ecology/river-statis.js | 13 +-
src/api/ecology/river.js | 4 +-
src/views/water/river/collect/colums.js | 95 ++++-
src/views/water/river/collect/utils.js | 16 +-
src/views/water/river/statistic/base.vue | 344 ++++++++++++++----
.../statistic/auto-standard.vue | 210 +++++++++--
.../statistic/auto-yoy.vue | 22 +-
.../water-function-area/statistic/auto.vue | 22 +-
.../statistic/national-standard.vue | 28 +-
.../statistic/national-yoy.vue | 22 +-
.../statistic/national.vue | 22 +-
11 files changed, 667 insertions(+), 131 deletions(-)
diff --git a/src/api/ecology/river-statis.js b/src/api/ecology/river-statis.js
index 3dcc4c0..8f3c0e9 100644
--- a/src/api/ecology/river-statis.js
+++ b/src/api/ecology/river-statis.js
@@ -41,6 +41,15 @@ const listAvgCompositeIndex = function (data) {
return axios.post("/waterFunctionArea/riverStatic/avgCompositeIndex",data)
}
+//单月水质综合指数统计
+const listAutoStandard = function (data) {
+ return axios.post("/waterFunctionArea/riverStatic/autoStandard",data)
+}
+
+const listNationalStandard = function (data) {
+ return axios.post("/waterFunctionArea/riverStatic/nationalStandard",data)
+}
+
@@ -58,5 +67,7 @@ export {
listMonthCompositeIndex,
listTargetInfo,
listAvgCompositeIndex,
- listAvgWaterQualitySandard
+ listAvgWaterQualitySandard,
+ listAutoStandard,
+ listNationalStandard
}
diff --git a/src/api/ecology/river.js b/src/api/ecology/river.js
index 3bccadf..3bf53ac 100644
--- a/src/api/ecology/river.js
+++ b/src/api/ecology/river.js
@@ -34,8 +34,8 @@ const getRiverBill = function (id) {
}
// -------------------------数据---------------------
const pageRiverUrl = '/surfaceWaterSection/surfaceWaterSection/page';
-const listAllRiver = function (params) {
- return axios.get("/surfaceWaterSection/surfaceWaterSection",{params})
+const listAllRiver = function (data) {
+ return axios.post("/surfaceWaterSection/surfaceWaterSection/list",data)
}
// 添加
const saveRiver = function (data) {
diff --git a/src/views/water/river/collect/colums.js b/src/views/water/river/collect/colums.js
index 19365bd..3d368c9 100644
--- a/src/views/water/river/collect/colums.js
+++ b/src/views/water/river/collect/colums.js
@@ -226,6 +226,99 @@ const tableColumns = [{
},
];
+const tableColumnsBase = [{
+ title: "断面编码",
+ dataIndex: "sectionCode",
+ sorter: true,
+},
+{
+ title: "断面名称",
+ dataIndex: "sectionName",
+ sorter: true,
+},
+{
+ title: "考核省份",
+ dataIndex: "evaluationProvince",
+ sorter: true,
+},
+{
+ title: "断面类型",
+ dataIndex: "sectionType",
+ sorter: true,
+},
+{
+ title: "断面属性",
+ dataIndex: "sectionAttributes",
+ sorter: true,
+},
+{
+ title: "流域",
+ dataIndex: "watershed",
+ sorter: true,
+},
+{
+ title: "水系",
+ dataIndex: "waterSystem",
+ sorter: true,
+},
+// {title: "监测时间",dataIndex: "monitorTime",sorter: true,},
+{
+ title: "所在水体",
+ dataIndex: "waterBody",
+ sorter: true,
+},
+{
+ title: "汇入水体 ",
+ dataIndex: "intoWaterBody",
+ sorter: true,
+},
+{
+ title: "河流级别",
+ dataIndex: "riverLevel",
+ sorter: true,
+},
+{
+ title: "监测年份",
+ dataIndex: "monitoringYear",
+ sorter: true,
+},
+{
+ title: "监测月份",
+ dataIndex: "monitoringMonth",
+ sorter: true,
+},
+{
+ title: "水质类别",
+ dataIndex: "waterQualityCategory",
+ sorter: true,
+},
+{
+ title: "电导率(ms/m)",
+ dataIndex: "conductivity",
+ sorter: true,
+},
+{
+ title: "水温(℃)",
+ dataIndex: "waterTemperature",
+ sorter: true,
+},
+{
+ title: "透明度(cm)",
+ dataIndex: "transparency",
+ sorter: true,
+},
+{
+ title: "盐度(‰)",
+ dataIndex: "salinity",
+ sorter: true,
+},
+{
+ title: "T-N(mg/L)",
+ dataIndex: "tN",
+ sorter: true,
+},
+];
+
export {
- tableColumns
+ tableColumns,tableColumnsBase
}
diff --git a/src/views/water/river/collect/utils.js b/src/views/water/river/collect/utils.js
index 959149d..79e49e5 100644
--- a/src/views/water/river/collect/utils.js
+++ b/src/views/water/river/collect/utils.js
@@ -3,11 +3,19 @@
export default {
toObjData(excelData) {
return excelData.map(item => {
- const monitorTime = new Date();
- monitorTime.setFullYear(item[12]);
- monitorTime.setMonth(item[13] - 1);
+ // const monitorTime = new Date();
+ // monitorTime.setFullYear();
+ // monitorTime.setMonth();
+ var flag;
+ if(item[13].length == 1){
+ flag="-0"
+ }else{
+ flag="-"
+ }
+ var monitorTime = item[12]+flag+item[13];
+ console.log(monitorTime);
const row = {
- monitorTime: monitorTime.getTime(),
+ monitorTime: monitorTime,
sectionCode: item[0],
sectionName: item[1],
province: item[2],
diff --git a/src/views/water/river/statistic/base.vue b/src/views/water/river/statistic/base.vue
index 6cd597b..a910b9d 100644
--- a/src/views/water/river/statistic/base.vue
+++ b/src/views/water/river/statistic/base.vue
@@ -30,53 +30,50 @@
-->
-
-
-
-
-
-
-
-
-
-
-
- {{ item.sectionName }}
-
-
-
-
-
- {{ item }}
-
-
-
-
-
- {{ item }}
-
-
-
-
-
-
- {{ item }}
-
-
-
-
+
-
- 查询
- 重置
- 导出Excel
-
-
+
+
+
+
+
+
+
+
+
+ {{ item.sectionName }}
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出Excel
+
+
- (data = d.data)">
@@ -87,7 +84,8 @@