Merge branch 'uat' into uat_us
commit
86321d8405
|
@ -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 }
|
||||||
|
|
|
@ -1272,7 +1272,9 @@ export default {
|
||||||
// ",",
|
// ",",
|
||||||
// " | "
|
// " | "
|
||||||
// );
|
// );
|
||||||
this.form.BodyPartTypeList = this.form.BodyPartTypes.split("|");
|
let BodyPartTypes = res.BodyPartTypes;
|
||||||
|
this.form.BodyPartTypes = "";
|
||||||
|
this.form.BodyPartTypeList = BodyPartTypes.split("|");
|
||||||
let r = await this.getTrialBodyPartList();
|
let r = await this.getTrialBodyPartList();
|
||||||
if (r) {
|
if (r) {
|
||||||
var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {
|
var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {
|
||||||
|
|
Loading…
Reference in New Issue