|
@@ -162,6 +162,7 @@ export const patentKeywordsHighlight = {
|
|
|
for(let i=0;i<this.contrastList.length;i++){
|
|
|
if(this.contrastList[i].patentNo == this.patent.publicNo){
|
|
|
if(this.contrastList[i].fields.indexOf(field)!=-1){
|
|
|
+ console.log(this.contrastList[i].fields,field)
|
|
|
var a = {
|
|
|
color:"#dff209",
|
|
|
Type:2,
|
|
@@ -176,6 +177,7 @@ export const patentKeywordsHighlight = {
|
|
|
}else{
|
|
|
a.pass = false
|
|
|
}
|
|
|
+ console.log(a)
|
|
|
text = this.AddClass1(a);
|
|
|
// console.log(text)
|
|
|
}
|
|
@@ -300,8 +302,6 @@ if(index!=-1){
|
|
|
|
|
|
},
|
|
|
AddClass1(selectObject){
|
|
|
-
|
|
|
-
|
|
|
// let el = this.getColumnNode(selectObject.column);
|
|
|
let el = selectObject.temNode;
|
|
|
if(selectObject.pass){
|
|
@@ -352,14 +352,21 @@ if(index!=-1){
|
|
|
Indexs.forEach(function (match){
|
|
|
let currentIndex =0;
|
|
|
let temSplitStrings = new Array();
|
|
|
-
|
|
|
+ console.log(splitStrings,match)
|
|
|
splitStrings.forEach(function (item){
|
|
|
if(item.type =='text'){
|
|
|
// console.log(item.text.indexOf(match[0]))
|
|
|
if(item.text){
|
|
|
// console.log(match.index,currentIndex,item.text,match[0])
|
|
|
if(match.index >= currentIndex && match.index < (currentIndex + item.text.length) ){
|
|
|
+ if(selectObject.column.indexOf('权利要求')!=-1){
|
|
|
+ item.text = item.text.replace(/\r/g,' ')
|
|
|
+ match.index -=1
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(match.index + match[0].length,currentIndex + item.text.length,item.text,item.text.indexOf(match[0]))
|
|
|
if((match.index + match[0].length) <= (currentIndex + item.text.length) && item.text.indexOf(match[0])!=-1){
|
|
|
+ console.log(2)
|
|
|
if(match.index > currentIndex){
|
|
|
// var a =item.text.substring(0,match.index-currentIndex)
|
|
|
// console.log(a)
|