阅片单元问题配置问题名称中英文问题
continuous-integration/drone/push Build is passing Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-07-31 13:35:47 +08:00
parent 404d18faa5
commit df304d8f07
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -718,9 +718,9 @@ export default {
this.$refs.tableQsForm.validate(valid => { this.$refs.tableQsForm.validate(valid => {
if (!valid) return if (!valid) return
this.loading = true this.loading = true
if(this.form.QuestionName && !this.form.QuestionEnName){ if(this.form.QuestionName && this.$i18n.locale === 'zh'){
this.form.QuestionEnName = this.form.QuestionName; 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; this.form.QuestionName = this.form.QuestionEnName;
} }
var params = Object.assign({}, this.form) var params = Object.assign({}, this.form)