Browse Source

elective detail - pagination

hare8999@163.com 2 years ago
parent
commit
ccf629d387
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/elective/generation/detail.vue

+ 1 - 1
src/views/elective/generation/detail.vue

@@ -213,7 +213,7 @@ export default {
       this.loading = true
       this.loading = true
       this.majorsMap = null
       this.majorsMap = null
       getElectiveGenerationDetails(params).then(res => {
       getElectiveGenerationDetails(params).then(res => {
-        this.total = res['total'] || 0
+        this.total = res['total'] || res.data?.total || 0
         this.detailWrapper = res.data
         this.detailWrapper = res.data
 
 
         const studentIds = res.data.details?.map(d => d['studentId']).toString()
         const studentIds = res.data.details?.map(d => d['studentId']).toString()