|
@@ -153,6 +153,11 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column v-if="this.taskWorkRemakA==0" label="操作" min-width="120" align="center" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="handleClick(scope.row)" size="small">一键修改</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -404,34 +409,26 @@
|
|
|
}
|
|
|
|
|
|
//协同对比调用querySynery
|
|
|
- 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 => {
|
|
|
+ if (this.typeFto==1) {
|
|
|
+ if (this.coordination || this.taskWorkRemakA != 0) {
|
|
|
+ console.log(111111, this.coordination,this.taskWorkRemakA);
|
|
|
+ this.$api.querySynery(PatentRight).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.CompareMessage(res)
|
|
|
+ }
|
|
|
+ // console.log("@@",this.tableData1);
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$api.queryAllCompareMessage(PatentRight).then(res => {
|
|
|
+ console.log(2222, this.taskWorkRemakA);
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.CompareMessage(res)
|
|
|
+ }
|
|
|
+ // console.log("@@",this.tableData1);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$api.queryCompareMessage(PatentRight).then(res => {
|
|
|
console.log(3333,this.coordination);
|
|
|
if (res.code == 200) {
|
|
|
this.CompareMessage(res)
|
|
@@ -439,6 +436,42 @@
|
|
|
// console.log("@@",this.tableData1);
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ // 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);
|
|
|
+ // })
|
|
|
+ // }
|
|
|
},
|
|
|
//查询对比记录数据处理
|
|
|
CompareMessage(res) {
|
|
@@ -717,6 +750,17 @@
|
|
|
this.$message.success("任务完成,邮件已发送成功")
|
|
|
})
|
|
|
},
|
|
|
+ // 一键修改
|
|
|
+ handleClick(row) {
|
|
|
+ // console.log(this.tableData1,row);
|
|
|
+ let a=this.tableData1.findIndex(item => {
|
|
|
+ return item.id==row.id
|
|
|
+ })
|
|
|
+ this.tableData1[a].targetDescription=row.targetDescription2
|
|
|
+ this.tableData1[a].compareDescription=row.compareDescription2
|
|
|
+ this.tableData1[a].compareResult = row.compareResult2
|
|
|
+ this.$message.success("修改成功,请进行保存")
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
|