guhongwei 3 lat temu
rodzic
commit
2cc787cbdc

+ 6 - 3
src/views/patent/mech/patent/information/index.vue

@@ -60,7 +60,7 @@ export default {
     await this.search({ term: '有效' });
   },
   methods: {
-    ...patentinfo(['query', 'queryByOrg']),
+    ...patentinfo(['query', 'queryByOrg', 'fetch']),
     async search({ skip = 0, limit = this.limit, ...info } = {}) {
       info.term = this.active ? this.active : '有效';
       info.first_apply = this.user.deptname;
@@ -77,8 +77,11 @@ export default {
       this.search({ term: value });
     },
     // 查看信息
-    toView(data) {
-      this.$set(this, `info`, data);
+    async toView(data) {
+      let res = await this.fetch(data.id);
+      if (this.$checkRes(res)) {
+        this.$set(this, `info`, res.data);
+      }
       let dialog = { show: true, title: '详细信息', type: '1' };
       this.$set(this, `dialog`, dialog);
     },