From 2f18b9e99c2e18f6a495d1f04c14e28fde9b60c6 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 27 Jul 2023 11:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E7=BB=A9=E7=AE=A1=E7=90=86=E5=88=86?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/achievement/teach/index.vue | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/pages/achievement/teach/index.vue b/src/pages/achievement/teach/index.vue index d819cdc..692492a 100644 --- a/src/pages/achievement/teach/index.vue +++ b/src/pages/achievement/teach/index.vue @@ -340,9 +340,8 @@ export default { async getData () { // 考核和练习调不同接口 const res = this.permissions ? - await this.$post(`${this.api.getAssessmentDetail}?pageNum=${this.page}&pageSize=${this.pageSize}&assessmentId=${this.id}&classId=${this.classId}&keyword=${this.keyword}`) : - await this.$post(`${this.api.getPracticeDetail}?pageNum=${this.page}&pageSize=${this.pageSize}&projectId=${this.id}&keyword=${this.keyword}`) - this.listData = res.page.records + await this.$post(`${this.api.getAssessmentDetail}?pageNum=${this.page}&pageSize=10000&assessmentId=${this.id}&classId=${this.classId}&keyword=${this.keyword}`) : + await this.$post(`${this.api.getPracticeDetail}?pageNum=${this.page}&pageSize=10000&projectId=${this.id}&keyword=${this.keyword}`) this.listDataAll = res.page.records this.total = res.page.total this.avgScore = (+res.avgScore).toFixed(2) @@ -352,14 +351,10 @@ export default { this.errorAnalysis = res.errorAnalysis this.max = res.highestErrorRate || {} this.min = res.minimumErrorRate || {} - // this.handlePage() + this.handlePage() this.getChart() this.errorChart() }, - handleCurrentChange (val) { - this.page = val - this.getData() - }, // 活跃度 async getActivity () { // 考核和练习调不同接口 @@ -458,13 +453,17 @@ export default { handleSelectionChange (val) { // 多选 this.multipleSelection = val; }, + handleCurrentChange (val) { // 切换分页 + this.page = val; + this.handlePage(); + }, handleSelectionActivationChange (val) { // 多选 this.multipleSelectionActivation = val; }, handleCurrentActivationChange (val) { // 切换分页 this.pageActivation = val; - this.getActivity(); + this.handlePage(); }, // 导出(有勾选:就导勾选中的;没有勾选:就导全部) @@ -714,7 +713,6 @@ export default { .wrong { .line { display: flex; - // justify-content: center; width: 920px; margin: 0 auto 10px; .jud-name {