mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
修改教师端我的授课记录查询和导出
This commit is contained in:
@@ -133,11 +133,14 @@ export default {
|
||||
return {
|
||||
pageData: [],
|
||||
keyword: '',
|
||||
pageInfo: {},
|
||||
pageInfo: {
|
||||
pageIndex:1,
|
||||
pageSize:10,
|
||||
},
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.recordList(1);
|
||||
this.recordList();
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo'])
|
||||
@@ -189,15 +192,14 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
recordList(pageIndex) {
|
||||
// 如果pageIndex未定义或未赋值,则默认初始值
|
||||
pageIndex = pageIndex || 1;
|
||||
recordList() {
|
||||
console.log('========pageIndex', this.pageInfo.pageIndex)
|
||||
console.log('========pageSize', this.pageInfo.pageSize)
|
||||
|
||||
let req = {
|
||||
userId: this.userInfo.sysId,
|
||||
courseName: this.keyword,
|
||||
page: pageIndex,
|
||||
pageSize: 10
|
||||
page: this.pageInfo.pageIndex,
|
||||
pageSize: this.pageInfo.pageSize
|
||||
}
|
||||
apiCourse.getListByToken(req).then(res => {
|
||||
if (res.status == 200) {
|
||||
@@ -216,8 +218,9 @@ export default {
|
||||
|
||||
// 每页显示的条数事件
|
||||
handleSizeChange(val) {
|
||||
this.pageInfo.pageIndex = 1;
|
||||
this.pageInfo.pageSize = val;
|
||||
this.recordList(1);
|
||||
this.recordList();
|
||||
},
|
||||
// 显示制定页的数据
|
||||
handleCurrentChange(val) {
|
||||
|
||||
Reference in New Issue
Block a user