diff --git a/src/main.js b/src/main.js index 252fcea..d039b1f 100644 --- a/src/main.js +++ b/src/main.js @@ -16,7 +16,12 @@ import './global.less' import { Dialog } from '@/components' Vue.config.productionTip = false - +Vue.prototype.pagination = { + total: 0, // 数据总数 + page: 1, // 当前页码 + pageSize: 15, // 每页显示条数 + showQuickJumper: true, // 显示跳转输入框 +}, // mount axios Vue.$http and this.$http Vue.use(VueAxios) Vue.use(Dialog) diff --git a/src/views/dataCenter/goods/Index.vue b/src/views/dataCenter/goods/Index.vue index 644c11f..07d3cd4 100644 --- a/src/views/dataCenter/goods/Index.vue +++ b/src/views/dataCenter/goods/Index.vue @@ -314,12 +314,6 @@ export default { }, data() { return { - pagination: { - total: 0, // 数据总数 - page: 1, // 当前页码 - pageSize: 15, // 每页显示条数 - showQuickJumper: true, // 显示跳转输入框 - }, // 当前表单元素 searchForm: this.$form.createForm(this), // 商品分类列表 diff --git a/src/views/dataCenter/goods/category/Index.vue b/src/views/dataCenter/goods/category/Index.vue index fee1506..64a4dbc 100644 --- a/src/views/dataCenter/goods/category/Index.vue +++ b/src/views/dataCenter/goods/category/Index.vue @@ -9,9 +9,10 @@ rowKey="category_id" :columns="columns" :dataSource="categoryList" - :defaultExpandAllRows="true" + :defaultExpandAllRows="false" :expandIconColumnIndex="1" - :pagination="false" + :pagination="pagination" + :pageSize="15" :loading="isLoading" > diff --git a/src/views/dataCenter/goods/import/List.vue b/src/views/dataCenter/goods/import/List.vue index 7108db1..b3e9977 100644 --- a/src/views/dataCenter/goods/import/List.vue +++ b/src/views/dataCenter/goods/import/List.vue @@ -36,6 +36,7 @@ :loading="isLoading" :columns="columns" :data="loadData" + :pagination="pagination" :pageSize="15" > diff --git a/src/views/menu/access/index.vue b/src/views/menu/access/index.vue index 2c09481..00146a8 100644 --- a/src/views/menu/access/index.vue +++ b/src/views/menu/access/index.vue @@ -10,7 +10,8 @@ :columns="columns" :data-source="list" :loading="isLoading" - :pagination="false" + :pagination="pagination" + :pageSize="15" > 编辑 diff --git a/src/views/menu/index.vue b/src/views/menu/index.vue index 047860d..7fb7537 100644 --- a/src/views/menu/index.vue +++ b/src/views/menu/index.vue @@ -10,7 +10,8 @@ :columns="columns" :data-source="list" :loading="isLoading" - :pagination="false" + :pagination="pagination" + :pageSize="15" > diff --git a/src/views/store/index.vue b/src/views/store/index.vue index ff4dfdb..67dbdb0 100644 --- a/src/views/store/index.vue +++ b/src/views/store/index.vue @@ -10,7 +10,7 @@ rowKey="store_id" :columns="columns" :data="loadData" - showPagination="auto" + :pagination="pagination" :pageSize="15" > diff --git a/src/views/store/recycle.vue b/src/views/store/recycle.vue index 65163c3..35e65fe 100644 --- a/src/views/store/recycle.vue +++ b/src/views/store/recycle.vue @@ -7,7 +7,7 @@ rowKey="store_id" :columns="columns" :data="loadData" - showPagination="auto" + :pagination="pagination" :pageSize="15" >