shilipojs 2 tahun lalu
induk
melakukan
b4cf26df59
1 mengubah file dengan 4 tambahan dan 19 penghapusan
  1. 4 19
      src/views/career/components/CollegesLine.vue

+ 4 - 19
src/views/career/components/CollegesLine.vue

@@ -53,16 +53,10 @@
         <el-table-column prop="seat" label="专业最低分位次" align="center"></el-table-column>
         <el-table-column width="80" prop="numReal" label="录取人数" align="center"></el-table-column>
       </el-table>
-      <el-pagination
-        style="margin-top:10px;"
-        :page-sizes="[10,20,30,40,50,60,70,80,90,100]"
-        :page-size=tableParams.pageSize
-        layout="prev,pager,next,jumper,total,sizes"
-        :total="examRecordTotal"
-        @current-change="currentChange"
-        @size-change="sizeChange"
-      >
-      </el-pagination>
+      <pagination class="mt10" :total="examRecordTotal" :autoScroll="false" @pagination="getMarjorList"
+                  :page.sync="tableParams.pageNum"
+                  :limit.sync="tableParams.pageSize"
+      ></pagination>
     </div>
     <el-dialog :visible.sync="dialongParams.visible" width="80%">
       <select-university @changeUniversity="changeUniversity"></select-university>
@@ -109,15 +103,6 @@
       this.getMarjorYears()
     },
     methods: {
-      sizeChange(e){
-        this.tableParams.pageSize=e
-        this.getMarjorList()
-      },
-      currentChange(e){
-        //页数
-        this.tableParams.pageNum=e
-        this.getMarjorList()
-      },
       goDetails(id){
         this.$router.push({ name: 'UniversityDetail', params: { id: id } })
       },