guhongwei 3 年之前
父節點
當前提交
a74ddc49cd
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/views/patent/admin/patent/index.vue

+ 6 - 3
src/views/patent/admin/patent/index.vue

@@ -56,7 +56,7 @@ export default {
     this.search();
   },
   methods: {
-    ...patentinfo(['query', 'delete', 'toExport']),
+    ...patentinfo(['query', 'delete', 'toExport', 'fetch']),
     ...mission({ missionQuery: 'query' }),
     async search({ skip = 0, limit = this.limit, ...info } = {}) {
       let res = await this.query({ skip, limit, ...info });
@@ -66,8 +66,11 @@ export default {
       }
     },
     // 详细信息
-    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);
+      }
       this.dialog = { show: true, title: '详细信息', type: '1' };
     },
     // 修改信息