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 @@ > - + + + + Yes @@ -159,6 +162,27 @@ to view detailed policies. + + + + Yes + No + +
+ + +
+
Save as draft - +

Co-submitting

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 @@

- + + + + {{ form.use_ai_explain }} + + + + + + + + + + +
diff --git a/src/components/page/articleList.vue b/src/components/page/articleList.vue index afdd60e..c571335 100644 --- a/src/components/page/articleList.vue +++ b/src/components/page/articleList.vue @@ -257,6 +257,48 @@

+ + + + +
+
+ + + +
+
+
+
+ + + + +
+
+ + + +
+
+
+
+

Cover letter :

@@ -406,6 +448,10 @@ export default { data() { return { + researchAreas:['1'], + AIcontent:['1'], + AIcontentStr:"", + majorValueList:[], baseUrl: this.Common.baseUrl, mediaUrl: this.Common.mediaUrl, items: '', @@ -562,6 +608,16 @@ this.$router.push({ } }); }, + getMajorData(data) { + this.$api + .post('api/Article/getArticleField', { + article_id: data + }) + .then((res) => { + this.majorValueList = res.data + console.log(res, '已经保存的值'); + }) + }, // 点击稿件内容文件 esy_deta(e) { this.$api @@ -603,6 +659,7 @@ this.$router.push({ .catch(err => { console.log(err); }); + this.getMajorData(e) this.$api .post('api/Article/getFilelistByArticleID', { articleId: e @@ -1047,4 +1104,10 @@ this.$router.push({ font-weight: bold; letter-spacing: -0.5px; } + /deep/.research_area .el-collapse-item__arrow{ + left: 25px; + } + /deep/.research_area .el-collapse-item__content{ + padding-bottom: 0 !important; + } \ No newline at end of file diff --git a/src/components/page/articleListEditor_A.vue b/src/components/page/articleListEditor_A.vue index 5dc74bf..af41350 100644 --- a/src/components/page/articleListEditor_A.vue +++ b/src/components/page/articleListEditor_A.vue @@ -104,6 +104,8 @@ Begin Produce + +

- {{ item.title }} + + + {{ item.title }} Author's previous articles @@ -172,6 +185,7 @@ Research areas +
@@ -1530,6 +1544,17 @@ Save + + 这是一段信息 + + Cancel + + +
@@ -1545,6 +1570,7 @@ export default { props: ['journals'], data() { return { + dialogVisible: false, showFullContent: false, majorValueList: [], majorBox: false, @@ -1862,6 +1888,10 @@ export default { } }, methods: { + openAIContent() { + this.dialogVisible=true + + }, toggleContent1(i) { this.aiReview[i].showFullContent = !this.aiReview[i].showFullContent; this.$forceUpdate(); @@ -3512,4 +3542,22 @@ export default { .show-more-btn:hover { background-color: #45a049; } +.card_label { + display: inline-block; + padding: 0px 10px; + background-color: #409EFF; /* 绿色背景 */ + color: #fff !important; + + font-size: 12px; + border-radius: 6px; /* 圆角 */ + position: relative; /* 用于斜角效果 */ + text-align: center; + transform: skew(335deg); /* 倾斜效果 */ + margin-right: 10px; /* 如果有多个标签时,之间保持间距 */ + line-height: 22px; +} + +.openAIContentBox{ + width: 80vw; +}