|
@@ -39,8 +39,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['query', 'fetch']),
|
|
|
- async search({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
|
- const res = await this.query({ table: 'Losc', skip, limit, ...info });
|
|
|
+ async search({ skip = 0, limit = this.limit, searchName, ...condition } = {}) {
|
|
|
+ if (searchName) condition.name = searchName;
|
|
|
+ const res = await this.query({ table: 'Losc', skip, limit, ...condition });
|
|
|
if (res.errcode == '0') {
|
|
|
this.$set(this, 'list', res.data);
|
|
|
this.$set(this, 'total', res.total);
|