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 c6434473..d34b0cf7 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 @@ -998,14 +998,14 @@ export default { this.$refs.qsForm.validate(valid => { if (!valid) return this.loading = true - if(this.form.QuestionName && !this.form.QuestionEnName){ + if(this.form.QuestionName && this.$i18n.locale === 'zh'){ this.form.QuestionEnName = this.form.QuestionName; - }else if(!this.form.QuestionName && this.form.QuestionEnName){ + }else if(this.form.QuestionEnName && this.$i18n.locale === 'en'){ this.form.QuestionName = this.form.QuestionEnName; } - if(this.form.GroupName && !this.form.GroupEnName){ + if(this.form.GroupName && this.$i18n.locale === 'zh'){ this.form.GroupEnName = this.form.GroupName; - }else if(!this.form.GroupName && this.form.GroupEnName){ + }else if(this.$i18n.locale === 'en' && this.form.GroupEnName){ this.form.GroupName = this.form.GroupEnName; } var params = Object.assign({}, this.form) 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 2a44309d..8802478e 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 @@ -718,9 +718,9 @@ export default { this.$refs.tableQsForm.validate(valid => { if (!valid) return this.loading = true - if(this.form.QuestionName && !this.form.QuestionEnName){ + if(this.form.QuestionName && this.$i18n.locale === 'zh'){ this.form.QuestionEnName = this.form.QuestionName; - }else if(!this.form.QuestionName && this.form.QuestionEnName){ + }else if(this.form.QuestionEnName && this.$i18n.locale === 'en'){ this.form.QuestionName = this.form.QuestionEnName; } var params = Object.assign({}, this.form)