分页加总数和选择页数大小

feature/0423
fanfan 11 months ago
parent b0dc5b480d
commit 174c9c1117
  1. 9
      src/App.vue
  2. 1
      src/components/Modal/ActiveModal/ActiveModal.vue
  3. 1
      src/components/Modal/BargainGoodsModal/BargainGoodsModal.vue
  4. 1
      src/components/Modal/CouponModal/CouponModal.vue
  5. 1
      src/components/Modal/GoodsModal/GoodsModal.vue
  6. 1
      src/components/Modal/GrouponGoodsModal/GrouponGoodsModal.vue
  7. 1
      src/components/Modal/ServerModal/ServerModal.vue
  8. 1
      src/components/Modal/SharpGoodsModal/SharpGoodsModal.vue
  9. 1
      src/components/Modal/ShopModal/ShopModal.vue
  10. 1
      src/components/Modal/UserModal/UserModal.vue
  11. 8
      src/components/Table/STable.js
  12. 5
      src/main.js
  13. 1
      src/views/apps/bargain/active/Index.vue
  14. 1
      src/views/apps/bargain/task/Index.vue
  15. 1
      src/views/apps/bargain/task/modules/HelpModal.vue
  16. 1
      src/views/apps/collector/modules/CollectorList.vue
  17. 1
      src/views/apps/dealer/apply/Index.vue
  18. 2
      src/views/apps/dealer/user/Index.vue
  19. 1
      src/views/apps/dealer/user/modules/FansModal.vue
  20. 1
      src/views/apps/dealer/withdraw/Index.vue
  21. 1
      src/views/apps/eorder/template/Index.vue
  22. 1
      src/views/apps/groupon/goods/Index.vue
  23. 1
      src/views/apps/groupon/robot/Index.vue
  24. 1
      src/views/apps/groupon/task/Index.vue
  25. 1
      src/views/apps/groupon/task/modules/PeopleModal.vue
  26. 1
      src/views/apps/live/room/Index.vue
  27. 1
      src/views/apps/sharp/active/Index.vue
  28. 1
      src/views/apps/sharp/active/time/Index.vue
  29. 1
      src/views/apps/sharp/goods/Index.vue
  30. 2
      src/views/content/article/Index.vue
  31. 1
      src/views/content/banner/Index.vue
  32. 1
      src/views/content/files/Index.vue
  33. 1
      src/views/content/help/Index.vue
  34. 1
      src/views/content/maintenance/Index.vue
  35. 1
      src/views/content/richText/Index.vue
  36. 1
      src/views/goods/Index.vue
  37. 1
      src/views/goods/comment/Index.vue
  38. 1
      src/views/goods/import/List.vue
  39. 1
      src/views/goods/service/Index.vue
  40. 1
      src/views/goods/source/Index.vue
  41. 1
      src/views/manage/role/Index.vue
  42. 1
      src/views/manage/user/Index.vue
  43. 1
      src/views/market/active/Index.vue
  44. 1
      src/views/market/active/modules/ColList.vue
  45. 2
      src/views/market/coupon/Index.vue
  46. 1
      src/views/market/coupon/Receive.vue
  47. 1
      src/views/market/points/Log.vue
  48. 1
      src/views/market/presale/Index.vue
  49. 1
      src/views/market/recharge/plan/Index.vue
  50. 1
      src/views/market/settle/Index.vue
  51. 1
      src/views/order/tools/modules/ExportList.vue
  52. 1
      src/views/page/Index.vue
  53. 1
      src/views/recovery/Index.vue
  54. 1
      src/views/recovery/order/Index.vue
  55. 1
      src/views/server/Index.vue
  56. 1
      src/views/setting/delivery/express/Index.vue
  57. 1
      src/views/setting/delivery/template/Index.vue
  58. 1
      src/views/setting/payment/template/Index.vue
  59. 1
      src/views/setting/printer/Index.vue
  60. 1
      src/views/store/address/Index.vue
  61. 1
      src/views/store/shop/Index.vue
  62. 1
      src/views/store/shop/clerk/Index.vue
  63. 1
      src/views/store/shop/comment/List.vue
  64. 1
      src/views/store/shop/order/Index.vue
  65. 2
      src/views/user/Index.vue
  66. 1
      src/views/user/balance/Index.vue
  67. 1
      src/views/user/grade/Index.vue
  68. 1
      src/views/user/recharge/Index.vue

@ -26,13 +26,4 @@ export default {
}
}
</script>
<style>
.container{
min-width: 1500px !important;
}
.ant-table-body {
overflow-x: scroll;
max-width: 1200px;
}
</style>

@ -17,7 +17,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 活动入口图片 -->

@ -30,7 +30,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 商品信息 -->

@ -30,7 +30,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 优惠券名称 -->

@ -38,7 +38,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 商品信息 -->

@ -30,7 +30,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 商品信息 -->

@ -38,7 +38,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 服务信息 -->

@ -30,7 +30,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 商品信息 -->

@ -39,7 +39,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 门店logo -->

@ -43,7 +43,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员头像 -->

