This commit is contained in:
2025-03-28 16:23:44 +08:00
parent 9fb503757a
commit 852970da14
7 changed files with 212 additions and 30 deletions

View File

@@ -1462,12 +1462,17 @@ export default {
return false;
}
this.$refs.articleform.validate((valid) => {
if (this.isAbstractTooShort(this.form.abstrart)) {
this.$message.error('The abstract should not be less than 200 Chinese characters or English words!');
return false;
}
//验证文档
if (this.form.manuscirpt == '') {
this.$message.error('Manuscirpt is required');
// console.log('file up error');
return false;
}
//验证作者
let authorlist = this.form.authorList;
let Firsta = 0;
@@ -1508,9 +1513,11 @@ export default {
this.$message.error('First author and corresponding author must be exist');
return false;
}
console.log('this.form.major at line 1512:', this.form.major);
//验证文章领域
this.form.major = this.majorValueList.map((item) => item.selectedValue[item.selectedValue.length - 1]).toString(',');
if (this.form.major == '') {
this.$message.error('Major is required');
this.$message.error('Please select the Research areas');
return false;
}
//验证选择转投但没选期刊项的情况
@@ -1613,7 +1620,17 @@ export default {
},
Submission_of_manuscripts() {
// 提交稿件
// 提交稿件AI检索
this.$api
// api/Article/addArticle
.post('api/Aireview/review', {
article_id: this.form.article_id,
abstrart: this.form.abstrart,
keywords: this.form.keyWords,
api_model: 'gpt-4o'
})
.then((res) => {});
this.$api
// api/Article/addArticle
.post('api/Article/addArticlePart4', this.form)