Browse Source

专利查询条件

guhongwei 3 năm trước cách đây
mục cha
commit
dc300c032d

+ 4 - 2
src/views/patent/mech/patent/information/index.vue

@@ -61,11 +61,13 @@ export default {
   },
   methods: {
     ...patentinfo(['queryByOrg']),
-    async search({ skip = 0, limit = this.limit, term, ...info } = {}) {
-      info.term = term ? term : '有效';
+    async search({ skip = 0, limit = this.limit, ...info } = {}) {
+      info.term = this.active ? this.active : '有效';
       info.code = this.user.code;
+      console.log({ ...info });
       let res = await this.queryByOrg({ skip, limit, ...info });
       if (this.$checkRes(res)) {
+        console.log(res);
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
       }

+ 2 - 2
src/views/patent/user/patent/information/index.vue

@@ -61,8 +61,8 @@ export default {
   },
   methods: {
     ...patentinfo(['query']),
-    async search({ skip = 0, limit = this.limit, term, ...info } = {}) {
-      info.term = term ? term : '有效';
+    async search({ skip = 0, limit = this.limit, ...info } = {}) {
+      info.term = this.active ? this.active : '有效';
       info.user_id = this.user._id;
       let res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {