Merge pull request 'master' (#1) from master into yinyongshui
Reviewed-on: http://git.gxwebsoft.com/shengtaiting/shengtai-admin/pulls/1
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
// -------------------江河--水功能数据统计列表-----------------------
|
// -------------------江河--水功能数据统计列表-----------------------
|
||||||
const autonomyWaterFunctionTotalUrl = '/waterFunctionArea/riverStatic/autoPage';
|
// const autonomyWaterFunctionTotalUrl = '/waterFunctionArea/riverStatic/autoPage';
|
||||||
const nationalWaterFunctionTotalUrl = '/waterFunctionArea/riverStatic/nationalPage';
|
const nationalWaterFunctionTotalUrl = '/waterFunctionArea/riverStatic/nationalPage';
|
||||||
//国家级水功能统计
|
//国家级水功能统计
|
||||||
const nationalWaterFunctionTotal = function (data) {
|
const listNationalWaterFunctionTotal = function (data) {
|
||||||
return axios.get("/waterFunctionArea/riverStatic/nationalPage",data)
|
return axios.post("/waterFunctionArea/riverStatic/nationalPage",data)
|
||||||
}
|
}
|
||||||
// /自治区水功能统计
|
// /自治区水功能统计
|
||||||
const autonomyWaterFunctionTotal = function (data) {
|
const listAutonomyWaterFunctionTotal = function (data) {
|
||||||
return axios.get("/waterFunctionArea/riverStatic/autoPage",data)
|
return axios.post("/waterFunctionArea/riverStatic/autoPage",data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -64,10 +64,10 @@ const listTargetInfo = function () {
|
|||||||
return axios.get("/waterFunctionArea/riverWaterEvaluationStandard",{})
|
return axios.get("/waterFunctionArea/riverWaterEvaluationStandard",{})
|
||||||
}
|
}
|
||||||
export {
|
export {
|
||||||
autonomyWaterFunctionTotalUrl,
|
// autonomyWaterFunctionTotalUrl,
|
||||||
nationalWaterFunctionTotalUrl,
|
nationalWaterFunctionTotalUrl,
|
||||||
nationalWaterFunctionTotal,
|
listNationalWaterFunctionTotal,
|
||||||
autonomyWaterFunctionTotal,
|
listAutonomyWaterFunctionTotal,
|
||||||
listWaterSiteYoy,
|
listWaterSiteYoy,
|
||||||
listWaterSiteMonthTotal,
|
listWaterSiteMonthTotal,
|
||||||
listMonthWaterQualitySandard,
|
listMonthWaterQualitySandard,
|
||||||
|
|||||||
@@ -170,10 +170,10 @@
|
|||||||
/* 刷新表格 */
|
/* 刷新表格 */
|
||||||
reload() {
|
reload() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.momData = [];
|
|
||||||
listMonthWaterQualitySandard(this.where).then((res) => {
|
listMonthWaterQualitySandard(this.where).then((res) => {
|
||||||
console.log(res.data.data);
|
console.log(res.data.data);
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
|
this.momData = [];
|
||||||
this.$message.success(res.data.msg);
|
this.$message.success(res.data.msg);
|
||||||
res.data.data.forEach((m) => {
|
res.data.data.forEach((m) => {
|
||||||
this.momData.push(m);
|
this.momData.push(m);
|
||||||
|
|||||||
@@ -6,20 +6,12 @@
|
|||||||
<a-form :model="where" layout="inline">
|
<a-form :model="where" layout="inline">
|
||||||
|
|
||||||
<a-form-item label="开始时间:">
|
<a-form-item label="开始时间:">
|
||||||
<a-month-picker
|
<a-month-picker v-model:value="where.startTime" :disabled-date="disabledDate" valueFormat="YYYY-MM"
|
||||||
v-model:value="where.startTime"
|
placeholder="开始时间" />
|
||||||
:disabled-date="disabledDate"
|
|
||||||
valueFormat="YYYY-MM"
|
|
||||||
placeholder="开始时间"
|
|
||||||
/>
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="结束时间:">
|
<a-form-item label="结束时间:">
|
||||||
<a-month-picker
|
<a-month-picker v-model:value="where.endTime" :disabled-date="disabledDate" valueFormat="YYYY-MM"
|
||||||
v-model:value="where.endTime"
|
placeholder="结束时间" />
|
||||||
:disabled-date="disabledDate"
|
|
||||||
valueFormat="YYYY-MM"
|
|
||||||
placeholder="结束时间"
|
|
||||||
/>
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="断面名称">
|
<a-form-item label="断面名称">
|
||||||
<a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
|
<a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
|
||||||
@@ -56,8 +48,8 @@
|
|||||||
</a-space>
|
</a-space>
|
||||||
</a-form>
|
</a-form>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<ele-pro-table ref="table" row-key="surfaceWaterSectionId" :datasource="datasource" :columns="columns" :where="where"
|
<ele-pro-table ref="table" row-key="surfaceWaterSectionId" :datasource="datasource" :columns="columns"
|
||||||
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
:where="where" :scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
||||||
</ele-pro-table>
|
</ele-pro-table>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
@@ -78,8 +70,11 @@
|
|||||||
} from "@/api/ecology/water/river-plcae";
|
} from "@/api/ecology/water/river-plcae";
|
||||||
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
|
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
|
||||||
import {
|
import {
|
||||||
tableColumnsBase
|
tableColumnsBase,
|
||||||
} from ".././collect/colums";
|
} from ".././collect/colums";
|
||||||
|
// import {
|
||||||
|
// columnsBase,
|
||||||
|
// } from "./colums";
|
||||||
import XLSX from "xlsx";
|
import XLSX from "xlsx";
|
||||||
export default {
|
export default {
|
||||||
name: "RiverCollectWater",
|
name: "RiverCollectWater",
|
||||||
@@ -93,14 +88,122 @@
|
|||||||
locale,
|
locale,
|
||||||
bill: {},
|
bill: {},
|
||||||
// 表格数据接口
|
// 表格数据接口
|
||||||
|
listColumns:[],
|
||||||
url: pageRiverUrl,
|
url: pageRiverUrl,
|
||||||
selection: [],
|
selection: [],
|
||||||
tableColumnsBase,
|
tableColumnsBase,
|
||||||
// columnsList: [],
|
flg:true,
|
||||||
|
flg2:true,
|
||||||
|
columnsCopy:[],
|
||||||
// 表格列配置
|
// 表格列配置
|
||||||
|
columnsBase: [{
|
||||||
|
title: "pH值",
|
||||||
|
dataIndex: "ph",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "T-Hg(mg/L)",
|
||||||
|
dataIndex: "tHg",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "溶解氧(mg/L)",
|
||||||
|
dataIndex: "dissolvedOxygen",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "COD Mn(mg/L)",
|
||||||
|
dataIndex: "codMn",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "COD Cr(mg/L)",
|
||||||
|
dataIndex: "codCr",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "NH₃-N(mg/L)",
|
||||||
|
dataIndex: "nh3N",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "T-P(mg/L)",
|
||||||
|
dataIndex: "tP",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Cu(mg/L)",
|
||||||
|
dataIndex: "cu",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Zn(mg/L)",
|
||||||
|
dataIndex: "zn",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Pb(mg/L)",
|
||||||
|
dataIndex: "pb",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Cd(mg/L)",
|
||||||
|
dataIndex: "cd",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "BOD5(mg/L)",
|
||||||
|
dataIndex: "bod5",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "T-As(mg/L)",
|
||||||
|
dataIndex: "tAs",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "T-Se(mg/L)",
|
||||||
|
dataIndex: "tSe",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Cr6+(mg/L)",
|
||||||
|
dataIndex: "cr6",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Chla(mg/L)",
|
||||||
|
dataIndex: "chla",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "S2-(mg/L)",
|
||||||
|
dataIndex: "s2",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "石油类(mg/L)",
|
||||||
|
dataIndex: "petro",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "CN-(mg/L)",
|
||||||
|
dataIndex: "cn",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "F-(mg/L)",
|
||||||
|
dataIndex: "f",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "挥发酚(mg/L)",
|
||||||
|
dataIndex: "volatilePhenol",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
columns: [
|
columns: [
|
||||||
...tableColumnsBase,
|
...tableColumnsBase,
|
||||||
// this.columnsList,
|
|
||||||
{
|
{
|
||||||
title: "NO₃-(mg/L)",
|
title: "NO₃-(mg/L)",
|
||||||
dataIndex: "no3",
|
dataIndex: "no3",
|
||||||
@@ -185,164 +288,188 @@
|
|||||||
loadOptionData() {},
|
loadOptionData() {},
|
||||||
/* 刷新表格 */
|
/* 刷新表格 */
|
||||||
reload() {
|
reload() {
|
||||||
|
console.log(this.where.targetName);
|
||||||
if (this.where.targetName) {
|
if (this.where.targetName) {
|
||||||
|
if(this.flg){
|
||||||
|
this.columnsCopy = this.columnsBase;
|
||||||
|
}
|
||||||
|
this.flg = false;
|
||||||
|
this.columnsBase = [];
|
||||||
|
console.log(this.columnsBase);
|
||||||
var arr = this.where.targetName
|
var arr = this.where.targetName
|
||||||
arr.forEach((a) => {
|
arr.forEach((a) => {
|
||||||
if (a == 'ph') {
|
if (a == 'ph') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "pH值",
|
title: "pH值",
|
||||||
dataIndex: "ph",
|
dataIndex: "ph",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '汞') {
|
if (a == '汞') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "T-Hg(mg/L)",
|
title: "T-Hg(mg/L)",
|
||||||
dataIndex: "tHg",
|
dataIndex: "tHg",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '溶解氧') {
|
if (a == '溶解氧') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "溶解氧(mg/L)",
|
title: "溶解氧(mg/L)",
|
||||||
dataIndex: "dissolvedOxygen",
|
dataIndex: "dissolvedOxygen",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '高锰酸盐指数') {
|
if (a == '高锰酸盐指数') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "COD Mn(mg/L)",
|
title: "COD Mn(mg/L)",
|
||||||
dataIndex: "codMn",
|
dataIndex: "codMn",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '化学需氧量') {
|
if (a == '化学需氧量') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "COD Cr(mg/L)",
|
title: "COD Cr(mg/L)",
|
||||||
dataIndex: "codCr",
|
dataIndex: "codCr",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '氨氮') {
|
if (a == '氨氮') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "NH₃-N(mg/L)",
|
title: "NH₃-N(mg/L)",
|
||||||
dataIndex: "nh3N",
|
dataIndex: "nh3N",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '总磷') {
|
if (a == '总磷') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "T-P(mg/L)",
|
title: "T-P(mg/L)",
|
||||||
dataIndex: "tP",
|
dataIndex: "tP",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '铜') {
|
if (a == '铜') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "Cu(mg/L)",
|
title: "Cu(mg/L)",
|
||||||
dataIndex: "cu",
|
dataIndex: "cu",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '锌') {
|
if (a == '锌') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "Zn(mg/L)",
|
title: "Zn(mg/L)",
|
||||||
dataIndex: "zn",
|
dataIndex: "zn",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '铅') {
|
if (a == '铅') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "Pb(mg/L)",
|
title: "Pb(mg/L)",
|
||||||
dataIndex: "pb",
|
dataIndex: "pb",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '镉') {
|
if (a == '镉') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "Cd(mg/L)",
|
title: "Cd(mg/L)",
|
||||||
dataIndex: "cd",
|
dataIndex: "cd",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '五日生化需氧量') {
|
if (a == '五日生化需氧量') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "BOD5(mg/L)",
|
title: "BOD5(mg/L)",
|
||||||
dataIndex: "bod5",
|
dataIndex: "bod5",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '砷') {
|
if (a == '砷') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "T-As(mg/L)",
|
title: "T-As(mg/L)",
|
||||||
dataIndex: "tAs",
|
dataIndex: "tAs",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '硒') {
|
if (a == '硒') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "T-Se(mg/L)",
|
title: "T-Se(mg/L)",
|
||||||
dataIndex: "tSe",
|
dataIndex: "tSe",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '铬') {
|
if (a == '铬') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "Cr6+(mg/L)",
|
title: "Cr6+(mg/L)",
|
||||||
dataIndex: "cr6",
|
dataIndex: "cr6",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '阴离子表面活性剂') {
|
if (a == '阴离子表面活性剂') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "Chla(mg/L)",
|
title: "Chla(mg/L)",
|
||||||
dataIndex: "chla",
|
dataIndex: "chla",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '硫化物') {
|
if (a == '硫化物') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "S2-(mg/L)",
|
title: "S2-(mg/L)",
|
||||||
dataIndex: "s2",
|
dataIndex: "s2",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '石油类') {
|
if (a == '石油类') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "石油类(mg/L)",
|
title: "石油类(mg/L)",
|
||||||
dataIndex: "petro",
|
dataIndex: "petro",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '氰化物') {
|
if (a == '氰化物') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "CN-(mg/L)",
|
title: "CN-(mg/L)",
|
||||||
dataIndex: "cn",
|
dataIndex: "cn",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (a == '氟化物') {
|
if (a == '氟化物') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "F-(mg/L)",
|
title: "F-(mg/L)",
|
||||||
dataIndex: "f",
|
dataIndex: "f",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
if (a == '挥发酚') {
|
if (a == '挥发酚') {
|
||||||
this.columns.push({
|
this.columnsBase.push({
|
||||||
title: "挥发酚(mg/L)",
|
title: "挥发酚(mg/L)",
|
||||||
dataIndex: "volatilePhenol",
|
dataIndex: "volatilePhenol",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
}, )
|
}, )
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("bbbb" + this.columns);
|
console.log("bbbb" + this.columnsBase);
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
if(this.flg2){
|
||||||
|
this.listColumns= this.columns;
|
||||||
}
|
}
|
||||||
// this.$refs.table.reload({
|
this.flg2 =false;
|
||||||
// where: this.where,
|
}
|
||||||
// });
|
this.columns = [];
|
||||||
|
if(this.listColumns.length>0){
|
||||||
|
this.listColumns.forEach((i=>{
|
||||||
|
this.columns.push(i);
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
if(this.columnsBase.length>0){
|
||||||
|
this.columnsBase.forEach((e=>{
|
||||||
|
this.columns.push(e);
|
||||||
|
}))
|
||||||
|
}else{
|
||||||
|
this.columnsCopy.forEach((e=>{
|
||||||
|
this.columns.push(e);
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
listAllRiver(this.where).then((res) => {
|
listAllRiver(this.where).then((res) => {
|
||||||
console.log(res.data.data);
|
console.log(res.data.data);
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
|
|||||||
@@ -1,50 +1,109 @@
|
|||||||
const exportColumns = [
|
const columnsBase = [
|
||||||
{title: "断面编码",dataIndex: "sectionCode",sorter: true,},
|
{
|
||||||
{title: "断面名称",dataIndex: "sectionName",sorter: true,},
|
title: "pH值",
|
||||||
{title: "考核省份",dataIndex: "evaluationProvince",sorter: true,},
|
dataIndex: "ph",
|
||||||
{title: "断面类型",dataIndex: "sectionType",sorter: true,},
|
sorter: true,
|
||||||
{title: "断面属性",dataIndex: "sectionAttributes",sorter: true,},
|
},
|
||||||
{title: "流域",dataIndex: "watershed",sorter: true,},
|
{
|
||||||
{title: "水系",dataIndex: "waterSystem",sorter: true,},
|
title: "T-Hg(mg/L)",
|
||||||
// {title: "监测时间",dataIndex: "monitorTime",sorter: true,},
|
dataIndex: "tHg",
|
||||||
{title: "所在水体",dataIndex: "waterBody",sorter: true,},
|
sorter: true,
|
||||||
{title: "汇入水体 ",dataIndex: "intoWaterBody",sorter: true,},
|
},
|
||||||
{title: "河流级别",dataIndex: "riverLevel",sorter: true,},
|
{
|
||||||
{title: "监测年份",dataIndex: "monitoringYear",sorter: true,},
|
title: "溶解氧(mg/L)",
|
||||||
{title: "监测月份",dataIndex: "monitoringMonth",sorter: true,},
|
dataIndex: "dissolvedOxygen",
|
||||||
{title: "水质类别",dataIndex: "waterQualityCategory",sorter: true,},
|
sorter: true,
|
||||||
{title: "电导率(ms/m)",dataIndex: "conductivity",sorter: true,},
|
},
|
||||||
{title: "水温(℃)",dataIndex: "waterTemperature",sorter: true,},
|
{
|
||||||
{title: "pH值",dataIndex: "ph",sorter: true,},
|
title: "COD Mn(mg/L)",
|
||||||
{title: "溶解氧(mg/L)",dataIndex: "dissolvedOxygen",sorter: true,},
|
dataIndex: "codMn",
|
||||||
{title: "透明度(cm)",dataIndex: "transparency",sorter: true,},
|
sorter: true,
|
||||||
{title: "盐度(‰)",dataIndex: "salinity",sorter: true,},
|
},
|
||||||
{title: "COD Mn(mg/L)",dataIndex: "codMn",sorter: true,},
|
{
|
||||||
{title: "COD Cr(mg/L)",dataIndex: "codCr",sorter: true,},
|
title: "COD Cr(mg/L)",
|
||||||
{title: "NH₃-N(mg/L)",dataIndex: "nh3N",sorter: true,},
|
dataIndex: "codCr",
|
||||||
{title: "T-P(mg/L)",dataIndex: "tP",sorter: true,},
|
sorter: true,
|
||||||
{title: "T-N(mg/L)",dataIndex: "tN",sorter: true,},
|
},
|
||||||
{title: "Cu(mg/L)",dataIndex: "cu",sorter: true,},
|
{
|
||||||
{title: "Zn(mg/L)",dataIndex: "zn",sorter: true,},
|
title: "NH₃-N(mg/L)",
|
||||||
{title: "Pb(mg/L)",dataIndex: "pb",sorter: true,},
|
dataIndex: "nh3N",
|
||||||
{title: "Cd(mg/L)",dataIndex: "cd",sorter: true,},
|
sorter: true,
|
||||||
{title: "BOD5(mg/L)",dataIndex: "bod5",sorter: true,},
|
},
|
||||||
{title: "T-As(mg/L)",dataIndex: "tAs",sorter: true,},
|
{
|
||||||
{title: "T-Se(mg/L)",dataIndex: "tSe",sorter: true,},
|
title: "T-P(mg/L)",
|
||||||
{title: "T-Hg(mg/L)",dataIndex: "tHg",sorter: true,},
|
dataIndex: "tP",
|
||||||
{title: "Cr6+(mg/L)",dataIndex: "cr6",sorter: true,},
|
sorter: true,
|
||||||
{title: "F-(mg/L)",dataIndex: "f",sorter: true,},
|
},
|
||||||
{title: "CN-(mg/L)",dataIndex: "cn",sorter: true,},
|
{
|
||||||
{title: "挥发酚(mg/L)",dataIndex: "volatilePhenol",sorter: true,},
|
title: "Cu(mg/L)",
|
||||||
{title: "石油类(mg/L)",dataIndex: "petro",sorter: true,},
|
dataIndex: "cu",
|
||||||
{title: "LAS(mg/L)",dataIndex: "las",sorter: true,},
|
sorter: true,
|
||||||
{title: "S2-(mg/L)",dataIndex: "s2",sorter: true,},
|
},
|
||||||
{title: "Chla(mg/L)",dataIndex: "chla",sorter: true,},
|
{
|
||||||
{title: "NO₃-(mg/L)",dataIndex: "no3",sorter: true,},
|
title: "Zn(mg/L)",
|
||||||
{title: "NO₂-(mg/L)",dataIndex: "no2",sorter: true,},
|
dataIndex: "zn",
|
||||||
{title: "流量(m³/s)",dataIndex: "flow",sorter: true,},
|
sorter: true,
|
||||||
{title: "水位",dataIndex: "waterLevel",sorter: true,},
|
},
|
||||||
{title: "备注",dataIndex: "remark",sorter: true,},
|
{
|
||||||
|
title: "Pb(mg/L)",
|
||||||
|
dataIndex: "pb",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Cd(mg/L)",
|
||||||
|
dataIndex: "cd",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "BOD5(mg/L)",
|
||||||
|
dataIndex: "bod5",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "T-As(mg/L)",
|
||||||
|
dataIndex: "tAs",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "T-Se(mg/L)",
|
||||||
|
dataIndex: "tSe",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Cr6+(mg/L)",
|
||||||
|
dataIndex: "cr6",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Chla(mg/L)",
|
||||||
|
dataIndex: "chla",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "S2-(mg/L)",
|
||||||
|
dataIndex: "s2",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "石油类(mg/L)",
|
||||||
|
dataIndex: "petro",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "CN-(mg/L)",
|
||||||
|
dataIndex: "cn",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "F-(mg/L)",
|
||||||
|
dataIndex: "f",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "挥发酚(mg/L)",
|
||||||
|
dataIndex: "volatilePhenol",
|
||||||
|
sorter: true,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export {exportColumns}
|
export {columnsBase}
|
||||||
|
|||||||
@@ -185,6 +185,7 @@
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
listAutoStandard(this.where).then((res) => {
|
listAutoStandard(this.where).then((res) => {
|
||||||
console.log(res.data.data);
|
console.log(res.data.data);
|
||||||
|
this.datasource = [];
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
this.$message.success(res.data.msg);
|
this.$message.success(res.data.msg);
|
||||||
for (var key in res.data.data) {
|
for (var key in res.data.data) {
|
||||||
@@ -246,8 +247,12 @@
|
|||||||
if (month == '12') {
|
if (month == '12') {
|
||||||
target.december = e.waterQualityCategory;
|
target.december = e.waterQualityCategory;
|
||||||
}
|
}
|
||||||
|
console.log(arr.length);
|
||||||
|
if(arr.length == '12'){
|
||||||
target.standardRate = e.standardRate;
|
target.standardRate = e.standardRate;
|
||||||
target.standard = e.standard;
|
target.standard = e.standard;
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
this.datasource.push(target);
|
this.datasource.push(target);
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import moment from "moment";
|
||||||
import {
|
import {
|
||||||
listAutoYoy,
|
listAutoYoy,
|
||||||
} from "@/api/ecology/river-statis";
|
} from "@/api/ecology/river-statis";
|
||||||
@@ -82,8 +83,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "时间",
|
title: "时间",
|
||||||
dataIndex: "monitorTime",
|
dataIndex: "samplingTime",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
|
customRender: ({text})=> moment(text,"YYYY/MM").format("YYYY-MM")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "水质目标",
|
title: "水质目标",
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<a-spin :spinning="loading">
|
<a-spin :spinning="loading">
|
||||||
<ele-pro-table ref="table" :datasource="url" :columns="columns" :where="where"
|
<ele-pro-table ref="table" :datasource="datasource" :columns="columns" :where="where"
|
||||||
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
||||||
</ele-pro-table>
|
</ele-pro-table>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
autonomyWaterFunctionTotalUrl,
|
listAutonomyWaterFunctionTotal,
|
||||||
} from "@/api/ecology/river-statis";
|
} from "@/api/ecology/river-statis";
|
||||||
import {
|
import {
|
||||||
listInfo
|
listInfo
|
||||||
@@ -73,9 +73,8 @@
|
|||||||
return {
|
return {
|
||||||
data: [],
|
data: [],
|
||||||
locale,
|
locale,
|
||||||
// datasource: {},
|
datasource: [],
|
||||||
// 表格数据接口
|
// 表格数据接口
|
||||||
url: autonomyWaterFunctionTotalUrl,
|
|
||||||
selection: [],
|
selection: [],
|
||||||
tableColumns,
|
tableColumns,
|
||||||
// 表格列配置
|
// 表格列配置
|
||||||
@@ -117,20 +116,22 @@
|
|||||||
/* 刷新表格 */
|
/* 刷新表格 */
|
||||||
reload() {
|
reload() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
console.log(this.where);
|
listAutonomyWaterFunctionTotal(this.where).then((res) => {
|
||||||
this.$refs.table.reload({
|
this.datasource = [];
|
||||||
where: this.where,
|
console.log(res.data.data);
|
||||||
|
if (res.data.code == 0) {
|
||||||
|
this.$message.success(res.data.msg);
|
||||||
|
if(res.data.data != undefined){
|
||||||
|
res.data.data.forEach((e=>{
|
||||||
|
this.datasource.push(e);
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.data.msg);
|
||||||
|
}
|
||||||
|
this.loading = false;
|
||||||
});
|
});
|
||||||
// autonomyWaterFunctionTotal(this.where).then((res) => {
|
|
||||||
// console.log(res.data.data);
|
|
||||||
// if (res.data.code == 0) {
|
|
||||||
// this.$message.success(res.data.msg);
|
|
||||||
// this.datasource=res.data.data;
|
|
||||||
// } else {
|
|
||||||
// this.$message.error(res.data.msg);
|
|
||||||
// }
|
|
||||||
// this.loading = false;
|
|
||||||
// });
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
/* 重置搜索 */
|
/* 重置搜索 */
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
import moment from "moment";
|
||||||
const tableColumns = [
|
const tableColumns = [
|
||||||
{title: "水体类型", dataIndex: "waterBodyType", sorter: true,},
|
{title: "水体类型", dataIndex: "waterBodyType", sorter: true,},
|
||||||
{title: "水资源一级区名称", dataIndex: "waterResourcesFirstLevelZoneName", sorter: true,},
|
{title: "水资源一级区名称", dataIndex: "waterResourcesFirstLevelZoneName", sorter: true,},
|
||||||
{title: "水质目标", dataIndex: "waterQualityGoal", sorter: true,},
|
{title: "水质目标", dataIndex: "waterQualityGoal", sorter: true,},
|
||||||
{title: "采样时间", dataIndex: "monitorTime", sorter: true,},
|
{title: "采样时间", dataIndex: "monitorTime", sorter: true, customRender: ({text})=> moment(text,"YYYY/MM/DD").format("YYYY-MM-DD")},
|
||||||
{title: "数据来源", dataIndex: "dataSources", sorter: true,},
|
{title: "数据来源", dataIndex: "dataSources", sorter: true,},
|
||||||
{title: "断面名称", dataIndex: "sectionName", sorter: true,},
|
{title: "断面名称", dataIndex: "sectionName", sorter: true,},
|
||||||
{title: "水温", dataIndex: "wtemp", sorter: true,},
|
{title: "水温", dataIndex: "wtemp", sorter: true,},
|
||||||
@@ -59,7 +60,7 @@ const tableColumns = [
|
|||||||
{title: "水体类型", dataIndex: "waterBodyType", sorter: true,},
|
{title: "水体类型", dataIndex: "waterBodyType", sorter: true,},
|
||||||
{title: "水资源一级区名称", dataIndex: "waterResourcesFirstLevelZoneName", sorter: true,},
|
{title: "水资源一级区名称", dataIndex: "waterResourcesFirstLevelZoneName", sorter: true,},
|
||||||
{title: "水质目标", dataIndex: "waterQualityGoal", sorter: true,},
|
{title: "水质目标", dataIndex: "waterQualityGoal", sorter: true,},
|
||||||
{title: "采样时间", dataIndex: "samplingTime", sorter: true,},
|
{title: "采样时间", dataIndex: "samplingTime", sorter: true, customRender: ({text})=> moment(text,"YYYY/MM/DD").format("YYYY-MM-DD")},
|
||||||
{title: "数据来源", dataIndex: "dataSources", sorter: true,},
|
{title: "数据来源", dataIndex: "dataSources", sorter: true,},
|
||||||
{title: "断面名称", dataIndex: "sectionName", sorter: true,},
|
{title: "断面名称", dataIndex: "sectionName", sorter: true,},
|
||||||
{title: "水温", dataIndex: "wtemp", sorter: true,},
|
{title: "水温", dataIndex: "wtemp", sorter: true,},
|
||||||
|
|||||||
@@ -183,6 +183,7 @@
|
|||||||
/* 刷新表格 */
|
/* 刷新表格 */
|
||||||
reload() {
|
reload() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
this.datasource = [];
|
||||||
listNationalStandard(this.where).then((res) => {
|
listNationalStandard(this.where).then((res) => {
|
||||||
console.log(res.data.data);
|
console.log(res.data.data);
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import moment from "moment";
|
||||||
import {
|
import {
|
||||||
listNationalYoy,
|
listNationalYoy,
|
||||||
} from "@/api/ecology/river-statis";
|
} from "@/api/ecology/river-statis";
|
||||||
@@ -69,7 +70,7 @@
|
|||||||
return {
|
return {
|
||||||
data: [],
|
data: [],
|
||||||
locale,
|
locale,
|
||||||
datasource: {},
|
datasource: [],
|
||||||
// 表格数据接口
|
// 表格数据接口
|
||||||
// url: autonomyWaterFunctionTotalUrl,
|
// url: autonomyWaterFunctionTotalUrl,
|
||||||
selection: [],
|
selection: [],
|
||||||
@@ -84,6 +85,7 @@
|
|||||||
title: "时间",
|
title: "时间",
|
||||||
dataIndex: "samplingTime",
|
dataIndex: "samplingTime",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
|
customRender: ({text})=> moment(text,"YYYY/MM").format("YYYY-MM")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "水质目标",
|
title: "水质目标",
|
||||||
@@ -136,8 +138,13 @@
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
listNationalYoy(this.where).then((res) => {
|
listNationalYoy(this.where).then((res) => {
|
||||||
console.log(res.data.data);
|
console.log(res.data.data);
|
||||||
|
this.datasource = [];
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
this.datasource = res.data.data;
|
if (res.data.data) {
|
||||||
|
res.data.data.forEach(e => {
|
||||||
|
this.datasource.push(e);
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.msg);
|
this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<a-spin :spinning="loading">
|
<a-spin :spinning="loading">
|
||||||
<ele-pro-table ref="table" :datasource="url" :columns="columns" :where="where"
|
<ele-pro-table ref="table" :datasource="datasource" :columns="columns" :where="where"
|
||||||
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
||||||
</ele-pro-table>
|
</ele-pro-table>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
@@ -56,8 +56,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
nationalWaterFunctionTotalUrl,
|
listNationalWaterFunctionTotal
|
||||||
// nationalWaterFunctionTotal
|
|
||||||
} from "@/api/ecology/river-statis";
|
} from "@/api/ecology/river-statis";
|
||||||
import {
|
import {
|
||||||
listInfo
|
listInfo
|
||||||
@@ -73,11 +72,11 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
data: [],
|
data: [],
|
||||||
// datasource: {},
|
datasource: {},
|
||||||
locale,
|
locale,
|
||||||
bill: {},
|
bill: {},
|
||||||
// 表格数据接口
|
// 表格数据接口
|
||||||
url: nationalWaterFunctionTotalUrl,
|
// url: nationalWaterFunctionTotalUrl,
|
||||||
selection: [],
|
selection: [],
|
||||||
nationalTableColumns,
|
nationalTableColumns,
|
||||||
// 表格列配置
|
// 表格列配置
|
||||||
@@ -119,8 +118,15 @@
|
|||||||
/* 刷新表格 */
|
/* 刷新表格 */
|
||||||
reload() {
|
reload() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$refs.table.reload({
|
listNationalWaterFunctionTotal(this.where).then((res) => {
|
||||||
where: this.where,
|
console.log(res.data.data);
|
||||||
|
if (res.data.code == 0) {
|
||||||
|
this.$message.success(res.data.msg);
|
||||||
|
this.datasource = res.data.data;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.data.msg);
|
||||||
|
}
|
||||||
|
this.loading = false;
|
||||||
});
|
});
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user