Merge branch 'master' of http://git.gxwebsoft.com/shengtaiting/shengtai-admin
This commit is contained in:
@@ -22,6 +22,6 @@ export const getRiverStationPoint = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 统计图表
|
// 统计图表
|
||||||
export const riverWaterTrend = function () {
|
export const riverWaterTrend = function (data) {
|
||||||
return axios.get('/api/waterFunctionArea/trendChart/data')
|
return axios.post('/waterFunctionArea/trendChart/data',data)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
v-model:value="queryParams.riverType"
|
v-model:value="queryParams.riverType"
|
||||||
@change="handleRiverChange"
|
@change="handleRiverChange"
|
||||||
allowClear
|
allowClear
|
||||||
placeholder="请选择区域等级"
|
placeholder="请选择江河类别"
|
||||||
>
|
>
|
||||||
<a-select-option
|
<a-select-option
|
||||||
v-for="item in regionLevelOptions"
|
v-for="item in regionLevelOptions"
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
<a-col :lg="6" :md="12" :sm="24" :xs="24">
|
<a-col :lg="6" :md="12" :sm="24" :xs="24">
|
||||||
<a-form-item label="监测指标:">
|
<a-form-item label="监测指标:">
|
||||||
<a-select
|
<a-select
|
||||||
mode="multiple"
|
:mode="selectModel"
|
||||||
v-model:value="queryParams.monitorIndexList"
|
v-model:value="queryParams.monitorIndexList"
|
||||||
:options="indicatorOptions"
|
:options="indicatorOptions"
|
||||||
placeholder="请选择监测指标"
|
placeholder="请选择监测指标"
|
||||||
@@ -143,6 +143,7 @@ export default {
|
|||||||
yearOptions: [],
|
yearOptions: [],
|
||||||
indicatorOptions: [
|
indicatorOptions: [
|
||||||
],
|
],
|
||||||
|
selectModel:'multiple',
|
||||||
allIndexOptions:[
|
allIndexOptions:[
|
||||||
{ label: "全选", value: "全选", limit:"0",color:"#209f53" },
|
{ label: "全选", value: "全选", limit:"0",color:"#209f53" },
|
||||||
{ label: "五日生化需氧量", value: "五日生化需氧量", limit:"3",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.025",color:"#209f53" },
|
||||||
{ label: "纳污红线", value: "纳污红线", limit:"0.5",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: [], // 内湖断面
|
innerSection: [], // 内湖断面
|
||||||
specialSection: [], // 专湖断面
|
specialSection: [], // 专湖断面
|
||||||
@@ -260,8 +270,10 @@ export default {
|
|||||||
|
|
||||||
if(e=='全因子' || e=='纳污红线'){
|
if(e=='全因子' || e=='纳污红线'){
|
||||||
this.yDisable = true
|
this.yDisable = true
|
||||||
|
this.selectModel = 'default'
|
||||||
this.queryParams.yco = 'Yco_3'
|
this.queryParams.yco = 'Yco_3'
|
||||||
}else{
|
}else{
|
||||||
|
this.selectModel = 'multiple'
|
||||||
this.yDisable = false
|
this.yDisable = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -296,6 +308,9 @@ export default {
|
|||||||
|
|
||||||
handleRiverChange(type){
|
handleRiverChange(type){
|
||||||
this.queryParams.placeList = [];
|
this.queryParams.placeList = [];
|
||||||
|
this.queryParams.monitorIndexList = [];
|
||||||
|
this.yDisable = false
|
||||||
|
|
||||||
if(type){
|
if(type){
|
||||||
this.sectionOptions = []
|
this.sectionOptions = []
|
||||||
this.indicatorOptions = []
|
this.indicatorOptions = []
|
||||||
@@ -330,7 +345,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(type==this.regionLevelOptions[3].value){
|
if(type==this.regionLevelOptions[3].value){
|
||||||
this.indicatorOptions = [...this.allIndexOptions];
|
this.indicatorOptions = [...this.waterIndexOption];
|
||||||
getRiverStationPoint().then((res) => {
|
getRiverStationPoint().then((res) => {
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
this.sectionOptions = this.buildSectionSelect(res.data.data)
|
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() {
|
drawTrend() {
|
||||||
|
|||||||
Reference in New Issue
Block a user