浏览代码

元数据分类管理

duy 1 年之前
父节点
当前提交
e00f93be38
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/views/tentative/metadata.vue

+ 8 - 1
src/views/tentative/metadata.vue

@@ -90,10 +90,11 @@
         </el-table>
         <div class="text-align-c">
           <el-pagination
+          @size-change="handleSizeChange"
             @current-change="handleCurrentChange"
             :current-page.sync="page2.current"
             :page-sizes="[20, 40, 60, 100]"
-            :page-size="100"
+            :page-size="page2.pageSize"
             layout="total, prev, pager, next,sizes"
             :total="page2.total">
           </el-pagination>
@@ -536,9 +537,15 @@ export default {
     },
 
     handleCurrentChange(index){
+    
       this.page2.current = index;
       this.getAllocationList();
     },
+    handleSizeChange(val) {
+      console.log(val,'val');
+      this.page2.pageSize = val;
+      this.getAllocationList();
+      },
 
     tableFormatter(row, column, cellValue){
       //console.log(row,'row');