添加分页所有的列表

main
fanfan 8 months ago
parent ff6c5b89b7
commit ea38705a71
  1. 7
      src/main.js
  2. 6
      src/views/dataCenter/goods/Index.vue
  3. 5
      src/views/dataCenter/goods/category/Index.vue
  4. 1
      src/views/dataCenter/goods/import/List.vue
  5. 3
      src/views/menu/access/index.vue
  6. 3
      src/views/menu/index.vue
  7. 2
      src/views/store/index.vue
  8. 2
      src/views/store/recycle.vue

@ -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)

@ -314,12 +314,6 @@ export default {
},
data() {
return {
pagination: {
total: 0, //
page: 1, //
pageSize: 15, //
showQuickJumper: true, //
},
//
searchForm: this.$form.createForm(this),
//

@ -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"
>
<!-- 状态 -->

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

@ -10,7 +10,8 @@
:columns="columns"
:data-source="list"
:loading="isLoading"
:pagination="false"
:pagination="pagination"
:pageSize="15"
>
<span class="actions" slot="action" slot-scope="text, item">
<a @click="handleEdit(item)">编辑</a>

@ -10,7 +10,8 @@
:columns="columns"
:data-source="list"
:loading="isLoading"
:pagination="false"
:pagination="pagination"
:pageSize="15"
>
<span slot="actions" slot-scope="text, item">
<a-dropdown title="操作" v-for="(action, index) in item.actions" :key="index">

@ -10,7 +10,7 @@
rowKey="store_id"
:columns="columns"
:data="loadData"
showPagination="auto"
:pagination="pagination"
:pageSize="15"
>
<span class="actions" slot="action" slot-scope="text, item">

@ -7,7 +7,7 @@
rowKey="store_id"
:columns="columns"
:data="loadData"
showPagination="auto"
:pagination="pagination"
:pageSize="15"
>
<span class="actions" slot="action" slot-scope="text, item">

Loading…
Cancel
Save