|
@@ -93,7 +93,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="patentNo" label="公识" align="center" width="100px">
|
|
|
+ <el-table-column prop="PublicKnowledge" label="公识" align="center" width="100px">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <span>{{scope.row.patentNo}}</span> -->
|
|
|
<div class="innerTable" v-if="scope.row.assoRecordsFeatures" style="width:calc(100% + 20px);margin-left:-10px">
|
|
@@ -112,13 +112,13 @@
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <span>{{scope.row.patentNo}}</span> -->
|
|
|
<div class="innerTable" v-if="scope.row.assoRecordsFeatures" style="width:calc(100% + 20px);margin-left:-10px">
|
|
|
- <p v-for="i in scope.row.assoRecordsFeatures">
|
|
|
- <span v-if="i.compareRecords">
|
|
|
+ <p v-for="(i,index) in scope.row.assoRecordsFeatures">
|
|
|
+ <span >
|
|
|
+ <!-- {{index==0? (scope.row.assoRecordsFeatures[i].compareRecords?scope.row.assoRecordsFeatures[i].compareRecords.patentNo:''): (scope.row.assoRecordsFeatures[i + scope.row.patentNoIndex[index-1]].compareRecords?scope.row.assoRecordsFeatures[i + scope.row.patentNoIndex[index-1]].compareRecords.patentNo:'')}} -->
|
|
|
{{i.compareRecords.patentNo}}
|
|
|
</span>
|
|
|
- <span v-else >
|
|
|
- <!-- 公识 -->
|
|
|
- </span>
|
|
|
+ <!-- <span v-else >
|
|
|
+ </span> -->
|
|
|
</p>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -127,7 +127,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <span>{{scope.row.content}}</span> -->
|
|
|
<div class="innerTable" v-if="scope.row.assoRecordsFeatures" style="width:calc(100% + 20px);margin-left:-10px">
|
|
|
- <p v-for="i in scope.row.assoRecordsFeatures">
|
|
|
+ <p v-for="(i,index) in scope.row.assoRecordsFeatures" :key="index">
|
|
|
<span v-if="i.compareRecords">
|
|
|
{{i.compareRecords.content}}<img v-if="i.compareRecords.filePath" :src="$p + i.compareRecords.filePath" width="100px" @click="showImage(i.compareRecords.filePath)" />
|
|
|
</span>
|
|
@@ -294,8 +294,11 @@ export default {
|
|
|
patentNoList:[],
|
|
|
value:'对比组合'+(index+1)
|
|
|
})
|
|
|
- item.assoRecordsFeatures.forEach(item1=>{
|
|
|
- if(item1.compareRecords.id){
|
|
|
+ var i = 0
|
|
|
+ item.patentNoIndex=[]
|
|
|
+ item.assoRecordsFeatures.forEach((item1)=>{
|
|
|
+ if(item1.compareRecords.patentNo){
|
|
|
+
|
|
|
var b = this.resultant[index].patentNoList.findIndex(i=>{
|
|
|
return i == item1.compareRecords.patentNo
|
|
|
})
|
|
@@ -310,7 +313,33 @@ export default {
|
|
|
if(c!=-1){
|
|
|
item1.compareRecords = null
|
|
|
}
|
|
|
+
|
|
|
})
|
|
|
+ console.log(item.assoRecordsFeatures)
|
|
|
+ item.assoRecordsFeatures.forEach((item1,ele)=>{
|
|
|
+
|
|
|
+ if(ele == 0){
|
|
|
+ item.patentNoIndex.push(1)
|
|
|
+ }else{
|
|
|
+ if(item1.compareRecords&&item.assoRecordsFeatures[ele-1].compareRecords){
|
|
|
+ if(item1.compareRecords.patentNo == item.assoRecordsFeatures[ele-1].compareRecords.patentNo && item1.compareRecords.content == item.assoRecordsFeatures[ele-1].compareRecords.content){
|
|
|
+
|
|
|
+ item.patentNoIndex[item.patentNoIndex.length-1]+=1
|
|
|
+ }else{
|
|
|
+ item.patentNoIndex.push(1)
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ item.patentNoIndex.push(1)
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
item.resultant = '对比组合'+(index+1)
|
|
|
// item.featuresList.forEach(i=>{
|
|
|
// item.assoRecordsFeatures.push({
|
|
@@ -331,6 +360,7 @@ export default {
|
|
|
},
|
|
|
getSpanArr(data) {
|
|
|
this.mergeArr.forEach((key, index1) => {
|
|
|
+ console.log(data)
|
|
|
let count = 0;
|
|
|
this.mergeObj[key] = [];
|
|
|
data.forEach((item, index) => {
|
|
@@ -341,19 +371,70 @@ export default {
|
|
|
// this.mergeObj[key].push(2)
|
|
|
// }
|
|
|
// })
|
|
|
- if (index === 0) {
|
|
|
- this.mergeObj[key].push(1);
|
|
|
- } else {
|
|
|
- if (item[key] === data[index - 1][key]&& item[key] !== 'explainText' ) {
|
|
|
- this.mergeObj[key][count] += 1;
|
|
|
- this.mergeObj[key].push(0);
|
|
|
- } else {
|
|
|
- count = index;
|
|
|
- this.mergeObj[key].push(1);
|
|
|
+ if(key == 'right'){
|
|
|
+ if (index === 0) {
|
|
|
+ this.mergeObj[key].push(1);
|
|
|
+ }else{
|
|
|
+ if (item[key] === data[index - 1][key]) {
|
|
|
+ this.mergeObj[key][count] += 1;
|
|
|
+ this.mergeObj[key].push(0);
|
|
|
+ }else{
|
|
|
+ count = index;
|
|
|
+ this.mergeObj[key].push(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+
|
|
|
+ item.assoRecordsFeatures.forEach((i,index2)=>{
|
|
|
+ if(index == 0){
|
|
|
+ if(i.compareRecords){
|
|
|
+ if(index2 == 0){
|
|
|
+ this.mergeObj[key].push(1);
|
|
|
+ }else{
|
|
|
+ if(i[key] === item.assoRecordsFeatures[index2-1][key]){
|
|
|
+ this.mergeObj[key][count] += 1;
|
|
|
+ this.mergeObj[key].push(0);
|
|
|
+ }else{
|
|
|
+ count = index2;
|
|
|
+ this.mergeObj[key].push(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // else{
|
|
|
+ // count = index;
|
|
|
+ // this.mergeObj[key].push(1);
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(item.resultant === data[index - 1].resultant){
|
|
|
+ if(i.compareRecords){
|
|
|
+ if(index2 == 0){
|
|
|
+ this.mergeObj[key].push(1);
|
|
|
+ }else{
|
|
|
+ if(i[key] === item.assoRecordsFeatures[index2-1][key]){
|
|
|
+ this.mergeObj[key][count] += 1;
|
|
|
+ this.mergeObj[key].push(0);
|
|
|
+ }else{
|
|
|
+ count = index2;
|
|
|
+ this.mergeObj[key].push(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // else{
|
|
|
+ // count = index;
|
|
|
+ // this.mergeObj[key].push(1);
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
})
|
|
|
+ console.log(this.mergeObj)
|
|
|
// data.forEach((item,index)=>{
|
|
|
// if (index === 0) {
|
|
|
// this.mergeObj[key].push(1);
|