|
@@ -228,7 +228,8 @@
|
|
|
tableData(){
|
|
|
console.log(1)
|
|
|
this.$nextTick(() => {
|
|
|
- this.setHeight()
|
|
|
+ this.setHeight()
|
|
|
+ this.$refs.table.doLayout();//doLayout()方法,让table重新布局
|
|
|
})
|
|
|
},
|
|
|
patentNo(val){
|
|
@@ -516,41 +517,6 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- // if (this.coordination) {
|
|
|
- // console.log(111111,this.coordination);
|
|
|
- // this.$api.querySynery(PatentRight).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.CompareMessage(res)
|
|
|
- // }
|
|
|
- // // console.log("@@",this.tableData1);
|
|
|
- // })
|
|
|
- // }else if (this.typeFto==1&&this.taskWorkRemakA!=0) {
|
|
|
- // console.log(111111,this.coordination);
|
|
|
- // this.$api.querySynery(PatentRight).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.CompareMessage(res)
|
|
|
- // }
|
|
|
- // // console.log("@@",this.tableData1);
|
|
|
- // })
|
|
|
- // }
|
|
|
- // else if (this.taskWorkRemakA == 0) {
|
|
|
- // this.$api.queryAllCompareMessage(PatentRight).then(res => {
|
|
|
- // console.log(2222, this.taskWorkRemakA);
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.CompareMessage(res)
|
|
|
- // }
|
|
|
- // // console.log("@@",this.tableData1);
|
|
|
- // })
|
|
|
-
|
|
|
- // }else {//queryCompareMessage
|
|
|
- // this.$api.queryCompareMessage(PatentRight).then(res => {
|
|
|
- // console.log(3333,this.coordination);
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.CompareMessage(res)
|
|
|
- // }
|
|
|
- // // console.log("@@",this.tableData1);
|
|
|
- // })
|
|
|
- // }
|
|
|
},
|
|
|
isDel() {
|
|
|
|
|
@@ -615,22 +581,29 @@
|
|
|
this.loading = false
|
|
|
},
|
|
|
// 协同对比结果高亮
|
|
|
- checkDel({ row, column, rowIndex, columnIndex }) {
|
|
|
+ checkDel({ row, rowIndex}) {
|
|
|
if (!this.isAll) {
|
|
|
return false
|
|
|
}
|
|
|
- if (this.tableData[rowIndex].compareResult2 ==undefined) {
|
|
|
- this.tableData[rowIndex].compareResult2=''
|
|
|
+ // let a = ['compareResult2', 'targetDescription2', 'compareDescription2']
|
|
|
+ // a.forEach(item => {
|
|
|
+ // console.log(row,row.hasOwnProperty(item));
|
|
|
+ // // if (row.hasOwnProperty(item)) {
|
|
|
+
|
|
|
+ // // }
|
|
|
+ // })
|
|
|
+ if (row.compareResult2 ==undefined) {
|
|
|
+ row.compareResult2=''
|
|
|
}
|
|
|
- if (this.tableData[rowIndex].targetDescription2 ==undefined) {
|
|
|
- this.tableData[rowIndex].targetDescription2=''
|
|
|
+ if (row.targetDescription2 ==undefined) {
|
|
|
+ row.targetDescription2=''
|
|
|
}
|
|
|
- if (this.tableData[rowIndex].compareDescription2 ==undefined) {
|
|
|
- this.tableData[rowIndex].compareDescription2=''
|
|
|
+ if (row.compareDescription2 ==undefined) {
|
|
|
+ row.compareDescription2=''
|
|
|
}
|
|
|
- if (this.tableData[rowIndex].targetDescription!=this.tableData[rowIndex].targetDescription2||this.tableData[rowIndex].compareDescription!=this.tableData[rowIndex].compareDescription2||this.tableData[rowIndex].compareResult != this.tableData[rowIndex].compareResult2) {
|
|
|
+ if (row.targetDescription!=row.targetDescription2||row.compareDescription!=row.compareDescription2||row.compareResult != row.compareResult2) {
|
|
|
|
|
|
- return 'red';
|
|
|
+ return 'success-rowCheck';
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -869,8 +842,11 @@
|
|
|
text-decoration:underline;
|
|
|
}
|
|
|
</style>
|
|
|
-<style scope >
|
|
|
- .el-table .red{
|
|
|
+<style>
|
|
|
+ /* .el-table .red{
|
|
|
background: #F5F5DC;
|
|
|
+ } */
|
|
|
+ .success-rowCheck {
|
|
|
+ background: #f0f9eb;
|
|
|
}
|
|
|
</style>
|