|
@@ -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' };
|
|
|
},
|
|
|
// 修改信息
|