修改接口地址

This commit is contained in:
庞东林
2022-01-25 10:39:44 +08:00
parent 7ba88f9249
commit 8257e74ec5
2 changed files with 7 additions and 5 deletions

View File

@@ -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)
} }

View File

@@ -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"
@@ -173,6 +173,8 @@ export default {
{ label: "纳污红线", value: "纳污红线", limit:"0.5",color:"#209f53" }, { label: "纳污红线", value: "纳污红线", limit:"0.5",color:"#209f53" },
], ],
waterIndexOption:[ waterIndexOption:[
{ label: "全选", value: "全选", limit:"0",color:"#209f53" },
{ label: "水温", value: "水温", limit:"2",color:"#209f53" },
{ label: "ph", value: "ph", limit:"9",color:"#209f53" }, { label: "ph", value: "ph", limit:"9",color:"#209f53" },
{ label: "溶解氧", value: "溶解氧", limit:"6",color:"#bbb443" }, { label: "溶解氧", value: "溶解氧", limit:"6",color:"#bbb443" },
{ label: "高锰酸盐指数", value: "高锰酸盐指数", limit:"4",color:"#209f53" }, { label: "高锰酸盐指数", value: "高锰酸盐指数", limit:"4",color:"#209f53" },
@@ -343,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)