Comments for the Authors和Confidential Comments to the Editor不能包含中文
This commit is contained in:
@@ -622,7 +622,26 @@ export default {
|
|||||||
questionSubmit() {
|
questionSubmit() {
|
||||||
if (this.questionform.is_anonymous == '' && this.questionform.is_anonymous != '0') {
|
if (this.questionform.is_anonymous == '' && this.questionform.is_anonymous != '0') {
|
||||||
this.$message.error('Please choose disclose your name or remain anonymous.');
|
this.$message.error('Please choose disclose your name or remain anonymous.');
|
||||||
} else {
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
const regex = /[\u4E00-\u9FA5\uF900-\uFA2D]{1,}/;
|
||||||
|
if (this.questionform.comment && this.questionform.comment != '') {
|
||||||
|
if (regex.test(this.questionform.comment)) {
|
||||||
|
// 如果输入的是中文,则清空输入框
|
||||||
|
this.$message.error('Comments for the Authors cannot use Chinese.');
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.questionform.confident && this.questionform.confident != '') {
|
||||||
|
if (regex.test(this.questionform.confident)) {
|
||||||
|
// 如果输入的是中文,则清空输入框
|
||||||
|
this.$message.error('Confidential Comments to the Editor cannot be in Chinese.');
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
// 验证相加的字数
|
// 验证相加的字数
|
||||||
let Char_Cter =
|
let Char_Cter =
|
||||||
this.questionform.qu9contents +
|
this.questionform.qu9contents +
|
||||||
@@ -695,7 +714,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
mounted() {}
|
mounted() {}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user