diff --git a/public/template/水功能区-自治区级水站月均值数据表.xls b/public/template/水功能区-自治区级水站月均值数据表.xls index 803e610..4e7bf4e 100644 Binary files a/public/template/水功能区-自治区级水站月均值数据表.xls and b/public/template/水功能区-自治区级水站月均值数据表.xls differ diff --git a/public/template/水站-自治区级水站均值数据报表.xlsx b/public/template/水站-自治区级水站均值数据报表.xlsx index fcdec4d..5b730a0 100644 Binary files a/public/template/水站-自治区级水站均值数据报表.xlsx and b/public/template/水站-自治区级水站均值数据报表.xlsx differ 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 54e77f9..0784e2d 100644 --- a/src/views/water/river-station/statistic/site-day-avg.vue +++ b/src/views/water/river-station/statistic/site-day-avg.vue @@ -7,8 +7,8 @@ :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> - - {{ item.sectionName }} + + {{ item.stationName }} @@ -36,10 +36,10 @@ - - - + + + @@ -71,62 +71,217 @@ selection: [], // tableColumns, // 表格列配置 - columns: [ - { - title: '所在河流名称', + columns: [{ + title: ' ', dataIndex: 'riverName', key: 'riverName', + align:'center', + children: [{ + title: '所在河流名称', + dataIndex: 'riverName', + key: 'riverName', + children: [{ + title: '一', + dataIndex: 'riverName', + align: 'center', + }], + }] }, { - title: '自动站名称', - dataIndex: 'stationName', - key: 'stationName', + title: ' ', + dataIndex: '', + key: '', + children: [{ + title: '自动站名称', + dataIndex: 'stationName', + align:'center', + key: 'stationName', + // children: [{ + // title: '《地表水环境质量标准》一类水质标准', + // children: [{ + // title: '《地表水环境质量标准》二类水质标准', + // children: [{ + // title: '《地表水环境质量标准》三类水质标准', + // children: [{ + // title: '《地表水环境质量标准》四类水质标准', + // }], + // }], + // }], + // }], + }] }, { - title: '水质考核目标', - dataIndex: 'waterTarget', - key: 'waterTarget', + title: ' ', + dataIndex: '', + key: '', + children: [{ + title: '水质考核目标', + dataIndex: 'waterTarget', + key: 'waterTarget', + }] }, { - title: '水质类别', - dataIndex: 'waterQualityType', - key: 'waterQualityType', - }, - { - title: '水温(℃)', - dataIndex: 'waterTemperature', - key: 'waterTemperature', - }, - { - title: 'pH (无量纲)', - dataIndex: 'ph', - key: 'ph', - }, - { - title: '溶解氧(mg/L)', - dataIndex: 'dissolvedOxygen', - key: 'dissolvedOxygen', - }, - { - title: '高锰酸盐指数 (mg/L)', - dataIndex: 'permanganateIndex', - key: 'permanganateIndex', - }, - { - title: '氨氮 (mg/L)', - dataIndex: 'ammonia', - key: 'ammonia', - }, - { - title: '总磷(mg/L)', - dataIndex: 'totalPhosphorus', - key: 'totalPhosphorus', - }, - { - title: '总氮(mg/L)', - dataIndex: 'totalNitrogen', - key: 'totalNitrogen', - }, + title: ' ', + dataIndex: '', + key: '', + children: [{ + title: '水质类别', + dataIndex: 'waterQualityType', + key: 'waterQualityType', + }], + } + , { + + title: '主要水质指标月均值', + dataIndex: 'index', + key: 'index', + align:'center', + children: [{ + title: '水温(℃)', + dataIndex: 'waterTemperature', + key: 'waterTemperature', + align:'center', + children: [{ + title: '一', + dataIndex: 'waterTemperature', + align: 'center', + }] + }, + { + title: 'pH (无量纲)', + dataIndex: 'ph', + key: 'ph', + align:'center', + children: [{ + title: '6~9', + dataIndex: 'ph', + align: 'center', + }] + }, + { + title: '溶解氧(mg/L)', + dataIndex: 'dissolvedOxygen', + key: 'dissolvedOxygen', + align:'center', + children: [{ + title: '≥7.5', + dataIndex: 'dissolvedOxygen', + align:'center', + children: [{ + title: '≥6', + dataIndex: 'dissolvedOxygen', + align:'center', + children: [{ + title: '≥5', + dataIndex: 'dissolvedOxygen', + align:'center', + children: [{ + title: '≥3', + dataIndex: 'dissolvedOxygen', + align:'center', + }], + }], + }], + }], + }, + { + title: '高锰酸盐指数 (mg/L)', + dataIndex: 'permanganateIndex', + key: 'permanganateIndex', + children: [{ + title: '≤2', + dataIndex: 'permanganateIndex', + align:'center', + children: [{ + title: '≤4', + dataIndex: 'permanganateIndex', + align:'center', + children: [{ + title: '≤6', + dataIndex: 'permanganateIndex', + align:'center', + children: [{ + title: '≤10', + dataIndex: 'permanganateIndex', + align:'center', + }], + }], + }], + }], + }, + { + title: '氨氮 (mg/L)', + dataIndex: 'ammonia', + key: 'ammonia', + children: [{ + title: '≤0.15', + dataIndex: 'ammonia', + align:'center', + children: [{ + title: '≤0.5', + dataIndex: 'ammonia', + align:'center', + children: [{ + title: '≤1.0', + dataIndex: 'ammonia', + align:'center', + children: [{ + title: '≤1.5', + dataIndex: 'ammonia', + align:'center', + }], + }], + }], + }], + }, + { + title: '总磷(mg/L)', + dataIndex: 'totalPhosphorus', + key: 'totalPhosphorus', + children: [{ + title: '≤0.02', + dataIndex: 'totalPhosphorus', + align:'center', + children: [{ + title: '≤0.1', + dataIndex: 'totalPhosphorus', + align:'center', + children: [{ + title: '≤0.2', + dataIndex: 'totalPhosphorus', + align:'center', + children: [{ + title: '≤0.3', + dataIndex: 'totalPhosphorus', + align:'center', + }], + }], + }], + }], + }, + { + title: '总氮(mg/L)', + dataIndex: 'totalNitrogen', + key: 'totalNitrogen', + children: [{ + title: '≤0.2', + dataIndex: 'totalNitrogen', + children: [{ + title: '≤0.5', + dataIndex: 'totalNitrogen', + children: [{ + title: '≤1.0', + dataIndex: 'totalNitrogen', + children: [{ + title: '≤1.5', + dataIndex: 'totalNitrogen', + }], + }], + }], + }], + } + ] + } ], // 表格搜索条件 where: {}, @@ -149,7 +304,8 @@ methods: { /* 刷新表格 */ reload() { - this.loading = true; + this.loading = true; + this.datasource = {}; listWaterSiteMonthTotal(this.where).then((res) => { if (res.data.code == 0) { this.$message.success(res.data.msg); diff --git a/src/views/water/river-station/statistic/site.vue b/src/views/water/river-station/statistic/site.vue index 6c728ae..0b9c2d8 100644 --- a/src/views/water/river-station/statistic/site.vue +++ b/src/views/water/river-station/statistic/site.vue @@ -7,8 +7,8 @@ :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> - - {{ item.sectionName }} + + {{ item.stationName }} @@ -189,6 +189,8 @@ /* 刷新表格 */ reload() { this.loading = true; + this.momData = []; + this.yoyData = []; listWaterSiteYoy(this.where).then((res) => { console.log(res.data.data); if (res.data.code == 0) { diff --git a/src/views/water/river/statistic/avg-index.vue b/src/views/water/river/statistic/avg-index.vue index 1544af3..81bd1da 100644 --- a/src/views/water/river/statistic/avg-index.vue +++ b/src/views/water/river/statistic/avg-index.vue @@ -7,7 +7,7 @@ :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> - + {{ item.sectionName }} @@ -120,6 +120,7 @@ /* 刷新表格 */ reload() { this.loading=true; + this.momData = []; listMonthCompositeIndex(this.where).then((res) => { console.log(res.data.data); if (res.data.code == 0) { diff --git a/src/views/water/river/statistic/avg-standard.vue b/src/views/water/river/statistic/avg-standard.vue index a7b7662..0172508 100644 --- a/src/views/water/river/statistic/avg-standard.vue +++ b/src/views/water/river/statistic/avg-standard.vue @@ -7,7 +7,7 @@ :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> - + {{ item.sectionName }} @@ -62,7 +62,6 @@ return { data: [], momData: [], - yoyData: [], datasource: {}, columns: [{ title: '断面类型', @@ -129,6 +128,7 @@ /* 刷新表格 */ reload() { this.loading = true; + this.momData = []; listMonthWaterQualitySandard(this.where).then((res) => { console.log(res.data.data); if (res.data.code == 0) { diff --git a/src/views/water/river/statistic/base-index.vue b/src/views/water/river/statistic/base-index.vue index 65785a6..cfc769f 100644 --- a/src/views/water/river/statistic/base-index.vue +++ b/src/views/water/river/statistic/base-index.vue @@ -7,7 +7,7 @@ :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> - + {{ item.sectionName }} @@ -59,7 +59,6 @@ return { data: [], momData: [], - yoyData: [], datasource: {}, columns: [{ title: '断面名称', @@ -124,6 +123,7 @@ /* 刷新表格 */ reload() { this.loading = true; + this.momData = []; listMonthCompositeIndex(this.where).then((res) => { console.log(res.data.data); if (res.data.code == 0) { diff --git a/src/views/water/river/statistic/base-standard.vue b/src/views/water/river/statistic/base-standard.vue index f3f90fa..fbafbf6 100644 --- a/src/views/water/river/statistic/base-standard.vue +++ b/src/views/water/river/statistic/base-standard.vue @@ -7,7 +7,7 @@ :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> - + {{ item.sectionName }} @@ -125,6 +125,7 @@ /* 刷新表格 */ reload() { this.loading = true; + this.momData = []; listMonthWaterQualitySandard(this.where).then((res) => { console.log(res.data.data); if (res.data.code == 0) { diff --git a/src/views/water/water-function-area/statistic/auto.vue b/src/views/water/water-function-area/statistic/auto.vue index 8325936..dd55cef 100644 --- a/src/views/water/water-function-area/statistic/auto.vue +++ b/src/views/water/water-function-area/statistic/auto.vue @@ -7,16 +7,16 @@ :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> - + {{ item.sectionName }} - + - + @@ -32,10 +32,10 @@ - - - + + + @@ -43,8 +43,7 @@