饮用水更换接口
This commit is contained in:
@@ -142,7 +142,11 @@ export const villageOverStandardCount = function (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
|
||||
|
||||
export const filterList = function (data) {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
import XLSX from "xlsx";
|
||||
|
||||
import {
|
||||
waterQualityCountData
|
||||
villageWaterQualityCountData as waterQualityCountData
|
||||
} from "@/api/ecology/new-drinking-water";
|
||||
|
||||
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.datasource = []
|
||||
}else{
|
||||
// let newData = []
|
||||
let newData = []
|
||||
const resData = res.data.data || []
|
||||
// for(let i in resData){
|
||||
// newData.push(...resData[i])
|
||||
// }
|
||||
this.datasource = resData
|
||||
for(let i in resData){
|
||||
newData.push(...resData[i])
|
||||
}
|
||||
this.datasource = newData
|
||||
}
|
||||
}).catch(()=>{
|
||||
this.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user