|
@@ -166,6 +166,7 @@ export default {
|
|
|
statusList: [],
|
|
|
// 返现金额类型
|
|
|
typeList: [{ label: '固定金额' }, { label: '百分比' }],
|
|
|
+ skip: 0,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -180,11 +181,12 @@ export default {
|
|
|
...goods(['copy', 'query', 'delete', 'fetch', 'update', 'create']),
|
|
|
...methodsUtil,
|
|
|
// 查询
|
|
|
- async search({ skip = 0, limit = this.$limit, ...others } = {}) {
|
|
|
+ async search({ skip = this.skip, limit = this.$limit, ...others } = {}) {
|
|
|
let query = { skip, limit, ...others };
|
|
|
if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
|
|
|
const res = await this.query(query);
|
|
|
if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `skip`, skip);
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|
|
|
}
|