1
This commit is contained in:
@@ -343,7 +343,7 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="OTHER SPECIFIC CRITICISMS">
|
||||
<el-radio-group v-model="questionform.other">
|
||||
<el-radio-group v-model="item.question.other" style="line-height: 24px;">
|
||||
<el-radio :label="1">Imperfect style</el-radio>
|
||||
<br />
|
||||
<el-radio :label="2">Too long</el-radio>
|
||||
@@ -354,10 +354,26 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="Confidential Comments to the Editor">
|
||||
<el-input type="textarea" placeholder="please input content" v-model="questionform.confident" :rows="8"></el-input>
|
||||
<el-input type="textarea" placeholder="please input content" v-model="item.question.confidential" :rows="8"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="Comments for the Authors">
|
||||
<el-input type="textarea" placeholder="please input content" v-model="questionform.comment" :rows="8"></el-input>
|
||||
<el-form-item label="Comments for the Authors" prop="comment">
|
||||
<el-input type="textarea" placeholder="please input content" v-model="item.question.comments" :rows="8"></el-input>
|
||||
<p style="color: #e6a23c;font-size: 13px;" v-if="this.txt_mess.atype!='Comment'||this.txt_mess.atype!='News'">
|
||||
Dear reviewer, we recommend the available comment should be more than 40 words.
|
||||
</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="Please choose disclose your name or remain anonymous.">
|
||||
<el-radio-group v-model="item.question.is_anonymous">
|
||||
<el-radio :label="0">Disclose name</el-radio>
|
||||
<br />
|
||||
<el-radio :label="1">Remain anonymous</el-radio>
|
||||
</el-radio-group>
|
||||
<p style="line-height: 20px;color: #aaa;font-size: 13px;margin: 12px 0 0 0;">
|
||||
If you agree to disclose your name, we will thank you in published
|
||||
pdf. , we will also thank you as anonymous reviewer if you reject.
|
||||
<br />e.g. {{txt_mess.title}} thanks AAAAAAAA, BBBBBBBB and other anonymous reviewers for
|
||||
their contribution to the peer review of this paper.
|
||||
</p>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="questionSubmit">submit</el-button>
|
||||
@@ -383,6 +399,7 @@
|
||||
articlefileList: [],
|
||||
figFileList: [],
|
||||
articlezipList: [],
|
||||
txt_mess: {},
|
||||
detailDate: {
|
||||
artrevid: '',
|
||||
article: '',
|
||||
@@ -404,19 +421,19 @@
|
||||
qu6: '',
|
||||
qu7: '',
|
||||
qu8: '',
|
||||
qu9: 'false',
|
||||
qu9: '',
|
||||
qu9contents: '',
|
||||
qu10: 'false',
|
||||
qu10: '',
|
||||
qu10contents: '',
|
||||
qu11: 'false',
|
||||
qu11: '',
|
||||
qu11contents: '',
|
||||
qu12: 'false',
|
||||
qu12: '',
|
||||
qu12contents: '',
|
||||
qu13: 'false',
|
||||
qu13: '',
|
||||
qu13contents: '',
|
||||
qu14: 'false',
|
||||
qu14: '',
|
||||
qu14contents: '',
|
||||
qu15: 'false',
|
||||
qu15: '',
|
||||
qu15contents: '',
|
||||
rated: '',
|
||||
recommend: '',
|
||||
@@ -429,7 +446,42 @@
|
||||
required: true,
|
||||
message: 'please select',
|
||||
trigger: 'blur'
|
||||
}]
|
||||
}],
|
||||
comment: [{
|
||||
required: true,
|
||||
message: "please input content",
|
||||
trigger: "blur"
|
||||
}, {
|
||||
validator: function(rule, value, callback) {
|
||||
if (new RegExp("[\\u4E00-\\u9FFF]+", "g").test(value)) {
|
||||
//中文
|
||||
let blankCount = 0;
|
||||
for (let i in value.match(/ /g)) {
|
||||
blankCount++
|
||||
}
|
||||
let wenziCount = 0;
|
||||
for (let j = 0; j < value.length; j++) {
|
||||
if ((value.charCodeAt(j) < 0) || (value.charCodeAt(j) > 255)) {
|
||||
wenziCount++
|
||||
}
|
||||
}
|
||||
if (blankCount + wenziCount <= 60) {
|
||||
callback(new Error(
|
||||
"Dear reviewer, we recommend the available comment should be more than 60 Chinese words."));
|
||||
}
|
||||
} else {
|
||||
//英文
|
||||
let blankCount = 0;
|
||||
for (let i in value.match(/ /g)) {
|
||||
blankCount++
|
||||
}
|
||||
if (blankCount <= 40) {
|
||||
callback(new Error("Dear reviewer, we recommend the available comment should be more than 40 words."));
|
||||
}
|
||||
}
|
||||
},
|
||||
trigger: "blur"
|
||||
}],
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -444,10 +496,15 @@
|
||||
return this.baseUrl + 'api/reviewer/up_file/type/' + type;
|
||||
},
|
||||
questionSubmit() {
|
||||
this.$refs.question.validate((valid) => {
|
||||
if (this.questionform.is_anonymous == "" && this.questionform.is_anonymous != "0") {
|
||||
this.$message.error('Please choose disclose your name or remain anonymous.');
|
||||
} else {
|
||||
this.$refs.question.validate((valid) => {
|
||||
if (valid) {
|
||||
this.loading = true;
|
||||
this.$api.post('api/Reviewer/questionSubmit', this.questionform).then((res) => {
|
||||
this.$api
|
||||
.post('api/Reviewer/questionSubmit', this.questionform)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
if (res.code == 0) {
|
||||
this.$message.success('success!!');
|
||||
@@ -457,9 +514,12 @@
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$message.error('please select a recommend option');
|
||||
this.loading = false
|
||||
this.$message.error('Please complete the information!');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
onSubmit() {
|
||||
if (this.detailDate.articlefile == '') {
|
||||
@@ -502,6 +562,7 @@
|
||||
this.detailDate.reviewer = res.account;
|
||||
this.detailDate.ctime = res.ctime;
|
||||
this.detailDate.state = res.state;
|
||||
this.txt_mess = res;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
@@ -564,6 +625,7 @@
|
||||
this.questionform.other = res.data.other;
|
||||
this.questionform.confident = res.data.confidential;
|
||||
this.questionform.comment = res.data.comments;
|
||||
this.questionform.is_anonymous = res.data.is_anonymous;
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -647,6 +709,9 @@
|
||||
case 4:
|
||||
str = 'invalid';
|
||||
break;
|
||||
case 5:
|
||||
str = 'invitation';
|
||||
break;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user