natasha 1 year ago
parent
commit
1290df1f04
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/views/content_manage/newspaper_manage/CheckArticle.vue

+ 9 - 2
src/views/content_manage/newspaper_manage/CheckArticle.vue

@@ -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
                                 }
                             })
                         }