qc问题配置更改
parent
fad91756b6
commit
c55459d32f
|
@ -7,23 +7,6 @@
|
||||||
<el-form-item :label="$t('trials:qcCfg:table:questionName')">
|
<el-form-item :label="$t('trials:qcCfg:table:questionName')">
|
||||||
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
|
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 语言类型 -->
|
|
||||||
<el-form-item
|
|
||||||
:label="$t('common:title:languageType')"
|
|
||||||
>
|
|
||||||
<el-select
|
|
||||||
v-model="searchData.LanguageType"
|
|
||||||
style="width:120px;"
|
|
||||||
clearable
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.LanguageType"
|
|
||||||
:key="item.value"
|
|
||||||
:value="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<!-- 类型 -->
|
<!-- 类型 -->
|
||||||
<el-form-item :label="$t('trials:qcCfg:table:type')">
|
<el-form-item :label="$t('trials:qcCfg:table:type')">
|
||||||
<el-select v-model="searchData.Type" clearable style="width:120px;">
|
<el-select v-model="searchData.Type" clearable style="width:120px;">
|
||||||
|
@ -70,16 +53,6 @@
|
||||||
:label="$t('trials:qcCfg:table:questionName')"
|
:label="$t('trials:qcCfg:table:questionName')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<!-- 审核问题 -->
|
|
||||||
<el-table-column
|
|
||||||
prop="LanguageType"
|
|
||||||
:label="$t('common:title:languageType')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ $fd('LanguageType', scope.row.LanguageType) }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<!-- 类型 -->
|
<!-- 类型 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Type"
|
prop="Type"
|
||||||
|
@ -140,6 +113,7 @@ import { getQCQuestionConfigureList } from '@/api/dictionary'
|
||||||
import { batchAddTrialQCQuestionConfigure } from '@/api/trials'
|
import { batchAddTrialQCQuestionConfigure } from '@/api/trials'
|
||||||
import BoxContent from '@/components/BoxContent'
|
import BoxContent from '@/components/BoxContent'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
|
@ -167,15 +141,23 @@ export default {
|
||||||
selectArr: []
|
selectArr: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
computed: {
|
||||||
this.trialId = this.$route.query.trialId
|
...mapGetters(['language'])
|
||||||
this.getList()
|
},
|
||||||
|
created(){
|
||||||
|
this.trialId = this.$route.query.trialId;
|
||||||
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取受试者列表信息
|
// 获取受试者列表信息
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
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 => {
|
getQCQuestionConfigureList(this.searchData).then(res => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.list = res.Result.CurrentPageData
|
this.list = res.Result.CurrentPageData
|
||||||
|
@ -214,7 +196,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 重置
|
// 重置
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.searchData = searchDataDefault()
|
this.searchData = searchDataDefault();
|
||||||
this.getList()
|
this.getList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue