成绩管理分页

Branch_d40a2540
yujialong 1 year ago
parent bf0bfbd9a6
commit 2f18b9e99c
  1. 18
      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 {

Loading…
Cancel
Save