Compare commits

..

No commits in common. "a01ee34f12948add1c15d4e6a15d297910f14eec" and "a85cf70df8989ec117d7b9b40d265b2709cd3ad8" have entirely different histories.

1 changed files with 32 additions and 14 deletions

View File

@ -7,6 +7,23 @@
<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;">
@ -53,6 +70,16 @@
: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"
@ -113,7 +140,6 @@ 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 {
@ -141,23 +167,15 @@ export default {
selectArr: [] selectArr: []
} }
}, },
computed: { mounted() {
...mapGetters(['language']) this.trialId = this.$route.query.trialId
}, 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
@ -196,7 +214,7 @@ export default {
}, },
// //
handleReset() { handleReset() {
this.searchData = searchDataDefault(); this.searchData = searchDataDefault()
this.getList() this.getList()
} }
} }