tijiao
This commit is contained in:
@@ -2647,9 +2647,17 @@ export default {
|
||||
if (res.article && res.article.article_id) {
|
||||
this.stagingID = res.article.article_id;
|
||||
this.form.article_id = res.article.article_id;
|
||||
this.form.title = res.article.title;
|
||||
this.form.abstrart = res.article.abstrart;
|
||||
this.form.fund = res.article.fund;
|
||||
|
||||
if(!this.form.title){
|
||||
this.form.title = res.article.title;
|
||||
}
|
||||
if(!this.form.abstrart){
|
||||
this.form.abstrart = res.article.abstrart;
|
||||
}
|
||||
if(!this.form.fund){
|
||||
this.form.fund = res.article.fund;
|
||||
}
|
||||
if(this.keywordsList.length==1&&this.keywordsList[0].ke==``){
|
||||
let keyList = res.article.keywords.split(',');
|
||||
this.keywordsList = [];
|
||||
for (let i = 0; i < keyList.length; i++) {
|
||||
@@ -2657,6 +2665,8 @@ export default {
|
||||
ke: keyList[i]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
this.$forceUpdate();
|
||||
const url = new URL(window.location.href);
|
||||
url.searchParams.set('id', res.article.article_id); // 替换或新增 id 参数
|
||||
@@ -3352,7 +3362,7 @@ export default {
|
||||
this.stagingID = res.data.article_id;
|
||||
this.form.article_id = res.data.article_id;
|
||||
const url = new URL(window.location.href);
|
||||
url.searchParams.set('id', res.article.article_id); // 替换或新增 id 参数
|
||||
url.searchParams.set('id', res.data.article_id); // 替换或新增 id 参数
|
||||
window.history.replaceState({}, document.title, url.toString());
|
||||
setTimeout(() => {
|
||||
this.getMajorData();
|
||||
@@ -3562,6 +3572,7 @@ export default {
|
||||
this.form.approval_file = res.data.base.approval_file;
|
||||
this.form.approval_content = res.data.base.approval_content;
|
||||
this.form.abstrart = res.data.base.abstrart;
|
||||
this.form.istransfer = res.data.base.is_transfer==1?true:false;
|
||||
this.form.fund = res.data.base.fund;
|
||||
this.form.is_use_ai = res.data.base.is_use_ai == 1 || res.data.base.is_use_ai == 2 ? res.data.base.is_use_ai : '';
|
||||
this.agreechecked = res.data.base.is_agree == 1 ? true : false;
|
||||
|
||||
Reference in New Issue
Block a user