|
@@ -755,8 +755,10 @@
|
|
|
{
|
|
|
taskId: this.taskId?this.taskId:null,
|
|
|
signPatentNo: this.tableData1[i].signPatentNo,
|
|
|
- contentOut: this.tableData1[i].contentOut.trim(),
|
|
|
- content: this.tableData1[i].content.trim(),
|
|
|
+ // contentOut: this.tableData1[i].contentOut.trim(),
|
|
|
+ // content: this.tableData1[i].content.trim(),
|
|
|
+ contentOut: this.tableData1[i].contentOut,
|
|
|
+ content: this.tableData1[i].content,
|
|
|
rightId: this.tableData1[i].rightId,
|
|
|
isFinal: this.tableData1[i].isFinal,
|
|
|
reportId: this.tableData1[i].reportId,
|
|
@@ -806,26 +808,21 @@
|
|
|
this.$message.info("已取消,请您继续进行协同任务")
|
|
|
});
|
|
|
},
|
|
|
- // 一键修改
|
|
|
+ // 当前行一键修改
|
|
|
handleClick(row) {
|
|
|
- // //console.log(this.tableData1,row);
|
|
|
- // let a=this.tableData1.findIndex(item => {
|
|
|
- // return item.id==row.id
|
|
|
- // })
|
|
|
row.targetDescription=row.targetDescription2
|
|
|
row.compareDescription=row.compareDescription2
|
|
|
- row.compareResult = row.compareResult2
|
|
|
+ row.compareResult = Number(row.compareResult2)
|
|
|
this.$message.success("修改成功,请进行保存")
|
|
|
},
|
|
|
// 全部修改
|
|
|
handleWhole() {
|
|
|
- // let a = ["targetDescription2", "compareDescription2", "compareResult2"]
|
|
|
- // var old = ["targetDescription", "compareDescription", "compareResult"]
|
|
|
this.tableData.forEach(item => {
|
|
|
- item.targetDescription=item.targetDescription2
|
|
|
- item.compareDescription=item.compareDescription2
|
|
|
- item.compareResult = item.compareResult2
|
|
|
-
|
|
|
+ if (item.compareResult2) {
|
|
|
+ item.targetDescription=item.targetDescription2
|
|
|
+ item.compareDescription=item.compareDescription2
|
|
|
+ item.compareResult = Number(item.compareResult2)
|
|
|
+ }
|
|
|
})
|
|
|
this.$message.success("修改成功,请进行保存")
|
|
|
},
|