|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div id="business">
|
|
|
- <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search">
|
|
|
+ <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
|
|
|
<component :is="model" :list="list"></component>
|
|
|
</list-page>
|
|
|
<template v-else>
|
|
@@ -29,6 +29,7 @@ export default {
|
|
|
list: [],
|
|
|
total: 0,
|
|
|
detail: {},
|
|
|
+ pageSize: 10,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -38,7 +39,7 @@ export default {
|
|
|
...transaction({ getTran: 'query', createTran: 'create' }),
|
|
|
...product(['query', 'fetch']),
|
|
|
// 查询相关
|
|
|
- async search({ skip = 0, limit = 5, ...info } = {}) {
|
|
|
+ async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
|
|
|
// TODO: 查询
|
|
|
let res = await this.query({ skip, limit, status: '2', type: '2', ...info });
|
|
|
if (this.$checkRes(res)) {
|