diff --git a/src/views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue b/src/views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue index 0f16a720..97f06d29 100644 --- a/src/views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue +++ b/src/views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue @@ -7,23 +7,6 @@ - - - - - - @@ -70,16 +53,6 @@ :label="$t('trials:qcCfg:table:questionName')" show-overflow-tooltip /> - - - - { return { @@ -167,15 +141,23 @@ export default { selectArr: [] } }, - mounted() { - this.trialId = this.$route.query.trialId - this.getList() + computed: { + ...mapGetters(['language']) + }, + created(){ + this.trialId = this.$route.query.trialId; + this.getList(); }, methods: { // 获取受试者列表信息 getList() { this.loading = true - this.searchData.TrialId = this.trialId + this.searchData.TrialId = this.trialId; + if (this.$i18n.locale === 'zh') { + this.searchData.LanguageType = 0 + } else { + this.searchData.LanguageType = 1 + } getQCQuestionConfigureList(this.searchData).then(res => { this.loading = false this.list = res.Result.CurrentPageData @@ -214,7 +196,7 @@ export default { }, // 重置 handleReset() { - this.searchData = searchDataDefault() + this.searchData = searchDataDefault(); this.getList() } }