@ -33,7 +33,7 @@ export default {
},
showSizeChanger: {
type: Boolean,
default: false
default: true
},
size: {
type: String,
@ -145,9 +145,9 @@ export default {
this.localLoading = true
const params = Object.assign({
page: (pagination && pagination.current) ||
this.showPagination && this.localPagination.current || this.pageNum
// pageSize: (pagination && pagination.pageSize) ||
// this.showPagination && this.localPagination.pageSize || this.pageSize
this.showPagination && this.localPagination.current || this.pageNum,
pageSize: (pagination && pagination.pageSize) ||
this.showPagination && this.localPagination.pageSize || this.pageSize
},
(sorter && sorter.field && {
sortField: sorter.field

@ -22,9 +22,12 @@ import './global.less'
Vue.config.productionTip = false
Vue.prototype.pagination = {
total: 0, // 数据总数
page: 1, // 当前页码
current: 1, // 当前页码
pageSize: 15, // 每页显示条数
showQuickJumper: true, // 显示跳转输入框
showSizeChanger: true,
pageSizeOptions: ['15', '30', '50'],
showTotal: total => `${total} 条记录`,
}
// mount axios to `Vue.$http` and `this.$http`
Vue.use(VueAxios)

@ -27,7 +27,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1450 }"
>

@ -37,7 +37,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1400 }"
>

@ -16,7 +16,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

@ -6,7 +6,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 开始时间 -->

@ -19,7 +19,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

@ -13,7 +13,7 @@
</a-col>
</a-row>
</div>
<s-table ref="table" rowKey="user_id" :columns="columns" :data="loadData" :pageSize="15"
<s-table ref="table" rowKey="user_id" :columns="columns" :data="loadData"
:pagination="pagination">
<!-- 会员信息 -->
<template slot="user" slot-scope="text">

@ -37,7 +37,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

@ -43,7 +43,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

@ -27,7 +27,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- API网关 -->

@ -85,7 +85,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1300 }"
>

@ -11,7 +11,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 用户头像 -->

@ -41,7 +41,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1450 }"
>

@ -18,7 +18,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 用户信息 -->

@ -32,7 +32,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 直播时间 -->

@ -19,7 +19,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 活动状态 -->

@ -19,7 +19,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 活动状态 -->

@ -27,7 +27,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1450 }"
>

@ -41,7 +41,7 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1400 }"
>
<!-- 文章封面图 -->

@ -10,7 +10,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- Banner图 -->

@ -73,7 +73,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1300 }"
>

@ -10,7 +10,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 内容 -->

@ -35,7 +35,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1400 }"
>

@ -10,7 +10,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 内容 -->

@ -70,7 +70,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1450 }"
>

@ -44,7 +44,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1450 }"
>

@ -37,7 +37,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 开始时间 -->

@ -22,7 +22,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1300 }"
>

@ -22,7 +22,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
:scroll="{ x: 1300 }"
>

@ -11,7 +11,6 @@
:dataSource="roleList"
:defaultExpandAllRows="false"
:expandIconColumnIndex="1"
:pageSize="15"
:pagination="pagination"
:loading="isLoading"
>

@ -22,7 +22,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<div slot="user_name" slot-scope="text, item">

@ -10,7 +10,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 活动入口图片 -->

@ -18,7 +18,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 活动入口图片 -->

@ -17,7 +17,7 @@
</a-col>
</a-row>
</div>
<s-table ref="table" rowKey="coupon_id" :loading="isLoading" :columns="columns" :data="loadData" :pageSize="15"
<s-table ref="table" rowKey="coupon_id" :loading="isLoading" :columns="columns" :data="loadData"
:pagination="pagination">
<!-- 优惠券类型 -->
<template slot="coupon_type" slot-scope="text">

@ -26,7 +26,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

@ -23,7 +23,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

@ -10,7 +10,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 状态 -->

@ -22,7 +22,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 充值金额 -->

@ -7,7 +7,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
style="width: 100%;overflow-y: auto;"
>

@ -5,7 +5,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 下单时间 -->

@ -22,7 +22,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 页面类型 -->

@ -59,7 +59,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 回收图片 -->

@ -59,7 +59,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 回收图片 -->

@ -59,7 +59,6 @@
:columns="columns"
:data="loadData"
:rowSelection="rowSelection"
:pageSize="15"
:pagination="pagination"
>
<!-- 服务图片 -->

@ -22,7 +22,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 操作 -->

@ -27,7 +27,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 计费方式 -->

@ -19,7 +19,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 支付方式 -->

@ -22,7 +22,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 打印机类型 -->

@ -31,7 +31,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 详细地址 -->

@ -31,7 +31,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 门店logo -->

@ -34,7 +34,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

@ -18,7 +18,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<span slot="image" slot-scope="text">

@ -31,7 +31,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 核销门店 -->

@ -25,7 +25,7 @@
</a-form>
</a-row>
</div>
<s-table ref="table" rowKey="user_id" :loading="isLoading" :columns="columns" :data="loadData" :pageSize="15"
<s-table ref="table" rowKey="user_id" :loading="isLoading" :columns="columns" :data="loadData"
:pagination="pagination">
<!-- 会员头像 -->
<span slot="avatar_url" slot-scope="text">

@ -33,7 +33,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

@ -10,7 +10,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 升级条件 -->

@ -40,7 +40,6 @@
:loading="isLoading"
:columns="columns"
:data="loadData"
:pageSize="15"
:pagination="pagination"
>
<!-- 会员信息 -->

Loading…
Cancel
Save