江河模块修改
This commit is contained in:
@@ -7,8 +7,28 @@
|
||||
:wrapper-col="{ md: { span: 16 }, sm: { span: 24 } }">
|
||||
<a-row>
|
||||
<a-form-item label="断面名称">
|
||||
<a-select v-model:value="where.name" allowClear showSearch>
|
||||
<a-select-option v-for="item in sectionInfo" :key="item.sectionName">{{ item.sectionName }}
|
||||
<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" 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.waterSystem" placeholder="请选择水系名称" 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>
|
||||
@@ -42,7 +62,8 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
listMonthCompositeIndex
|
||||
listAvgCompositeIndex,
|
||||
listTargetInfo,
|
||||
} from "@/api/ecology/river-statis";
|
||||
import {
|
||||
listInfo
|
||||
@@ -103,14 +124,35 @@
|
||||
sectionInfo: {},
|
||||
loading: false,
|
||||
rules: {},
|
||||
waterBodyList: [],
|
||||
waterSystemList: [],
|
||||
targetInfo:{},
|
||||
targetInfoList:[],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
listInfo().then((res) => {
|
||||
if (res.data.code == 0) {
|
||||
console.log(res.data.data)
|
||||
this.visibleWater = true;
|
||||
this.sectionInfo = res.data.data
|
||||
res.data.data.forEach((m) => {
|
||||
this.waterSystemList.push(m.waterBody);
|
||||
this.waterBodyList.push(m.riverSystem);
|
||||
})
|
||||
this.waterSystemList = [...new Set(this.waterSystemList)];
|
||||
this.waterBodyList = [...new Set(this.waterBodyList)];
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
}
|
||||
}),
|
||||
listTargetInfo().then((res) => {
|
||||
if (res.data.code == 0) {
|
||||
console.log(res.data.data)
|
||||
this.targetInfo = res.data.data
|
||||
res.data.data.forEach((m) => {
|
||||
this.targetInfoList.push(m.indicatorName);
|
||||
})
|
||||
this.targetInfoList = [...new Set(this.targetInfoList)];
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
}
|
||||
@@ -121,7 +163,7 @@
|
||||
reload() {
|
||||
this.loading=true;
|
||||
this.momData = [];
|
||||
listMonthCompositeIndex(this.where).then((res) => {
|
||||
listAvgCompositeIndex(this.where).then((res) => {
|
||||
console.log(res.data.data);
|
||||
if (res.data.code == 0) {
|
||||
this.$message.success(res.data.msg);
|
||||
|
||||
Reference in New Issue
Block a user