|
@@ -29,7 +29,8 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['query']),
|
|
|
- async search({ skip = 0, limit = this.limit, ...condition } = {}) {
|
|
|
+ async search({ skip = 0, limit = this.limit, searchName, ...condition } = {}) {
|
|
|
+ if (searchName) condition.name = searchName;
|
|
|
const res = await this.query({ table: 'Lote', skip, limit, ...condition });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, 'list', res.data);
|