Browse Source

問題更新

guhongwei 3 years ago
parent
commit
d65c563b55
2 changed files with 8 additions and 4 deletions
  1. 1 1
      src/layout/apply/form-1.vue
  2. 7 3
      src/views/patent/user/apply/assessment/index.vue

+ 1 - 1
src/layout/apply/form-1.vue

@@ -194,7 +194,7 @@ export default {
     async search() {
       let res = await this.adminQuery({ role: '2' });
       if (this.$checkRes(res)) {
-        let admin = res.data.filter((i) => i.code == 'JLKJQYCGD');
+        let admin = res.data.filter((i) => i.code == 'JLKJQYCGD' || i.code == 'JLKJQYGC');
         if (admin) this.$set(this, `mechanismList`, admin);
       }
       // 查询管理员信息

+ 7 - 3
src/views/patent/user/apply/assessment/index.vue

@@ -78,6 +78,9 @@ export default {
   async created() {
     await this.searchOther();
     await this.search();
+    if (this.id) {
+      await this.searchInfo();
+    }
   },
   methods: {
     ...patentassess(['query', 'fetch', 'create', 'update']),
@@ -126,8 +129,8 @@ export default {
       this.$set(this, `dialog`, dialog);
     },
     // 已有專利,使用id查詢專利
-    async searchInfo(id) {
-      let res = await this.patentFetch(id);
+    async searchInfo() {
+      let res = await this.patentFetch(this.id);
       if (this.$checkRes(res)) this.conPatent(res.data);
     },
     // 确认选择
@@ -147,6 +150,7 @@ export default {
         phone: this.user.phone,
         email: this.user.email,
       };
+      console.log(arr);
       this.$set(this, `form`, arr);
       let dialog = { show: false, title: '查询专利', type: '1' };
       this.$set(this, `dialog`, dialog);
@@ -180,7 +184,7 @@ export default {
       immediate: true,
       handler(val) {
         if (val) {
-          this.searchInfo(val);
+          // this.searchInfo(val);
         }
       },
     },