饮用水更换接口
This commit is contained in:
@@ -1 +1 @@
|
|||||||
VUE_APP_API_BASE_URL=http://localhost:10001/api
|
VUE_APP_API_BASE_URL=http://1.14.132.108:10002/api
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user