This commit is contained in:
2025-07-28 15:27:05 +08:00
parent 10426bb23e
commit 38be3888a2
5 changed files with 197 additions and 22 deletions

View File

@@ -56,10 +56,13 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="Manuscript Title :" prop="title" label-width="160px">
<el-input v-model="form.title" placeholder="Please enter title"></el-input>
</el-form-item>
<el-form-item label="Whether ethical approval was obtained ?" prop="approval" label-width="300px">
<el-radio-group v-model="form.approval">
<el-radio :label="1">Yes</el-radio>
@@ -159,6 +162,27 @@
to view detailed policies.
</div>
</el-form-item>
<el-form-item label="Has artificial intelligence been used in the article ?" prop="approval" label-width="340px">
<el-radio-group v-model="form.is_use_ai" @input="changeUseAi">
<el-radio :label="1">Yes</el-radio>
<el-radio :label="2" >No</el-radio>
</el-radio-group>
<div v-if="form.is_use_ai == 1">
<!-- <p class="zyfont" style="font-weight: normal; margin: 20px 0 10px 0; color: #777">
If yes, please provide a brief explanation in the text box below.<i
class="el-icon-edit"
style="margin-left: 10px"
></i>
</p> -->
<el-input
type="textarea"
placeholder="please input content"
v-model="form.use_ai_explain"
:rows="4"
></el-input>
</div>
</el-form-item>
<div style="text-align: center; margin: 40px 0 0 0">
<el-button type="warning" @click="onStagingSave(1)" class="pro_stage">Save as draft </el-button>
<el-button type="primary" @click="onStep(1)" class="pro_ceed"
@@ -462,7 +486,7 @@
<div>
<el-form-item label="Research areas :" prop="major" label-width="160px">
<common-major-list :list="majorValueList" @load="(e) => (this.majorValueList = e)"></common-major-list>
</el-form-item>
</el-form-item>
<h3>Co-submitting</h3>
<p style="line-height: 25px; margin: 0 10px 0 55px; font-size: 14px">
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', {