饮用水全部捆绑接口
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
/>
|
||||
<!-- 表格 -->
|
||||
<ele-pro-table
|
||||
v-model:selection="selectionList"
|
||||
ref="table"
|
||||
row-key="drinkingWaterId"
|
||||
:datasource="datasource"
|
||||
@@ -37,7 +36,7 @@ import {
|
||||
|
||||
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
|
||||
|
||||
import Search from "./../components/countySearch.vue";
|
||||
import Search from "./../components/citySearch.vue";
|
||||
|
||||
export default {
|
||||
name: "waterQuality",
|
||||
@@ -115,7 +114,7 @@ export default {
|
||||
let newData = []
|
||||
const resData = res.data.data || {}
|
||||
for(let i in resData){
|
||||
newData.push(resData[i])
|
||||
newData.push(...resData[i])
|
||||
}
|
||||
this.datasource = newData
|
||||
}
|
||||
@@ -156,7 +155,7 @@ export default {
|
||||
const arr = [];
|
||||
const th = columns.map((item) => item.title);
|
||||
arr.push(th);
|
||||
this.data.forEach((d) => {
|
||||
this.datasource.forEach((d) => {
|
||||
const td = columns.map((item) => d[item.dataIndex]);
|
||||
arr.push(td);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user