diff --git a/src/assets/img/ai.png b/src/assets/img/ai.png
new file mode 100644
index 0000000..cfdc0b6
Binary files /dev/null and b/src/assets/img/ai.png differ
diff --git a/src/components/common/langs/en.js b/src/components/common/langs/en.js
index 0e16142..743dbbf 100644
--- a/src/components/common/langs/en.js
+++ b/src/components/common/langs/en.js
@@ -414,8 +414,15 @@ Information:'Fill in information',
},
Formula:{
FormulaTemplate:'Formula Template'
+},
+AI: {
+ AISummaryAnalysis: 'AI analysis',
+ AIKeywords: 'Keywords',
+ AIAbstract: 'Abstract',
+ AIAbstractInfo: 'Analysis Result',
}
+
}
diff --git a/src/components/common/langs/zh.js b/src/components/common/langs/zh.js
index 2e10755..a29f908 100644
--- a/src/components/common/langs/zh.js
+++ b/src/components/common/langs/zh.js
@@ -407,7 +407,13 @@ const zh = {
},
Formula:{
FormulaTemplate:'公式模版'
- }
+ },
+ AI:{
+ AISummaryAnalysis:'AI分析',
+ AIKeywords:'关键词',
+ AIAbstract:'摘要',
+ AIAbstractInfo:'分析结果',
+ },
}
diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue
index 51cbbfd..422bb19 100644
--- a/src/components/page/articleAdd.vue
+++ b/src/components/page/articleAdd.vue
@@ -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)
diff --git a/src/components/page/articleDetailEditor.vue b/src/components/page/articleDetailEditor.vue
index 3d0192a..73eacae 100644
--- a/src/components/page/articleDetailEditor.vue
+++ b/src/components/page/articleDetailEditor.vue
@@ -5,7 +5,12 @@
Special Issues :{{ form.special_title }}
- +
+