This commit is contained in:
weicw
2022-01-25 13:36:57 +08:00
2 changed files with 21 additions and 6 deletions

View File

@@ -39,7 +39,7 @@
v-model:value="queryParams.riverType"
@change="handleRiverChange"
allowClear
placeholder="请选择区域等级"
placeholder="请选择江河类别"
>
<a-select-option
v-for="item in regionLevelOptions"
@@ -65,7 +65,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-form-item label="监测指标:">
<a-select
mode="multiple"
:mode="selectModel"
v-model:value="queryParams.monitorIndexList"
:options="indicatorOptions"
placeholder="请选择监测指标"
@@ -143,6 +143,7 @@ export default {
yearOptions: [],
indicatorOptions: [
],
selectModel:'multiple',
allIndexOptions:[
{ label: "全选", value: "全选", limit:"0",color:"#209f53" },
{ label: "五日生化需氧量", value: "五日生化需氧量", limit:"3",color:"#209f53" },
@@ -171,6 +172,15 @@ export default {
{ label: "全因子", value: "全因子", limit:"0.025",color:"#209f53" },
{ label: "纳污红线", value: "纳污红线", limit:"0.5",color:"#209f53" },
],
waterIndexOption:[
{ label: "全选", value: "全选", limit:"0",color:"#209f53" },
// { label: "水温", value: "水温", limit:"2",color:"#209f53" },
{ label: "ph", value: "ph", limit:"9",color:"#209f53" },
{ label: "溶解氧", value: "溶解氧", limit:"6",color:"#bbb443" },
{ label: "高锰酸盐指数", value: "高锰酸盐指数", limit:"4",color:"#209f53" },
{ label: "氨氮", value: "氨氮", limit:"0.5",color:"#ad3abe" },
{ label: "总磷", value: "总磷", limit:"0.025",color:"#20749f" },
],
innerSection: [], // 内湖断面
specialSection: [], // 专湖断面
@@ -260,8 +270,10 @@ export default {
if(e=='全因子' || e=='纳污红线'){
this.yDisable = true
this.selectModel = 'default'
this.queryParams.yco = 'Yco_3'
}else{
this.selectModel = 'multiple'
this.yDisable = false
}
@@ -296,6 +308,9 @@ export default {
handleRiverChange(type){
this.queryParams.placeList = [];
this.queryParams.monitorIndexList = [];
this.yDisable = false
if(type){
this.sectionOptions = []
this.indicatorOptions = []
@@ -330,7 +345,7 @@ export default {
})
}
if(type==this.regionLevelOptions[3].value){
this.indicatorOptions = [...this.allIndexOptions];
this.indicatorOptions = [...this.waterIndexOption];
getRiverStationPoint().then((res) => {
if (res.data.code == 0) {
this.sectionOptions = this.buildSectionSelect(res.data.data)
@@ -340,7 +355,7 @@ export default {
})
}
}
console.log('this.sectionOptions',this.sectionOptions)
// console.log('this.sectionOptions',this.sectionOptions)
},
// 趋势图
drawTrend() {