From 38be3888a234bbc0fcd1cab0f66a488429a272ce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com>
Date: Mon, 28 Jul 2025 15:27:05 +0800
Subject: [PATCH] tijiao
---
src/api/index.js | 4 +-
src/components/page/articleAdd.vue | 78 ++++++++++++++++-----
src/components/page/articleDetailEditor.vue | 24 ++++++-
src/components/page/articleList.vue | 63 +++++++++++++++++
src/components/page/articleListEditor_A.vue | 50 ++++++++++++-
5 files changed, 197 insertions(+), 22 deletions(-)
diff --git a/src/api/index.js b/src/api/index.js
index fa6d863..2698668 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -19,8 +19,8 @@ const service = axios.create({
// baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换
// baseURL: 'http://www.tougao.com/', //测试本地 记得切换
// baseURL: 'http://192.168.110.110/tougao/public/index.php/',
- baseURL: '/api', //本地
- // baseURL: '/', //正式
+ // baseURL: '/api', //本地
+ baseURL: '/', //正式
});
diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue
index 2902edd..004d6f4 100644
--- a/src/components/page/articleAdd.vue
+++ b/src/components/page/articleAdd.vue
@@ -56,10 +56,13 @@
>
-
+
TMR Publishing Group publishes multiple journals and offers you the opportunity to co-submit your paper. @@ -927,6 +951,8 @@ export default { data() { return { + hasAIContent: ['1'], + isHasAI: '0', majorValueList: [], baseUrl: this.Common.baseUrl, usercap: localStorage.getItem('U_role'), @@ -1010,7 +1036,9 @@ export default { supplementary: '', approval_file: '', approval_content: '', - code: '' + code: '', + is_use_ai:2, + use_ai_explain:'', // topics:null }, raltiAutList: [], @@ -1394,7 +1422,7 @@ export default { } 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('Please select the Research areas'); @@ -2488,7 +2516,7 @@ export default { this.onStaging(2); } } - if(e == 4) { + if (e == 4) { this.getMajorData(); } }, @@ -2538,6 +2566,10 @@ export default { this.$message.error('The abstract should not be less than 200 Chinese characters or English words!'); return false; } + if(this.form.is_use_ai==1&&this.form.use_ai_explain==''){ + this.$message.error('Please describe how artificial intelligence is utilized in this article'); + return false; + } if (e == 1) { if (this.form.journal == 0 || !this.form.journal) { this.$message.error('Please select the Journal'); @@ -2659,11 +2691,15 @@ export default { console.log('this.form at line 2707:', this.form.abstrart); this.form.keyWords = fstr == '' ? '' : fstr.substring(0, fstr.length - 1); this.form.major = this.majorValueList.map((item) => item.selectedValue[item.selectedValue.length - 1]).toString(','); - + 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.is_use_ai==1&&this.form.use_ai_explain==''){ + this.$message.error('Please describe how artificial intelligence is utilized in this article'); + return false; + } this.$api.post('api/Article/addArticlePart1', this.form).then((res) => { if (res.code == 0) { this.stagingID = res.data.article_id; @@ -2730,7 +2766,6 @@ export default { } }); } else if (e == 4) { - this.$api .post('api/Article/addArticlefile', { article_id: this.form.article_id, @@ -2781,7 +2816,7 @@ export default { }); } }, - + isAbstractTooShort(text) { let chineseCount = (text.match(/[\u4e00-\u9fa5]/g) || []).length; let englishCount = (text.match(/[A-Za-z0-9]/g) || []).length; @@ -2798,15 +2833,22 @@ export default { }) .then((res) => { this.majorValueList = res.data.map((item) => ({ - selectedValue: Array.isArray(item.major) - ? item.shu - : typeof item.shu === 'string' - ? item.shu.split(',').map(Number) - : [item.shu] - })); + selectedValue: Array.isArray(item.major) + ? item.shu + : typeof item.shu === 'string' + ? item.shu.split(',').map(Number) + : [item.shu] + })); console.log(res, '已经保存的值'); - }) - }, + }); + }, + changeUseAi(e){ + console.log('e at line 2837:', e) + if(e==2){ + this.form.use_ai_explain = '' + } + + }, // 读取 Temporary() { this.$api @@ -2824,10 +2866,12 @@ export default { this.form.approval_content = res.data.base.approval_content; this.form.abstrart = res.data.base.abstrart; this.form.fund = res.data.base.fund; + this.form.is_use_ai = res.data.base.is_use_ai; + this.form.use_ai_explain = res.data.base.use_ai_explain; console.log(res.data.base); // this.form.topics = res.data.base.topics // 领域 - + console.log('this.majorValueList at line 2853:', this.majorValueList); // this.$api // .post('api/Major/getMajorForAddArticle', { diff --git a/src/components/page/articleDetailEditor.vue b/src/components/page/articleDetailEditor.vue index bc01b43..e4c34a6 100644 --- a/src/components/page/articleDetailEditor.vue +++ b/src/components/page/articleDetailEditor.vue @@ -163,7 +163,21 @@
-+ Field {{ i + 1 }}:{{ v.major_title.replace('Medicine >', '').trim() + }} +
+ +