|
@@ -167,39 +167,24 @@ export default {
|
|
|
},
|
|
|
handleSaveArticle(){
|
|
|
this.saveLoaing= true
|
|
|
- let MethodName = '/PaperServer/Manager/ArticleManager/AddArticle'
|
|
|
+ let MethodName = '/PaperServer/Manager/ArticleManager/EditArticleContent'
|
|
|
let data = {
|
|
|
- art_title: this.articleForm.art_title,
|
|
|
+ id: this.id,
|
|
|
art_content: this.articleForm.art_content,
|
|
|
- iss_id: this.$route.query.issueId,
|
|
|
- chn_item: this.$route.query.chn_name,
|
|
|
- en_flag: 1
|
|
|
- }
|
|
|
- if(this.id){
|
|
|
- MethodName = '/PaperServer/Manager/ArticleManager/EditArticle'
|
|
|
- data.id = this.id
|
|
|
- // data.updater_id = JSON.parse(getToken()).user_id
|
|
|
+ refresh_corpus_data_flag: true
|
|
|
}
|
|
|
if(!this.articleForm.art_content.trim()){
|
|
|
this.$message.warning('文章内容不能为空')
|
|
|
return false
|
|
|
}
|
|
|
- data.art_content = this.id?this.articleForm.art_content:null
|
|
|
- data.art_org_content = this.articleForm.art_content.trim()
|
|
|
getLogin(MethodName, data)
|
|
|
.then((res) => {
|
|
|
- requestGet('/PaperServer/_test_/refreshOneArtCorpusDataFromContent',{
|
|
|
- id: this.id
|
|
|
- }).then((res) => {
|
|
|
- this.saveLoaing = false
|
|
|
- if(res.status===1){
|
|
|
- this.$message.success('文章内容修改成功')
|
|
|
- this.getArticleInfo()
|
|
|
- this.editArticleFlag = !this.editArticleFlag
|
|
|
- }
|
|
|
- }).catch(()=>{
|
|
|
- this.saveLoaing = false
|
|
|
- })
|
|
|
+ this.saveLoaing = false
|
|
|
+ if(res.status===1){
|
|
|
+ this.$message.success('文章内容修改成功')
|
|
|
+ this.getArticleInfo()
|
|
|
+ this.editArticleFlag = !this.editArticleFlag
|
|
|
+ }
|
|
|
}).catch(()=>{
|
|
|
this.saveLoaing = false
|
|
|
})
|
|
@@ -448,7 +433,7 @@ export default {
|
|
|
word_name=word_name+this.activeItem.bind_sent_data.bind_sents[0].sent_bean.tokens[item][2]+this.activeItem.bind_sent_data.bind_sents[0].sent_bean.tokens[item][9]
|
|
|
})
|
|
|
this.activeItem.exp_title = word_name
|
|
|
- this.activeItem.bind_sent_data.bind_sents[0].sel_token_idxes = highArr.sort()
|
|
|
+ this.activeItem.bind_sent_data.bind_sents[0].sel_token_idxes = highArr
|
|
|
this.highInclude = highArr
|
|
|
item.highIndex = !item.highIndex
|
|
|
item.word_id = this.activeItem.id
|