江河模块修改

This commit is contained in:
shixiaoman
2021-12-02 22:03:06 +08:00
parent 0cf94c370e
commit bff3daa644
11 changed files with 667 additions and 131 deletions

View File

@@ -41,6 +41,15 @@ const listAvgCompositeIndex = function (data) {
return axios.post("/waterFunctionArea/riverStatic/avgCompositeIndex",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, listMonthCompositeIndex,
listTargetInfo, listTargetInfo,
listAvgCompositeIndex, listAvgCompositeIndex,
listAvgWaterQualitySandard listAvgWaterQualitySandard,
listAutoStandard,
listNationalStandard
} }

View File

@@ -34,8 +34,8 @@ const getRiverBill = function (id) {
} }
// -------------------------数据--------------------- // -------------------------数据---------------------
const pageRiverUrl = '/surfaceWaterSection/surfaceWaterSection/page'; const pageRiverUrl = '/surfaceWaterSection/surfaceWaterSection/page';
const listAllRiver = function (params) { const listAllRiver = function (data) {
return axios.get("/surfaceWaterSection/surfaceWaterSection",{params}) return axios.post("/surfaceWaterSection/surfaceWaterSection/list",data)
} }
// 添加 // 添加
const saveRiver = function (data) { const saveRiver = function (data) {

View File

@@ -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 { export {
tableColumns tableColumns,tableColumnsBase
} }

View File

@@ -3,11 +3,19 @@
export default { export default {
toObjData(excelData) { toObjData(excelData) {
return excelData.map(item => { return excelData.map(item => {
const monitorTime = new Date(); // const monitorTime = new Date();
monitorTime.setFullYear(item[12]); // monitorTime.setFullYear();
monitorTime.setMonth(item[13] - 1); // 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 = { const row = {
monitorTime: monitorTime.getTime(), monitorTime: monitorTime,
sectionCode: item[0], sectionCode: item[0],
sectionName: item[1], sectionName: item[1],
province: item[2], province: item[2],

View File

@@ -30,53 +30,50 @@
</a-col> </a-col>
</a-row> </a-row>
</a-form> --> </a-form> -->
<a-form <a-form :model="where" layout="inline">
:model="where"
layout="inline"
>
<a-form-item label="起始日期:">
<a-date-picker valueFormat="YYYY-MM-DD 00:00:00" v-model:value="where.timeStart"></a-date-picker>
</a-form-item>
<a-form-item label="结束日期:">
<a-date-picker valueFormat="YYYY-MM-DD 23:59:59" v-model:value="where.timeEnd"></a-date-picker>
</a-form-item>
<a-form-item label="断面名称">
<a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
<a-select-option v-for="item in sectionInfo" :key="item.sectionName" :value="item.sectionName">
{{ item.sectionName }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="河段名称">
<a-select v-model:value="where.riverLakeLibrary" allowClear showSearch>
<a-select-option v-for="item in waterSystemList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="水系名称">
<a-select v-model:value="where.waterSystem" allowClear showSearch>
<a-select-option v-for="item in waterBodyList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="指标名称">
<a-select allow-clear mode="multiple" placeholder="请选择指标名称" v-model:value="where.targetName">
<a-select-option v-for="item in targetInfoList" :key="item" :value="item">
{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-space> <a-form-item label="起始日期:">
<a-button type="primary" @click="reload">查询</a-button> <a-date-picker valueFormat="YYYY-MM-DD 00:00:00" v-model:value="where.timeStart"></a-date-picker>
<a-button @click="reset">重置</a-button> </a-form-item>
<a-button @click="exportFile">导出Excel</a-button> <a-form-item label="结束日期:">
</a-space> <a-date-picker valueFormat="YYYY-MM-DD 23:59:59" v-model:value="where.timeEnd"></a-date-picker>
</a-form> </a-form-item>
<a-form-item label="断面名称">
<a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
<a-select-option v-for="item in sectionInfo" :key="item.sectionName" :value="item.sectionName">
{{ item.sectionName }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="河段名称">
<a-select v-model:value="where.waterBody" allowClear showSearch>
<a-select-option v-for="item in waterSystemList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="水系名称">
<a-select v-model:value="where.waterSystem" allowClear showSearch>
<a-select-option v-for="item in waterBodyList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="指标名称">
<a-select allow-clear mode="multiple" placeholder="请选择指标名称" v-model:value="where.targetName">
<a-select-option v-for="item in targetInfoList" :key="item" :value="item">
{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-space>
<a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button>
</a-space>
</a-form>
<!-- 表格 --> <!-- 表格 -->
<ele-pro-table ref="table" row-key="surfaceWaterSectionId" :datasource="url" :columns="columns" :where="where" <ele-pro-table ref="table" row-key="surfaceWaterSectionId" :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-card> </a-card>
@@ -87,7 +84,8 @@
<script> <script>
import { import {
getRiverBill, getRiverBill,
pageRiverUrl pageRiverUrl,
listAllRiver
} from "@/api/ecology/river"; } from "@/api/ecology/river";
import { import {
listTargetInfo, listTargetInfo,
@@ -97,7 +95,7 @@
} 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 {
tableColumns tableColumnsBase
} from ".././collect/colums"; } from ".././collect/colums";
import XLSX from "xlsx"; import XLSX from "xlsx";
export default { export default {
@@ -114,23 +112,49 @@
// 表格数据接口 // 表格数据接口
url: pageRiverUrl, url: pageRiverUrl,
selection: [], selection: [],
tableColumns, tableColumnsBase,
// columnsList: [],
// 表格列配置 // 表格列配置
columns: [ columns: [
...tableColumns, ...tableColumnsBase,
// this.columnsList,
{
title: "NO₃-(mg/L)",
dataIndex: "no3",
sorter: true,
},
{
title: "NO₂-(mg/L)",
dataIndex: "no2",
sorter: true,
},
{
title: "流量(m³/s)",
dataIndex: "flow",
sorter: true,
},
{
title: "水位",
dataIndex: "waterLevel",
sorter: true,
},
{
title: "备注",
dataIndex: "remark",
sorter: true,
},
], ],
// 表格搜索条件 // 表格搜索条件
surfaceWaterSectionBillId: billId, surfaceWaterSectionBillId: billId,
where: { where: {},
surfaceWaterSectionBillId: billId,
},
sectionInfo: {}, sectionInfo: {},
loading: false, loading: false,
rules: {}, rules: {},
waterBodyList: [], waterBodyList: [],
waterSystemList: [], waterSystemList: [],
targetInfo:{}, targetInfo: {},
targetInfoList:[], targetInfoList: [],
datasource:{},
}; };
}, },
mounted() { mounted() {
@@ -146,41 +170,203 @@
}, },
created() { created() {
listInfo().then((res) => { listInfo().then((res) => {
if (res.data.code == 0) { if (res.data.code == 0) {
console.log(res.data.data) console.log(res.data.data)
this.visibleWater = true; this.visibleWater = true;
this.sectionInfo = res.data.data this.sectionInfo = res.data.data
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }
}), }),
listTargetInfo().then((res) => { listTargetInfo().then((res) => {
if (res.data.code == 0) { if (res.data.code == 0) {
console.log(res.data.data) console.log(res.data.data)
this.targetInfo = res.data.data this.targetInfo = res.data.data
res.data.data.forEach((m) => { res.data.data.forEach((m) => {
this.targetInfoList.push(m.indicatorName); this.targetInfoList.push(m.indicatorName);
}) })
this.targetInfoList = [...new Set(this.targetInfoList)]; this.targetInfoList = [...new Set(this.targetInfoList)];
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }
}) })
}, },
methods: { methods: {
/**获取下来框数据 */ /**获取下来框数据 */
loadOptionData() {}, loadOptionData() {},
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.$refs.table.reload({ if (this.where.targetName) {
where: this.where, var arr = this.where.targetName
arr.forEach((a) => {
if (a == 'ph') {
this.columns.push({
title: "pH值",
dataIndex: "ph",
sorter: true,
}, )
}
if (a == '汞') {
this.columns.push({
title: "T-Hg(mg/L)",
dataIndex: "tHg",
sorter: true,
}, )
}
if (a == '溶解氧') {
this.columns.push({
title: "溶解氧(mg/L)",
dataIndex: "dissolvedOxygen",
sorter: true,
}, )
}
if (a == '高锰酸盐指数') {
this.columns.push({
title: "COD Mn(mg/L)",
dataIndex: "codMn",
sorter: true,
}, )
}
if (a == '化学需氧量') {
this.columns.push({
title: "COD Cr(mg/L)",
dataIndex: "codCr",
sorter: true,
}, )
}
if (a == '氨氮') {
this.columns.push({
title: "NH₃-N(mg/L)",
dataIndex: "nh3N",
sorter: true,
}, )
}
if (a == '总磷') {
this.columns.push({
title: "T-P(mg/L)",
dataIndex: "tP",
sorter: true,
}, )
}
if (a == '铜') {
this.columns.push({
title: "Cu(mg/L)",
dataIndex: "cu",
sorter: true,
}, )
}
if (a == '锌') {
this.columns.push({
title: "Zn(mg/L)",
dataIndex: "zn",
sorter: true,
}, )
}
if (a == '铅') {
this.columns.push({
title: "Pb(mg/L)",
dataIndex: "pb",
sorter: true,
}, )
}
if (a == '镉') {
this.columns.push({
title: "Cd(mg/L)",
dataIndex: "cd",
sorter: true,
}, )
}
if (a == '五日生化需氧量') {
this.columns.push({
title: "BOD5(mg/L)",
dataIndex: "bod5",
sorter: true,
}, )
}
if (a == '砷') {
this.columns.push({
title: "T-As(mg/L)",
dataIndex: "tAs",
sorter: true,
}, )
}
if (a == '硒') {
this.columns.push({
title: "T-Se(mg/L)",
dataIndex: "tSe",
sorter: true,
}, )
}
if (a == '铬') {
this.columns.push({
title: "Cr6+(mg/L)",
dataIndex: "cr6",
sorter: true,
}, )
}
if (a == '阴离子表面活性剂') {
this.columns.push({
title: "Chla(mg/L)",
dataIndex: "chla",
sorter: true,
}, )
}
if (a == '硫化物') {
this.columns.push({
title: "S2-(mg/L)",
dataIndex: "s2",
sorter: true,
}, )
}
if (a == '石油类') {
this.columns.push({
title: "石油类(mg/L)",
dataIndex: "petro",
sorter: true,
}, )
}
if (a == '氰化物') {
this.columns.push({
title: "CN-(mg/L)",
dataIndex: "cn",
sorter: true,
})
}
if (a == '氟化物') {
this.columns.push({
title: "F-(mg/L)",
dataIndex: "f",
sorter: true,
}, )
}
if (a == '挥发酚') {
this.columns.push({
title: "挥发酚(mg/L)",
dataIndex: "volatilePhenol",
sorter: true,
}, )
}
console.log("bbbb" + this.columns);
});
}
// this.$refs.table.reload({
// where: this.where,
// });
listAllRiver(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);
}
}); });
}, },
/* 重置搜索 */ /* 重置搜索 */
reset() { reset() {
this.where = { this.where = {};
surfaceWaterSectionId: this.surfaceWaterSectionId,
};
this.reload(); this.reload();
}, },
/* 导出 */ /* 导出 */

View File

@@ -7,16 +7,26 @@
:wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }">
<a-row> <a-row>
<a-form-item label="断面名称"> <a-form-item label="断面名称">
<a-select v-model:value="where.name" allowClear showSearch> <a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
<a-select-option v-for="item in sectionInfo" :key="item.sectionName">{{ item.sectionName }} <a-select-option v-for="item in sectionInfo" :key="item.sectionName" :value="item.sectionName">
{{ item.sectionName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="起始日期:"> <a-form-item label="河段名称">
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker> <a-select v-model:value="where.riverLakeLibrary" placeholder="请选择河段名称" allowClear showSearch>
<a-select-option v-for="item in waterSystemList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item> </a-form-item>
<a-form-item label="结束日期:"> <a-form-item label="监测类型">
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.endTime"></a-date-picker> <a-select v-model:value="where.monitorType" placeholder="请选择监测类型" allowClear showSearch>
<a-select-option :value="'1'">全因子</a-select-option>
<a-select-option :value="'2'">纳污红线</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="查询日期:">
<a-date-picker valueFormat="YYYY" v-model:value="where.startTime"></a-date-picker>
</a-form-item> </a-form-item>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
@@ -32,7 +42,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>
@@ -43,52 +53,127 @@
<script> <script>
import { import {
autonomyWaterFunctionTotalUrl, listAutoStandard,
} from "@/api/ecology/river-statis"; } from "@/api/ecology/river-statis";
import { import {
listInfo listInfo
} from "@/api/ecology/water/river-autonomous"; } from "@/api/ecology/water/river-autonomous";
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 {
tableColumns
} from "./colums";
import XLSX from "xlsx"; import XLSX from "xlsx";
export default { export default {
name: "RiverCollectWater", name: "AutoCollectWater",
components: {}, components: {},
data() { data() {
return { return {
data: [], data: [],
locale, locale,
datasource: {}, datasource: [],
// 表格数据接口 // 表格数据接口
url: autonomyWaterFunctionTotalUrl, // url: autonomyWaterFunctionTotalUrl,
selection: [], selection: [],
tableColumns, // tableColumns,
// 表格列配置 // 表格列配置
columns: [ columns: [{
...tableColumns, title: "监测断面名称",
dataIndex: "sectionName",
sorter: true,
},
{
title: "水质目标",
dataIndex: "waterQualityGoal",
sorter: true,
},
{
title: "1月",
dataIndex: "january",
sorter: true,
},
{
title: "2月",
dataIndex: "february",
sorter: true,
},
{
title: "3月",
dataIndex: "march",
sorter: true,
},
{
title: "4月",
dataIndex: "april",
sorter: true,
},
{
title: "5月",
dataIndex: "may",
sorter: true,
},
{
title: "6月",
dataIndex: "june",
sorter: true,
},
{
title: "7月",
dataIndex: "july",
sorter: true,
},
{
title: "8月",
dataIndex: "august",
sorter: true,
},
{
title: "9月",
dataIndex: "september",
sorter: true,
},
{
title: "10月",
dataIndex: "october",
sorter: true,
},
{
title: "11月",
dataIndex: "november",
sorter: true,
},
{
title: "12月",
dataIndex: "december",
sorter: true,
},
{
title: "达标率",
dataIndex: "standardRate",
sorter: true,
},
{
title: "达标情况",
dataIndex: "standard",
sorter: true,
},
], ],
// 表格搜索条件 // 表格搜索条件
where: {}, where: {},
sectionInfo: {}, sectionInfo: {},
loading: false, loading: false,
rules: {}, rules: {},
waterSystemList: [],
}; };
}, },
mounted() {
this.loading = true;
this.$refs.table.reload({
where: this.where,
});
this.loading = false;
},
created() { created() {
listInfo().then((res) => { listInfo().then((res) => {
if (res.data.code == 0) { if (res.data.code == 0) {
console.log(res.data.data) console.log(res.data.data)
this.visibleWater = true; this.visibleWater = true;
this.sectionInfo = res.data.data this.sectionInfo = res.data.data
res.data.data.forEach((m) => {
this.waterSystemList.push(m.waterBody);
})
this.waterSystemList = [...new Set(this.waterSystemList)];
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }
@@ -98,12 +183,77 @@
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.loading = true; this.loading = true;
console.log(this.where); listAutoStandard(this.where).then((res) => {
this.$refs.table.reload({ console.log(res.data.data);
where: this.where, if (res.data.code == 0) {
}); this.$message.success(res.data.msg);
console.log(this.url); for (var key in res.data.data) {
this.loading = false; var arr = res.data.data[key];
console.log(arr);
var target = {
sectionName:'',
january:'',
february:'',
march:'',
april:'',
may:'',
june:'',
july:'',
august:'',
september:'',
october:'',
november:'',
december:'',
};
arr.forEach(e => {
target.sectionName = e.sectionName;
var month = e.samplingTime.split("-")[1];
if (month == '01') {
target.january = e.waterQualityCategory;
}
if (month == '02') {
target.february = e.waterQualityCategory;
}
if (month == '03') {
target.march = e.waterQualityCategory;
}
if (month == '04') {
target.april = e.waterQualityCategory;
}
if (month == '05') {
target.may = e.waterQualityCategory;
}
if (month == '06') {
target.june = e.waterQualityCategory;
}
if (month == '07') {
target.july = e.waterQualityCategory;
}
if (month == '08') {
target.august = e.waterQualityCategory;
}
if (month == '09') {
target.september = e.waterQualityCategory;
}
if (month == '10') {
target.october = e.waterQualityCategory;
}
if (month == '11') {
target.november = e.waterQualityCategory;
}
if (month == '12') {
target.december = e.waterQualityCategory;
}
})
this.datasource.push(target);
}
} else {
this.$message.error(res.data.msg);
}
this.loading = false;
});
this.loading = false;
}, },
/* 重置搜索 */ /* 重置搜索 */
reset() { reset() {

View File

@@ -7,11 +7,24 @@
:wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }">
<a-row> <a-row>
<a-form-item label="断面名称"> <a-form-item label="断面名称">
<a-select v-model:value="where.name" allowClear showSearch> <a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
<a-select-option v-for="item in sectionInfo" :key="item.sectionName">{{ item.sectionName }} <a-select-option v-for="item in sectionInfo" :key="item.sectionName" :value="item.sectionName">
{{ item.sectionName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="河段名称">
<a-select v-model:value="where.riverLakeLibrary" placeholder="请选择河段名称" allowClear showSearch>
<a-select-option v-for="item in waterSystemList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="监测类型">
<a-select v-model:value="where.monitorType" placeholder="请选择监测类型" allowClear showSearch>
<a-select-option :value="'1'">全因子</a-select-option>
<a-select-option :value="'2'">纳污红线</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="起始日期:"> <a-form-item label="起始日期:">
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker> <a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker>
</a-form-item> </a-form-item>
@@ -74,6 +87,7 @@
sectionInfo: {}, sectionInfo: {},
loading: false, loading: false,
rules: {}, rules: {},
waterSystemList: [],
}; };
}, },
mounted() { mounted() {
@@ -89,6 +103,10 @@
console.log(res.data.data) console.log(res.data.data)
this.visibleWater = true; this.visibleWater = true;
this.sectionInfo = res.data.data this.sectionInfo = res.data.data
res.data.data.forEach((m) => {
this.waterSystemList.push(m.waterBody);
})
this.waterSystemList = [...new Set(this.waterSystemList)];
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }

View File

@@ -7,11 +7,24 @@
:wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }">
<a-row> <a-row>
<a-form-item label="断面名称"> <a-form-item label="断面名称">
<a-select v-model:value="where.name" allowClear showSearch> <a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
<a-select-option v-for="item in sectionInfo" :key="item.sectionName">{{ item.sectionName }} <a-select-option v-for="item in sectionInfo" :key="item.sectionName" :value="item.sectionName">
{{ item.sectionName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="河段名称">
<a-select v-model:value="where.riverLakeLibrary" placeholder="请选择河段名称" allowClear showSearch>
<a-select-option v-for="item in waterSystemList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="监测类型">
<a-select v-model:value="where.monitorType" placeholder="请选择监测类型" allowClear showSearch>
<a-select-option :value="'1'">全因子</a-select-option>
<a-select-option :value="'2'">纳污红线</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="起始日期:"> <a-form-item label="起始日期:">
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker> <a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker>
</a-form-item> </a-form-item>
@@ -74,6 +87,7 @@
sectionInfo: {}, sectionInfo: {},
loading: false, loading: false,
rules: {}, rules: {},
waterSystemList: [],
}; };
}, },
mounted() { mounted() {
@@ -89,6 +103,10 @@
console.log(res.data.data) console.log(res.data.data)
this.visibleWater = true; this.visibleWater = true;
this.sectionInfo = res.data.data this.sectionInfo = res.data.data
res.data.data.forEach((m) => {
this.waterSystemList.push(m.waterBody);
})
this.waterSystemList = [...new Set(this.waterSystemList)];
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }

View File

@@ -7,16 +7,26 @@
:wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }">
<a-row> <a-row>
<a-form-item label="断面名称"> <a-form-item label="断面名称">
<a-select v-model:value="where.name" allowClear showSearch> <a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
<a-select-option v-for="item in sectionInfo" :key="item.sectionName">{{ item.sectionName }} <a-select-option v-for="item in sectionInfo" :key="item.sectionName" :value="item.sectionName">
{{ item.sectionName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="起始日期:"> <a-form-item label="河段名称">
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker> <a-select v-model:value="where.riverLakeLibrary" placeholder="请选择河段名称" allowClear showSearch>
<a-select-option v-for="item in waterSystemList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item> </a-form-item>
<a-form-item label="结束日期:"> <a-form-item label="监测类型">
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.endTime"></a-date-picker> <a-select v-model:value="where.monitorType" placeholder="请选择监测类型" allowClear showSearch>
<a-select-option :value="'1'">全因子</a-select-option>
<a-select-option :value="'2'">纳污红线</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="查询日期:">
<a-date-picker valueFormat="YYYY" v-model:value="where.startTime"></a-date-picker>
</a-form-item> </a-form-item>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
@@ -74,6 +84,7 @@
sectionInfo: {}, sectionInfo: {},
loading: false, loading: false,
rules: {}, rules: {},
waterSystemList: [],
}; };
}, },
mounted() { mounted() {
@@ -89,6 +100,11 @@
console.log(res.data.data) console.log(res.data.data)
this.visibleWater = true; this.visibleWater = true;
this.sectionInfo = res.data.data this.sectionInfo = res.data.data
res.data.data.forEach((m) => {
this.waterSystemList.push(m.waterBody);
})
this.waterSystemList = [...new Set(this.waterSystemList)];
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }

View File

@@ -7,11 +7,24 @@
:wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }">
<a-row> <a-row>
<a-form-item label="断面名称"> <a-form-item label="断面名称">
<a-select v-model:value="where.name" allowClear showSearch> <a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
<a-select-option v-for="item in sectionInfo" :key="item.sectionName">{{ item.sectionName }} <a-select-option v-for="item in sectionInfo" :key="item.sectionName" :value="item.sectionName">
{{ item.sectionName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="河段名称">
<a-select v-model:value="where.riverLakeLibrary" placeholder="请选择河段名称" allowClear showSearch>
<a-select-option v-for="item in waterSystemList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="监测类型">
<a-select v-model:value="where.monitorType" placeholder="请选择监测类型" allowClear showSearch>
<a-select-option :value="'1'">全因子</a-select-option>
<a-select-option :value="'2'">纳污红线</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="起始日期:"> <a-form-item label="起始日期:">
<a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker> <a-date-picker valueFormat="YYYY-MM-DD" v-model:value="where.startTime"></a-date-picker>
</a-form-item> </a-form-item>
@@ -74,6 +87,7 @@
sectionInfo: {}, sectionInfo: {},
loading: false, loading: false,
rules: {}, rules: {},
waterSystemList: [],
}; };
}, },
mounted() { mounted() {
@@ -89,6 +103,10 @@
console.log(res.data.data) console.log(res.data.data)
this.visibleWater = true; this.visibleWater = true;
this.sectionInfo = res.data.data this.sectionInfo = res.data.data
res.data.data.forEach((m) => {
this.waterSystemList.push(m.waterBody);
})
this.waterSystemList = [...new Set(this.waterSystemList)];
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }

View File

@@ -7,11 +7,24 @@
:wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }"> :wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }">
<a-row> <a-row>
<a-form-item label="断面名称"> <a-form-item label="断面名称">
<a-select v-model:value="where.name" allowClear showSearch> <a-select allow-clear mode="multiple" placeholder="请选择断面名称" v-model:value="where.name">
<a-select-option v-for="item in sectionInfo" :key="item.sectionName">{{ item.sectionName }} <a-select-option v-for="item in sectionInfo" :key="item.sectionName" :value="item.sectionName">
{{ item.sectionName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="河段名称">
<a-select v-model:value="where.riverLakeLibrary" placeholder="请选择河段名称" allowClear showSearch>
<a-select-option v-for="item in waterSystemList" :key="item">{{ item }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="监测类型">
<a-select v-model:value="where.monitorType" placeholder="请选择监测类型" allowClear showSearch>
<a-select-option :value="'1'">全因子</a-select-option>
<a-select-option :value="'2'">纳污红线</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="起始日期:"> <a-form-item label="起始日期:">
<a-date-picker valueFormat="YYYY-MM-DD " v-model:value="where.startTime"></a-date-picker> <a-date-picker valueFormat="YYYY-MM-DD " v-model:value="where.startTime"></a-date-picker>
</a-form-item> </a-form-item>
@@ -76,6 +89,7 @@
sectionInfo: {}, sectionInfo: {},
loading: false, loading: false,
rules: {}, rules: {},
waterSystemList: [],
}; };
}, },
mounted() { mounted() {
@@ -92,6 +106,10 @@
console.log(res.data.data) console.log(res.data.data)
this.visibleWater = true; this.visibleWater = true;
this.sectionInfo = res.data.data this.sectionInfo = res.data.data
res.data.data.forEach((m) => {
this.waterSystemList.push(m.waterBody);
})
this.waterSystemList = [...new Set(this.waterSystemList)];
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }