饮用水更换接口

This commit is contained in:
庞东林
2022-01-22 12:08:42 +08:00
parent 356923bff6
commit 830a63f92f
4 changed files with 12 additions and 8 deletions

View File

@@ -1 +1 @@
VUE_APP_API_BASE_URL=http://localhost:10001/api VUE_APP_API_BASE_URL=http://1.14.132.108:10002/api

View File

@@ -142,7 +142,11 @@ export const villageOverStandardCount = function (data) {
return axios.post(villageOverStandardtUrl,data) return axios.post(villageOverStandardtUrl,data)
} }
//农村—水质统计
export const villageWaterQualityCountUrl = '/drinkingWaterVillage/drinkingWaterVillage/getVillageWaterQualityStatistics';
export const villageWaterQualityCountData = function (data) {
return axios.post(villageWaterQualityCountUrl,data)
}
// /api/waterFunctionArea/drinkingWaterEvaluationStandard // /api/waterFunctionArea/drinkingWaterEvaluationStandard
export const filterList = function (data) { export const filterList = function (data) {

View File

@@ -32,7 +32,7 @@
import XLSX from "xlsx"; import XLSX from "xlsx";
import { import {
waterQualityCountData villageWaterQualityCountData as waterQualityCountData
} from "@/api/ecology/new-drinking-water"; } from "@/api/ecology/new-drinking-water";
import locale from "ant-design-vue/es/date-picker/locale/zh_CN"; import locale from "ant-design-vue/es/date-picker/locale/zh_CN";

View File

@@ -105,12 +105,12 @@ export default {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
this.datasource = [] this.datasource = []
}else{ }else{
// let newData = [] let newData = []
const resData = res.data.data || [] const resData = res.data.data || []
// for(let i in resData){ for(let i in resData){
// newData.push(...resData[i]) newData.push(...resData[i])
// } }
this.datasource = resData this.datasource = newData
} }
}).catch(()=>{ }).catch(()=>{
this.loading = false; this.loading = false;