Browse Source

调整分页

yuhaitao14 7 years ago
parent
commit
d4e832d88b

+ 1 - 1
shop/static/manager/src/components/page/GoodsManager.vue

@@ -86,7 +86,7 @@
             </el-table-column>
             </el-table-column>
         </el-table>
         </el-table>
         <div class="page">
         <div class="page">
-            <el-pagination background layout="total, prev, pager, next,jumper" @current-change="nextPage" :total="totalCount">
+            <el-pagination background layout="total, prev, pager, next,jumper" @current-change="nextPage" :page-size="pageSize" :total="totalCount">
             </el-pagination>
             </el-pagination>
         </div>
         </div>
     </div>
     </div>

+ 2 - 2
shop/static/manager/src/components/page/faq/FAQManage.vue

@@ -27,7 +27,7 @@
             </el-table-column>
             </el-table-column>
         </el-table>
         </el-table>
         <div class="page">
         <div class="page">
-            <el-pagination background layout="total, prev, pager, next,jumper" @current-change="nextPage" :total="totalCount">
+            <el-pagination background layout="total, prev, pager, next,jumper" @current-change="nextPage" :page-size="pageSize" :total="totalCount">
             </el-pagination>
             </el-pagination>
         </div>
         </div>
     </div>
     </div>
@@ -39,7 +39,7 @@ export default {
       items: [],
       items: [],
       status: '-1',
       status: '-1',
       page: 1,
       page: 1,
-      pageSize: 20,
+      pageSize: 2,
       totalCount: 0
       totalCount: 0
     }
     }
   },
   },