Bläddra i källkod

修改对比文件中点击分页后选中的消失bug

zhuhao 2 år sedan
förälder
incheckning
40a516b4a2

+ 10 - 10
RMS-FrontEnd/src/views/report/FTO/FTOPage/ChosePatent.vue

@@ -227,6 +227,7 @@ mixins:[PatentDetails,importPatent],
       // console.log(field,a);
       this.queryParams.pasOptions = field
       this.queryParams.projectId = a
+      this.handleCancelSelectNumber()
       this.getList2()
       
     },
@@ -263,16 +264,18 @@ mixins:[PatentDetails,importPatent],
         // if (this.queryParams.projectId) {
         //   this.getListPro()
         // } else {
-          this.getList2()
+          this.handleCancelSelectNumber()
+        this.getList2()
         // }
         
-      } else {
-        // if (this.queryParams.projectId) {
-        //   this.getListPro()
-        // } else {
-          this.getList2()
-        // }
       }
+      // else {
+      //   // if (this.queryParams.projectId) {
+      //   //   this.getListPro()
+      //   // } else {
+      //     this.getList2()
+      //   // }
+      // }
       
       this.visible = false
       // this.form = {}
@@ -651,9 +654,6 @@ mixins:[PatentDetails,importPatent],
   },
   watch: {
     'tableData'(val,val1) {
-      if (JSON.stringify(val)!=JSON.stringify(val1)) {
-        this.handleCancelSelectNumber()
-      }
       this.$nextTick(() => {
         this.tableOffSetHeight()
       })

+ 3 - 5
RMS-FrontEnd/src/views/report/Invalid/InvalidPage/ChosePatent.vue

@@ -299,6 +299,7 @@ mixins:[PatentDetails,importPatent],
       // console.log(field,a);
       this.queryParams.pasOptions = field
       this.queryParams.projectId = a
+      this.handleCancelSelectNumber()
       this.getList2()
       
     },
@@ -336,7 +337,8 @@ mixins:[PatentDetails,importPatent],
         // if (this.queryParams.projectId) {
         //   this.getListPro()
         // } else {
-          this.getList2()
+          this.handleCancelSelectNumber()
+        this.getList2()
         // }
         
       }
@@ -808,10 +810,6 @@ mixins:[PatentDetails,importPatent],
   },
   watch: {
     'tableData'(val, val1) {
-     
-      if (JSON.stringify(val)!=JSON.stringify(val1)) {
-        this.handleCancelSelectNumber()
-      }
       
       this.$nextTick(() => {
         this.tableOffSetHeight()

+ 2 - 5
RMS-FrontEnd/src/views/report/components/SelectedPatent.vue

@@ -237,6 +237,7 @@
         this.queryParams[key]=this.formS[key]
       }
       // this.queryParams.patentName=this.form.patentName
+      this.handleCancelSelectNumber()
       this.getList2()
       this.visible = false
       // this.form = {}
@@ -660,11 +661,7 @@
       },
     },
     watch: {
-     'tableData'(val,val1){
-          if (JSON.stringify(val)!=JSON.stringify(val1)) {
-            this.handleCancelSelectNumber()
-          }
-      },
+     
       loadPatent(val){
         for (let key in this.form) {
           this.queryParams[key]=''