|
@@ -143,7 +143,7 @@ export default {
|
|
|
this.activeWordId=item.id
|
|
|
this.activeItem = item
|
|
|
this.wordId = item.id
|
|
|
- item.highIndex = true
|
|
|
+ // item.highIndex = true
|
|
|
this.highInclude = item.bind_sent_data.bind_sents[0].sel_token_idxes
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
@@ -258,6 +258,13 @@ export default {
|
|
|
item.type='explain'
|
|
|
})
|
|
|
this.allWordList = this.wordLit.concat(this.phraseList).concat(this.annotationList)
|
|
|
+ if(this.wordId){
|
|
|
+ this.allWordList.forEach(itema=>{
|
|
|
+ if(itema.id === this.wordId){
|
|
|
+ this.selectItem(itema)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
this.handleData()
|
|
|
this.subtitleLoading = false
|
|
|
}
|
|
@@ -299,10 +306,10 @@ export default {
|
|
|
itema.bind_sent_data.bind_sents.forEach((itemb,indexb)=>{
|
|
|
if(itemb.sent_id===item.id){
|
|
|
itemb.sel_token_idxes.forEach(itemi=>{
|
|
|
- obj.word_id = itema.id // 生词注释短语的id
|
|
|
if(indexs===itemi){
|
|
|
obj.highIndex = true
|
|
|
obj.type = itema.type
|
|
|
+ obj.word_id = itema.id // 生词注释短语的id
|
|
|
}
|
|
|
})
|
|
|
}
|