From 1b737e4a7a7e78f75370b3d8cabd41cf080b2214 Mon Sep 17 00:00:00 2001 From: chensg Date: Fri, 13 Jun 2025 17:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=B8=BApost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/OvervoewnewModal.vue | 42 ++++++++++++++++++--------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/src/views/report/OvervoewnewModal.vue b/src/views/report/OvervoewnewModal.vue index da8639b8..d1cadca6 100644 --- a/src/views/report/OvervoewnewModal.vue +++ b/src/views/report/OvervoewnewModal.vue @@ -397,45 +397,58 @@ data.tableLoading = true; if(props.reportType=='project' && props.secondReportType=='student'){ const res = await api.projectStudentReportList({page: data.pageNo,size: data.pageSize,projectId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='project' && props.secondReportType=='task'){ const res = await api.projectTaskReportList({page: data.pageNo,size: data.pageSize,projectId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='router' && props.secondReportType=='chapter'){ const res = await api.routerChapterReportList({page: data.pageNo,size: data.pageSize,routerId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='router' && props.secondReportType=='student'){ const res = await api.routerStudentReportList({page: data.pageNo,size: data.pageSize,routerId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='router' && props.secondReportType=='task'){ const res = await api.routerTaskReportList({page: data.pageNo,size: data.pageSize,routerId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='offcourse' && props.secondReportType=='teacher'){ const res = await api.offCourseTeacherReportList({page: data.pageNo,size: data.pageSize,offCourseId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='offcourse' && props.secondReportType=='student'){ const res = await api.offCourseStudentReportList({page: data.pageNo,size: data.pageSize,offCourseId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='online' && props.secondReportType=='content'){ const res = await api.onlineCourseContentReportList({page: data.pageNo,size: data.pageSize,courseId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='online' && props.secondReportType=='student'){ const res = await api.onlineCourseStudentReportList({page: data.pageNo,size: data.pageSize,courseId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='exam' && props.secondReportType=='student'){ const res = await api.examTestStudentReportList({page: data.pageNo,size: data.pageSize,testId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='case' && props.secondReportType=='author'){ const res = await api.caseAuthorReportList({page: data.pageNo,size: data.pageSize,caseId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='professional' && props.secondReportType=='task'){ const res = await api.professionalTaskReportList({page: data.pageNo,size: data.pageSize,growthId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; }else if(props.reportType=='professional' && props.secondReportType=='student'){ const res = await api.professionalStudentReportList({page: data.pageNo,size: data.pageSize,growthId: props.currentId}); - data.dataSource = res.data.result.rows || []; + data.dataSource = res.data.records || []; + data.total = res.data.total; } - state.tableLoading = false; + data.tableLoading = false; }; const emit = defineEmits({}) @@ -445,6 +458,7 @@ // 监听弹出层分页变化方法 const modelChangePagination = (page) =>{ data.pageNo = page; + console.log(data.pageNo) getTableData(); }