饮用水全部捆绑接口
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
/>
|
||||
<!-- 表格 -->
|
||||
<ele-pro-table
|
||||
v-model:selection="selectionList"
|
||||
ref="table"
|
||||
row-key="drinkingWaterId"
|
||||
:datasource="datasource"
|
||||
@@ -115,8 +114,9 @@ export default {
|
||||
let newData = []
|
||||
const resData = res.data.data || {}
|
||||
for(let i in resData){
|
||||
newData.push(resData[i])
|
||||
newData.push(...resData[i])
|
||||
}
|
||||
console.log('newData',newData)
|
||||
this.datasource = newData
|
||||
}
|
||||
}).catch(()=>{
|
||||
@@ -156,7 +156,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