临床数据、IQC问题、医学问题国际化问题修改
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-06-27 14:02:01 +08:00
parent 81c21c995d
commit 3b745051eb
4 changed files with 39 additions and 53 deletions

View File

@ -17,21 +17,6 @@
v-model="form.QuestionName"
/>
</el-form-item>
<el-form-item
:label="$t('common:title:languageType')"
prop="LanguageType"
>
<el-select
v-model="form.LanguageType"
>
<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')"

View File

@ -326,7 +326,7 @@
</box-content>
</template>
<script>
import { batchDeteteCriterionMedicineQuestion, getReadingMedicineTrialQuestionList, deleteReadingMedicineTrialQuestion, confirmReadingMedicineQuestion, verifyReadingMedicineQuestion, verifyIsCanConfirm } from '@/api/trials'
import { addDefaultQuestions , batchDeteteCriterionMedicineQuestion, getReadingMedicineTrialQuestionList, deleteReadingMedicineTrialQuestion, confirmReadingMedicineQuestion, verifyReadingMedicineQuestion, verifyIsCanConfirm } from '@/api/trials'
import { getTrialCriterionList } from '@/api/trials/reading'
import BoxContent from '@/components/BoxContent'
import DefaultQS from './components/DefaultQsLang'
@ -334,7 +334,7 @@ import QSForm from './components/QSForm'
import Pagination from '@/components/Pagination'
import QuestionsPreview from './components/QuestionsPreview'
import SignForm from '@/views/trials/components/newSignForm'
import const_ from '@/const/sign-code'
import const_ from '@/const/sign-code';
const searchDataDefault = () => {
return {
QuestionName: '',
@ -382,7 +382,6 @@ export default {
this.CurrentCriterionType = this.trialCriterionList.find(v => {
return v.TrialReadingCriterionId === this.trialReadingCriterionId
}).CriterionType
console.log(this.CurrentCriterionType)
}
},
mounted() {
@ -390,6 +389,23 @@ export default {
this.getTrialCriterionList()
},
methods: {
//
addDefaultQuestions(){
let data = {
TrialId: this.$route.query.trialId,
TrialReadingCriterionId: this.trialReadingCriterionId,
LanguageType: 0
}
if( this.otherInfo.LanguageType === null ){
data.LanguageType = this.$i18n.locale === 'zh' ? 0 : 1
} else {
data.LanguageType = this.otherInfo.LanguageType
}
addDefaultQuestions(data).then(res => {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.getList();
})
},
handleSelectionChange(value) {
this.selectedList = value
},
@ -433,7 +449,8 @@ export default {
},
//
handleAdd() {
this.addVisible = true
// this.addVisible = true
this.addDefaultQuestions();
},
handleEdit(row) {
this.currentRow = { ...row }

View File

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

View File

@ -16,10 +16,12 @@
<el-input
v-model="form.ClinicalDataSetEnName"
:disabled="data.IsFromSystemData === true"
@input="form.ClinicalDataSetName = form.ClinicalDataSetEnName"
@blur="form.ClinicalDataSetName = form.ClinicalDataSetEnName"
/>
</el-form-item>
<!-- 临床数据名称 -->
<el-form-item
<!-- <el-form-item
:label="$t('trials:processCfg:title:clinicalDataName')+ 'CN'"
prop="ClinicalDataSetName"
>
@ -27,7 +29,7 @@
v-model="form.ClinicalDataSetName"
:disabled="data.IsFromSystemData === true"
/>
</el-form-item>
</el-form-item> -->
<!-- 上传人 -->
<el-form-item
:label="$t('trials:processCfg:title:uploader')"