From c55459d32fbeb311e4988eaf72fc5ac999627975 Mon Sep 17 00:00:00 2001
From: caiyiling <1321909229@qq.com>
Date: Wed, 7 Aug 2024 18:11:58 +0800
Subject: [PATCH] =?UTF-8?q?qc=E9=97=AE=E9=A2=98=E9=85=8D=E7=BD=AE=E6=9B=B4?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../qc-question/components/DefaultQS.vue | 46 ++++++-------------
1 file changed, 14 insertions(+), 32 deletions(-)
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
/>
-
-
-
- {{ $fd('LanguageType', scope.row.LanguageType) }}
-
-
{
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()
}
}