guhongwei 2 years ago
parent
commit
b2e5c8b650
1 changed files with 7 additions and 11 deletions
  1. 7 11
      src/views/patent/user/apply/apply/gzjDetail.vue

+ 7 - 11
src/views/patent/user/apply/apply/gzjDetail.vue

@@ -33,17 +33,13 @@ export default {
   methods: {
     ...patentwarning(['query']),
     async search({ skip = 0, limit = this.limit, ...info } = {}) {
-      if (this.create_number) {
-        info.name = this.name;
-        // info.create_number = this.create_number;
-        info.to_id = this.user._id;
-        let res = await this.query({ skip, limit, ...info });
-        if (this.$checkRes(res)) {
-          this.$set(this, `list`, res.data);
-          this.$set(this, `total`, res.total);
-        }
-      } else {
-        this.$toast({ type: `warn`, message: `专利暂无申请号,无法查询数据` });
+      info.name = this.name;
+      if (this.create_number) info.create_number = this.create_number;
+      info.to_id = this.user._id;
+      let res = await this.query({ skip, limit, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `list`, res.data);
+        this.$set(this, `total`, res.total);
       }
     },
     // 返回