Commit 2e1bc89f authored by pengyunqian's avatar pengyunqian

update:分页

parent 2472b66a
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
width="width" width="width"
> >
<template #default="scope"> <template #default="scope">
{{ scope.row.list.map((item) => item.deliverer_name).join(",") }} {{ scope.row.list.map((item) => item.deliverer_name).join("") }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="prop" label="操作" width="width" align="center"> <el-table-column prop="prop" label="操作" width="width" align="center">
...@@ -47,15 +47,12 @@ ...@@ -47,15 +47,12 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 页码区 --> <!-- 页码区 -->
<el-pagination <Pagination
class="pagination" @current-change="handleCurrentChange"
@current-change="handleCurrentChange" v-model.current-page="page"
v-model.current-page="page" :page-size="pageSize"
:page-size="pageSize" :total="total"
layout="prev, pager, next, jumper, ->,page , total" ></Pagination>
:total="total"
>
</el-pagination>
<!-- 添加配送员弹框 --> <!-- 添加配送员弹框 -->
<el-dialog <el-dialog
title="添加配送员" title="添加配送员"
...@@ -204,6 +201,7 @@ ...@@ -204,6 +201,7 @@
</template> </template>
<script> <script>
import Layout from "../layout/index.vue"; import Layout from "../layout/index.vue";
import Pagination from "../components/Pagination/index.vue";
import { import {
getDelivererList, getDelivererList,
getList, getList,
...@@ -216,6 +214,7 @@ export default { ...@@ -216,6 +214,7 @@ export default {
name: "Distrib", name: "Distrib",
components: { components: {
Layout, Layout,
Pagination
}, },
data() { data() {
return { return {
...@@ -257,13 +256,8 @@ export default { ...@@ -257,13 +256,8 @@ export default {
this.getMarketingList() this.getMarketingList()
}, },
methods: { methods: {
// getChecked(row) {
// console.log(row.checked);
// return !!row.checked;
// },
selectGoodsChange(val) { selectGoodsChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
// this.ruleForm.goods_spu_id = e.map((item) => item.goods_sku_id);
}, },
// 页码变化 // 页码变化
handleCurrentChange(e) { handleCurrentChange(e) {
......
<template>
<div class="block">
<el-pagination
class="pagination"
layout="prev, pager, next, jumper, ->,page , total"
v-bind="$attrs"
v-on="$listener"
>
</el-pagination>
</div>
</template>
<script>
export default {
name: 'Pagination'
};
</script>
<style lang="less">
.block {
margin-top: 50px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment