WANG 6 anos atrás
pai
commit
9acaa21eb4
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7 1
      src/modules/examwork/view/examInfo.vue

+ 7 - 1
src/modules/examwork/view/examInfo.vue

@@ -160,7 +160,9 @@
             @current-change="handleCurrentChange"
             :current-page="currentPage"
             :page-size="pageSize"
-            layout="total, prev, pager, next, jumper"
+            :page-sizes="[10, 30, 50, 100]"
+            @size-change="handleSizeChange"
+            layout="total, sizes, prev, pager, next, jumper"
             :total="total"
           >
           </el-pagination>
@@ -294,6 +296,10 @@ export default {
       this.currentPage = val;
       this.searchForm();
     },
+    handleSizeChange(val) {
+      this.pageSize = val;
+      this.searchForm();
+    },
     //查询方法
     searchForm() {
       var param = new URLSearchParams(this.formSearch);