临床数据、IQC问题、医学问题国际化问题修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
81c21c995d
commit
3b745051eb
|
@ -17,21 +17,6 @@
|
||||||
v-model="form.QuestionName"
|
v-model="form.QuestionName"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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
|
<el-form-item
|
||||||
:label="$t('trials:qcCfg:table:type')"
|
:label="$t('trials:qcCfg:table:type')"
|
||||||
|
|
|
@ -326,7 +326,7 @@
|
||||||
</box-content>
|
</box-content>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<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 { getTrialCriterionList } from '@/api/trials/reading'
|
||||||
import BoxContent from '@/components/BoxContent'
|
import BoxContent from '@/components/BoxContent'
|
||||||
import DefaultQS from './components/DefaultQsLang'
|
import DefaultQS from './components/DefaultQsLang'
|
||||||
|
@ -334,7 +334,7 @@ import QSForm from './components/QSForm'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import QuestionsPreview from './components/QuestionsPreview'
|
import QuestionsPreview from './components/QuestionsPreview'
|
||||||
import SignForm from '@/views/trials/components/newSignForm'
|
import SignForm from '@/views/trials/components/newSignForm'
|
||||||
import const_ from '@/const/sign-code'
|
import const_ from '@/const/sign-code';
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
QuestionName: '',
|
QuestionName: '',
|
||||||
|
@ -382,7 +382,6 @@ export default {
|
||||||
this.CurrentCriterionType = this.trialCriterionList.find(v => {
|
this.CurrentCriterionType = this.trialCriterionList.find(v => {
|
||||||
return v.TrialReadingCriterionId === this.trialReadingCriterionId
|
return v.TrialReadingCriterionId === this.trialReadingCriterionId
|
||||||
}).CriterionType
|
}).CriterionType
|
||||||
console.log(this.CurrentCriterionType)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -390,6 +389,23 @@ export default {
|
||||||
this.getTrialCriterionList()
|
this.getTrialCriterionList()
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
handleSelectionChange(value) {
|
||||||
this.selectedList = value
|
this.selectedList = value
|
||||||
},
|
},
|
||||||
|
@ -433,7 +449,8 @@ export default {
|
||||||
},
|
},
|
||||||
// 打开系统模板配置项
|
// 打开系统模板配置项
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.addVisible = true
|
// this.addVisible = true
|
||||||
|
this.addDefaultQuestions();
|
||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,10 +16,12 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.ClinicalDataSetEnName"
|
v-model="form.ClinicalDataSetEnName"
|
||||||
:disabled="data.IsFromSystemData === true"
|
:disabled="data.IsFromSystemData === true"
|
||||||
|
@input="form.ClinicalDataSetName = form.ClinicalDataSetEnName"
|
||||||
|
@blur="form.ClinicalDataSetName = form.ClinicalDataSetEnName"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 临床数据名称 -->
|
<!-- 临床数据名称 -->
|
||||||
<el-form-item
|
<!-- <el-form-item
|
||||||
:label="$t('trials:processCfg:title:clinicalDataName')+ '(CN)'"
|
:label="$t('trials:processCfg:title:clinicalDataName')+ '(CN)'"
|
||||||
prop="ClinicalDataSetName"
|
prop="ClinicalDataSetName"
|
||||||
>
|
>
|
||||||
|
@ -27,7 +29,7 @@
|
||||||
v-model="form.ClinicalDataSetName"
|
v-model="form.ClinicalDataSetName"
|
||||||
:disabled="data.IsFromSystemData === true"
|
:disabled="data.IsFromSystemData === true"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<!-- 上传人 -->
|
<!-- 上传人 -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('trials:processCfg:title:uploader')"
|
:label="$t('trials:processCfg:title:uploader')"
|
||||||
|
|
Loading…
Reference in New Issue