Compare commits

..

No commits in common. "a84084a15fe7a5a5c5a3f8728d8407ea101a5c05" and "49f693c244b10cac2f08e7ae6d4567cb7729ff40" have entirely different histories.

3 changed files with 20 additions and 24 deletions

View File

@ -17,6 +17,21 @@
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 { addDefaultQuestions , batchDeteteCriterionMedicineQuestion, getReadingMedicineTrialQuestionList, deleteReadingMedicineTrialQuestion, confirmReadingMedicineQuestion, verifyReadingMedicineQuestion, verifyIsCanConfirm } from '@/api/trials'
import { 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,6 +382,7 @@ export default {
this.CurrentCriterionType = this.trialCriterionList.find(v => {
return v.TrialReadingCriterionId === this.trialReadingCriterionId
}).CriterionType
console.log(this.CurrentCriterionType)
}
},
mounted() {
@ -389,23 +390,6 @@ 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
},
@ -449,8 +433,7 @@ export default {
},
//
handleAdd() {
// this.addVisible = true
this.addDefaultQuestions();
this.addVisible = true
},
handleEdit(row) {
this.currentRow = { ...row }

View File

@ -1272,9 +1272,7 @@ export default {
// ",",
// " | "
// );
let BodyPartTypes = res.BodyPartTypes;
this.form.BodyPartTypes = "";
this.form.BodyPartTypeList = BodyPartTypes.split("|");
this.form.BodyPartTypeList = this.form.BodyPartTypes.split("|");
let r = await this.getTrialBodyPartList();
if (r) {
var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {