|
@@ -49,8 +49,9 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...code(['query']),
|
|
...code(['query']),
|
|
...statistics(['dockProduct']),
|
|
...statistics(['dockProduct']),
|
|
- async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
|
- const res = await this.dockProduct({ skip, limit, ...info, dock_id: this.user.id, type: '0', ...this.form });
|
|
|
|
|
|
+ async search({ skip = 0, limit = 10 } = {}) {
|
|
|
|
+ const query = { skip, limit, dock_id: this.user.id, type: '0', ...this.form };
|
|
|
|
+ const res = await this.dockProduct(query);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|