diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue
index f77b165b..e6d93f1d 100644
--- a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue
+++ b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue
@@ -47,7 +47,7 @@
@@ -57,7 +57,7 @@
@@ -791,6 +791,8 @@ export default {
],
QuestionName: [{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
{max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}],
+ QuestionEnName:[{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
+ {max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}],
TypeValue: [{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
{validator: validateTypeVal, trigger: ['blur', 'change']},
{max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200`}],
@@ -974,6 +976,11 @@ export default {
this.$refs.qsForm.validate(valid => {
if (!valid) return
this.loading = true
+ if(this.form.QuestionName && !this.form.QuestionEnName){
+ this.form.QuestionEnName = this.form.QuestionName;
+ }else if(!this.form.QuestionName && this.form.QuestionEnName){
+ this.form.QuestionName = this.form.QuestionEnName;
+ }
var params = Object.assign({}, this.form)
params.TrialId = this.$route.query.trialId
params.ReadingCriterionPageId = this.data.ReadingCriterionPageId
diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue b/src/views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue
index 63c35d12..28cde8a4 100644
--- a/src/views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue
+++ b/src/views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue
@@ -35,7 +35,7 @@
/>
@@ -44,7 +44,7 @@
/>
@@ -553,7 +553,8 @@ export default {
],
QuestionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200` }],
-
+ QuestionEnName:[{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
+ {max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}],
TypeValue: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ validator: validateTypeVal, trigger: 'blur' },
{ max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200` }],
@@ -695,6 +696,11 @@ export default {
this.$refs.tableQsForm.validate(valid => {
if (!valid) return
this.loading = true
+ if(this.form.QuestionName && !this.form.QuestionEnName){
+ this.form.QuestionEnName = this.form.QuestionName;
+ }else if(!this.form.QuestionName && this.form.QuestionEnName){
+ this.form.QuestionName = this.form.QuestionEnName;
+ }
var params = Object.assign({}, this.form)
params.TrialId = this.$route.query.trialId
params.ReadingQuestionId = this.readingQuestionId