guhongwei 3 anos atrás
pai
commit
012bf771da
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/views/innovate/service/index.vue

+ 2 - 1
src/views/innovate/service/index.vue

@@ -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);