ecrf配置更改
parent
a6b68ea599
commit
77f8a80fd6
|
@ -143,6 +143,12 @@
|
||||||
v-if="question.Type==='number'"
|
v-if="question.Type==='number'"
|
||||||
v-model="questionForm[question.Id]"
|
v-model="questionForm[question.Id]"
|
||||||
/>
|
/>
|
||||||
|
<!-- 自动分类 -->
|
||||||
|
<el-input
|
||||||
|
v-if="question.Type==='calss'"
|
||||||
|
v-model="questionForm[question.Id]"
|
||||||
|
disabled
|
||||||
|
/>
|
||||||
<!-- 上传图像 -->
|
<!-- 上传图像 -->
|
||||||
<el-upload
|
<el-upload
|
||||||
v-if="question.Type==='upload'"
|
v-if="question.Type==='upload'"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of $d.Criterion_Question_Type"
|
v-for="item of $d.Criterion_Question_Type"
|
||||||
|
v-show="item.value !== 'class'"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of $d.Criterion_Question_Type"
|
v-for="item of $d.Criterion_Question_Type"
|
||||||
|
v-show="item.value !== 'class'"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
{{ $t("trials:readingUnit:qsList:title:add") }}
|
{{ $t("trials:readingUnit:qsList:title:add") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="questionForm[question.Id]">
|
<el-table :data="question.TableQuestions.Answers">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="item of question.TableQuestions.Questions"
|
v-for="item of question.TableQuestions.Questions"
|
||||||
:key="item.Id"
|
:key="item.Id"
|
||||||
|
@ -235,7 +235,7 @@
|
||||||
<el-upload
|
<el-upload
|
||||||
v-if="question.Type === 'upload'"
|
v-if="question.Type === 'upload'"
|
||||||
:action="accept"
|
:action="accept"
|
||||||
:limit="question.ImageCount"
|
:limit="question.ImageCount > 0 ? parseInt(question.ImageCount) : 100"
|
||||||
:on-preview="handlePictureCardPreview"
|
:on-preview="handlePictureCardPreview"
|
||||||
:before-upload="handleBeforeUpload"
|
:before-upload="handleBeforeUpload"
|
||||||
:http-request="uploadScreenshot"
|
:http-request="uploadScreenshot"
|
||||||
|
@ -290,7 +290,7 @@
|
||||||
v-if="
|
v-if="
|
||||||
question.Childrens &&
|
question.Childrens &&
|
||||||
question.Childrens.length > 0 &&
|
question.Childrens.length > 0 &&
|
||||||
(question.Type !== 'table' && question.Type !== 'basicTable')
|
(question.Type !== 'table' && question.Type !== 'basicTable') && Object.keys(questionForm).length > 0
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<QuestionFormItem
|
<QuestionFormItem
|
||||||
|
@ -369,9 +369,7 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
questionForm: {
|
questionForm: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default() {
|
required: true,
|
||||||
return {};
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
isSystemCriterion: {
|
isSystemCriterion: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
@ -379,9 +377,7 @@ export default {
|
||||||
},
|
},
|
||||||
question: {
|
question: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default() {
|
required: true,
|
||||||
return {};
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
criterionId: {
|
criterionId: {
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -666,6 +662,9 @@ export default {
|
||||||
row.QuestionName + this.$t("trials:readingUnit:qsList:title:tableQs"); // '表格问题'
|
row.QuestionName + this.$t("trials:readingUnit:qsList:title:tableQs"); // '表格问题'
|
||||||
this.QuestionsList = row.TableQuestions.Questions;
|
this.QuestionsList = row.TableQuestions.Questions;
|
||||||
this.AnswersList = row.TableQuestions.Answers;
|
this.AnswersList = row.TableQuestions.Answers;
|
||||||
|
row.TableQuestions.Questions.map(i=>{
|
||||||
|
this.$set(this.QuestionsForm, i.Id, null)
|
||||||
|
})
|
||||||
this.QuestionsForm = {};
|
this.QuestionsForm = {};
|
||||||
},
|
},
|
||||||
getOrganInfoList() {
|
getOrganInfoList() {
|
||||||
|
|
|
@ -131,7 +131,7 @@
|
||||||
<el-upload
|
<el-upload
|
||||||
v-if="question.Type==='upload'"
|
v-if="question.Type==='upload'"
|
||||||
:action="accept"
|
:action="accept"
|
||||||
:limit="question.ImageCount"
|
:limit="question.ImageCount > 0 ? parseInt(question.ImageCount) : 100"
|
||||||
:on-preview="handlePictureCardPreview"
|
:on-preview="handlePictureCardPreview"
|
||||||
:before-upload="handleBeforeUpload"
|
:before-upload="handleBeforeUpload"
|
||||||
:http-request="uploadScreenshot"
|
:http-request="uploadScreenshot"
|
||||||
|
@ -273,11 +273,11 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.question.Type === 'number') {
|
// if (this.question.Type === 'number') {
|
||||||
this.$set(this.questionForm, this.question.Id, 0)
|
// this.$set(this.questionForm, this.question.Id, 0)
|
||||||
} else {
|
// } else {
|
||||||
this.$set(this.questionForm, this.question.Id, '')
|
// this.$set(this.questionForm, this.question.Id, null)
|
||||||
}
|
// }
|
||||||
if (this.question.TableQuestionType === 1 && this.question.LesionType !== null) {
|
if (this.question.TableQuestionType === 1 && this.question.LesionType !== null) {
|
||||||
this.getOrganInfoList()
|
this.getOrganInfoList()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue