guhongwei %!s(int64=3) %!d(string=hai) anos
pai
achega
012bf771da
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);