zhuliu 1 tahun lalu
induk
melakukan
61388c7668

+ 10 - 2
src/views/report/components/checkPatent/checkPatent.vue

@@ -60,7 +60,10 @@ export default {
         return ''
       }
     },
-    sign:''
+    sign:'',
+    compareResult:{
+      default:''
+    }
   },
   data() {
     return {
@@ -123,6 +126,11 @@ export default {
       patentNos:[]
     }
   },
+  watch:{
+    compareResult(){
+      this.getPatentList()
+    }
+  },
   async mounted() {
     
     await this.getColumn()
@@ -133,7 +141,7 @@ export default {
       let params = {
         ...this.queryParams,
           projectId: this.projectId,
-          compareResult: this.oldSearchOption.compareResult
+          compareResult: this.compareResult
         }
       await this.$api.getComparedPatent(params).then(response => {
         if (response.code == 200) {

+ 3 - 4
src/views/report/components/productResult/productResult.vue

@@ -106,7 +106,7 @@
 
     <!-- 选择专利弹窗 -->
     <checkPatent ref="checkPatent" @checkPatentList="checkPatentList" sign="teamwork"
-      :oldSearchOption="{ compareResult: queryParams.compareResult }" :tableData2="tableData2">
+       :compareResult="compareResult" :tableData2="tableData2">
       <div slot="head">
         <el-select v-model="compareResult" clearable @change="changePatent" placeholder="请选择对比结果">
           <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
@@ -311,9 +311,7 @@ export default {
     },
     // 选择专利框的对比结果
     changePatent(val) {
-      this.queryParams.compareResult = val
       this.compareResult = val
-      this.$refs.checkPatent.getPatentList()
     },
     // 显示勾选的信息
     async load() {
@@ -436,9 +434,10 @@ export default {
       this.getList(this.patent.patentNo)
     },
 
-    async change() {
+    async change(val) {
       this.index = 0
       this.patentList = []
+      this.compareResult = val
       await this.getPatentList()
       if (this.patentList.length > 0) {
         this.patent = this.patentList[0]