Merge branch 'uat' into uat_us

uat_us
DESKTOP-6C3NK6N\WXS 2024-08-07 18:17:05 +08:00
commit 861c7022b9
4 changed files with 19 additions and 37 deletions

View File

@ -1,14 +1,14 @@
<template> <template>
<div v-loading="pageLoading" style="height:100%;display:flex;flex-direction: column;"> <div v-loading="pageLoading" style="height:100%;display:flex;flex-direction: column;">
<div style="height:50px"> <div style="height:50px">
<div style="text-align:right;"> <!-- <div style="text-align:right;">
<el-switch <el-switch
v-model="isEnglish" v-model="isEnglish"
active-text="EN" active-text="EN"
inactive-text="中文" inactive-text="中文"
style="margin-right:20px;" style="margin-right:20px;"
/> />
</div> </div> -->
<div style="text-align:center;"> <div style="text-align:center;">
<h3>{{ title }}</h3> <h3>{{ title }}</h3>
</div> </div>

View File

@ -4,7 +4,7 @@
<h2 style="text-align:center;"> <h2 style="text-align:center;">
<!-- 中心调研表 --> <!-- 中心调研表 -->
{{ $t('trials:researchForm:title:question') }} {{ $t('trials:researchForm:title:question') }}
<TopLang style="position: fixed;top: 40px;right: 40px" /> <!-- <TopLang style="position: fixed;top: 40px;right: 40px" /> -->
</h2> </h2>
<el-card shadow="hover"> <el-card shadow="hover">
<el-form <el-form

View File

@ -36,14 +36,14 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- Name CN --> <!-- Name CN -->
<el-table-column <!-- <el-table-column
prop="ChineseName" prop="ChineseName"
sortable="custom" sortable="custom"
:label="$t('trials:enrolledReviews:table:nameCN')" :label="$t('trials:enrolledReviews:table:nameCN')"
v-if="!hasPermi(['role:ea'])" v-if="!hasPermi(['role:ea'])"
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
/> /> -->
<!-- 用户名 --> <!-- 用户名 -->
<el-table-column <el-table-column
prop="UserName" prop="UserName"

View File

@ -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()
} }
} }