qc问题配置更改
parent
fad91756b6
commit
c55459d32f
|
@ -7,23 +7,6 @@
|
|||
<el-form-item :label="$t('trials:qcCfg:table:questionName')">
|
||||
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
|
||||
</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-select v-model="searchData.Type" clearable style="width:120px;">
|
||||
|
@ -70,16 +53,6 @@
|
|||
:label="$t('trials:qcCfg:table:questionName')"
|
||||
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
|
||||
prop="Type"
|
||||
|
@ -140,6 +113,7 @@ import { getQCQuestionConfigureList } from '@/api/dictionary'
|
|||
import { batchAddTrialQCQuestionConfigure } from '@/api/trials'
|
||||
import BoxContent from '@/components/BoxContent'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
const searchDataDefault = () => {
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue