|
@@ -68,7 +68,7 @@
|
|
|
<span
|
|
|
class="NNPE-chs"
|
|
|
:class="[
|
|
|
- pItem.tokens[9]===''?'marginRight':'',pItem.highIndex&&printForm.bold.indexOf(pItem.type)>-1?'fontWeight':'',pItem.marginRigh?'marginSingleRight':''
|
|
|
+ pItem.tokens[9]===''?'marginRight':'',(pItem.highIndex&&printForm.bold.indexOf(pItem.type)>-1)||(printForm.bold.indexOf('sentence')>-1&&longSentIds.indexOf(pItem.sent_id)>-1)?'fontWeight':'',pItem.marginRigh?'marginSingleRight':''
|
|
|
]"
|
|
|
:style="{fontSize:printForm.fontSize + 'px',color: printForm.color,lineHeight: printForm.lineHeight,fontFamily:printForm.fontFamily}"
|
|
|
>{{ pItem.tokens[2] }}</span
|
|
@@ -79,7 +79,7 @@
|
|
|
item.wordsList[pIndex + 1].tokens[2] &&
|
|
|
enFhList.indexOf(item.wordsList[pIndex + 1].tokens[2]) > -1"
|
|
|
:class="[
|
|
|
- item.wordsList[pIndex + 1].tokens[8]===''?'marginLeft':'',item.wordsList[pIndex + 1].highIndex&&printForm.bold.indexOf(item.wordsList[pIndex + 1].type)>-1?'fontWeight':'',item.wordsList[pIndex + 1].marginRight?'marginSingleRight':''
|
|
|
+ item.wordsList[pIndex + 1].tokens[8]===''?'marginLeft':'',(item.wordsList[pIndex + 1].highIndex&&printForm.bold.indexOf(item.wordsList[pIndex + 1].type)>-1)||(printForm.bold.indexOf('sentence')>-1&&longSentIds.indexOf(item.wordsList[pIndex + 1].sent_id)>-1)?'fontWeight':'',item.wordsList[pIndex + 1].marginRight?'marginSingleRight':''
|
|
|
]"
|
|
|
:style="{fontSize:printForm.fontSize + 'px',color: printForm.color,lineHeight: printForm.lineHeight,fontFamily:printForm.fontFamily}"
|
|
|
>{{ item.wordsList[pIndex + 1].tokens[2] }}</span
|
|
@@ -295,6 +295,7 @@ export default {
|
|
|
],
|
|
|
articleImg: {}, // 文章图片
|
|
|
sentenceList: [],
|
|
|
+ longSentIds: [], // 长句id
|
|
|
allWordList: [], // 生词短语注释总列表
|
|
|
wordLit:[],
|
|
|
annotationList: [],
|
|
@@ -398,6 +399,7 @@ export default {
|
|
|
let resArr = [];
|
|
|
let articleInfo = JSON.parse(JSON.stringify(this.articleInfo));
|
|
|
this.sentenceList = articleInfo.art_corpus_data?articleInfo.art_corpus_data.sentList:[]
|
|
|
+ this.longSentIds = articleInfo.art_corpus_data&&articleInfo.art_corpus_data.artStatInfo?articleInfo.art_corpus_data.artStatInfo.longSentIds:[]
|
|
|
this.wordLit = articleInfo.art_voc_data?articleInfo.art_voc_data:[]
|
|
|
this.annotationList = articleInfo.art_phrase_data?articleInfo.art_explain_data:[]
|
|
|
this.phraseList = articleInfo.art_explain_data?articleInfo.art_phrase_data:[]
|
|
@@ -490,6 +492,7 @@ export default {
|
|
|
this.sentenceList.forEach((item,index) => {
|
|
|
item.StyleTokens.forEach((items,indexs)=>{
|
|
|
items.isShow = this.enFhList.indexOf(items.tokens[2])==-1
|
|
|
+ items.sent_id = item.id
|
|
|
resArr[item.pno].wordsList.push(items)
|
|
|
})
|
|
|
});
|