guhongwei 3 роки тому
батько
коміт
768b863266

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

@@ -29,7 +29,8 @@ export default {
   },
   },
   methods: {
   methods: {
     ...mapActions(['query', 'fetch']),
     ...mapActions(['query', 'fetch']),
-    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: 'Outcome', skip, limit, ...condition });
       const res = await this.query({ table: 'Outcome', skip, limit, ...condition });
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);
         this.$set(this, 'list', res.data);

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

@@ -29,7 +29,8 @@ export default {
   },
   },
   methods: {
   methods: {
     ...mapActions(['query', 'fetch']),
     ...mapActions(['query', 'fetch']),
-    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: 'Loso', skip, limit, ...condition });
       const res = await this.query({ table: 'Loso', skip, limit, ...condition });
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);
         this.$set(this, 'list', res.data);

+ 3 - 2
src/views/innovate/popularization/index.vue

@@ -39,8 +39,9 @@ export default {
   },
   },
   methods: {
   methods: {
     ...mapActions(['query', 'fetch']),
     ...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') {
       if (res.errcode == '0') {
         this.$set(this, 'list', res.data);
         this.$set(this, 'list', res.data);
         this.$set(this, 'total', res.total);
         this.$set(this, 'total', res.total);

+ 2 - 1
src/views/scientific/laboratory/index.vue

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