zhuhao 2 éve
szülő
commit
27667fded9

+ 12 - 3
RMS-FrontEnd/src/views/report/FTO/FTOPage/components/PatentFeatures.vue

@@ -354,6 +354,15 @@
       },
       //拆分
       split() {
+        if (this.row.length > 1) {
+          this.$alert('不能同时拆分多条特征','提示',{
+            confirmButtonText: '确定',
+            type:'warning',
+            callback: action => {
+            }
+          })
+          return false
+        }
         //只对勾选的进行拆分
         this.keepSure=false
         this.checkList = []//
@@ -380,7 +389,7 @@
               isFinal: ele.isFinal,
               reportId: ele.reportId,
               explainText: "",
-
+              
               rightName: ele.rightName,
               rightType: ele.rightType,
               splitBy: ele.splitBy,
@@ -687,7 +696,7 @@
           var keepArr = [];
           console.log(this.tableData1);
           for (let i = 0; i < this.tableData1.length; i++) {
-            console.log(1);
+            console.log(1, this.tableData1[i].compareResult);
             keepArr.push(
               {
                 taskId: this.taskId?this.taskId:null,
@@ -703,7 +712,7 @@
                 explainText: this.tableData1[i].explainText ? this.tableData1[i].explainText : "",
                 targetDescription: this.tableData1[i].targetDescription ? this.tableData1[i].targetDescription : "",
                 compareDescription: this.tableData1[i].compareDescription ? this.tableData1[i].compareDescription : "",
-                compareResult: this.tableData1[i].compareResult.toString() != "" ? this.tableData1[i].compareResult : "",
+                compareResult: this.tableData1[i].compareResult?.toString() != "" ? this.tableData1[i].compareResult : "",
               }
             )
           }

+ 2 - 1
RMS-FrontEnd/src/views/report/Invalid/InvalidPage/ChosePatent.vue

@@ -358,7 +358,8 @@ mixins:[PatentDetails,importPatent],
         case 0:
           this.queryParams.selected = this.tableData.map(item => item.patentNo);
           this.checkList = [...new Set(this.checkList.concat(this.queryParams.selected))]
-          this.selectedTotal=this.checkList.length
+          this.selectedTotal = this.checkList.length
+          this.queryParams.isAdd=JSON.parse(JSON.stringify(this.checkList))
           this.getList()
           break
         case 1:

+ 10 - 0
RMS-FrontEnd/src/views/report/Invalid/InvalidPage/Claims.vue

@@ -232,9 +232,19 @@ export default {
     },
     //拆分
     split() {
+      if (this.row.length > 1) {
+          this.$alert('不能同时拆分多条特征','提示',{
+            confirmButtonText: '确定',
+            type:'warning',
+            callback: action => {
+            }
+          })
+          return false
+        }
       //只对勾选的进行拆分
       this.keepSure=false
       this.checkList = []
+      console.log(this.row);
       this.row.forEach(ele=>{
         var Index = this.tableData1.findIndex(item => {
           return item.id==ele.id