|
|
@ -71,7 +71,7 @@ import memberApi from '@/api/member.js'; |
|
|
//下拉刷新 |
|
|
//下拉刷新 |
|
|
async onPullDownRefresh() { |
|
|
async onPullDownRefresh() { |
|
|
//重置为第一页 |
|
|
//重置为第一页 |
|
|
await this.loadData() |
|
|
await this.resetFilteredData() |
|
|
await this.getList() |
|
|
await this.getList() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
@ -89,14 +89,12 @@ import memberApi from '@/api/member.js'; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//重置为第一页 |
|
|
//重置为第一页 |
|
|
async loadData() { |
|
|
async resetFilteredData() { |
|
|
this.isReachedBottom = false; // 重置状态,以便下次触发加载更多 |
|
|
this.isReachedBottom = false; // 重置状态,以便下次触发加载更多 |
|
|
|
|
|
|
|
|
this.filteredData.page = 1//当前页码 |
|
|
this.filteredData.page = 1//当前页码 |
|
|
this.filteredData.limit = 10//每页返回数据条数 |
|
|
this.filteredData.limit = 10//每页返回数据条数 |
|
|
this.filteredData.total = 10//数据总条数 |
|
|
this.filteredData.total = 10//数据总条数 |
|
|
|
|
|
|
|
|
this.tableList = [] |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//获取作业列表 |
|
|
//获取作业列表 |
|
|
@ -114,6 +112,11 @@ import memberApi from '@/api/member.js'; |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(data.page == 1){ |
|
|
|
|
|
this.tableList = [] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let res = await memberApi.assignmentsList(data) |
|
|
let res = await memberApi.assignmentsList(data) |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
this.isReachedBottom = false; |
|
|
this.isReachedBottom = false; |
|
|
|