|
@@ -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);
|
|
|
}
|
|
|
},
|
|
|
},
|