ecrf配置更改

uat_us
caiyiling 2024-10-17 14:50:57 +08:00
parent a6b68ea599
commit 77f8a80fd6
5 changed files with 22 additions and 15 deletions

View File

@ -143,6 +143,12 @@
v-if="question.Type==='number'"
v-model="questionForm[question.Id]"
/>
<!-- 自动分类 -->
<el-input
v-if="question.Type==='calss'"
v-model="questionForm[question.Id]"
disabled
/>
<!-- 上传图像 -->
<el-upload
v-if="question.Type==='upload'"

View File

@ -22,6 +22,7 @@
>
<el-option
v-for="item of $d.Criterion_Question_Type"
v-show="item.value !== 'class'"
:key="item.value"
:value="item.value"
:label="item.label"

View File

@ -16,6 +16,7 @@
>
<el-option
v-for="item of $d.Criterion_Question_Type"
v-show="item.value !== 'class'"
:key="item.value"
:value="item.value"
:label="item.label"

View File

@ -23,7 +23,7 @@
{{ $t("trials:readingUnit:qsList:title:add") }}
</el-button>
</div>
<el-table :data="questionForm[question.Id]">
<el-table :data="question.TableQuestions.Answers">
<el-table-column
v-for="item of question.TableQuestions.Questions"
:key="item.Id"
@ -235,7 +235,7 @@
<el-upload
v-if="question.Type === 'upload'"
:action="accept"
:limit="question.ImageCount"
:limit="question.ImageCount > 0 ? parseInt(question.ImageCount) : 100"
:on-preview="handlePictureCardPreview"
:before-upload="handleBeforeUpload"
:http-request="uploadScreenshot"
@ -290,7 +290,7 @@
v-if="
question.Childrens &&
question.Childrens.length > 0 &&
(question.Type !== 'table' && question.Type !== 'basicTable')
(question.Type !== 'table' && question.Type !== 'basicTable') && Object.keys(questionForm).length > 0
"
>
<QuestionFormItem
@ -369,9 +369,7 @@ export default {
props: {
questionForm: {
type: Object,
default() {
return {};
},
required: true,
},
isSystemCriterion: {
type: Boolean,
@ -379,9 +377,7 @@ export default {
},
question: {
type: Object,
default() {
return {};
},
required: true,
},
criterionId: {
type: String,
@ -666,6 +662,9 @@ export default {
row.QuestionName + this.$t("trials:readingUnit:qsList:title:tableQs"); // ''
this.QuestionsList = row.TableQuestions.Questions;
this.AnswersList = row.TableQuestions.Answers;
row.TableQuestions.Questions.map(i=>{
this.$set(this.QuestionsForm, i.Id, null)
})
this.QuestionsForm = {};
},
getOrganInfoList() {

View File

@ -131,7 +131,7 @@
<el-upload
v-if="question.Type==='upload'"
:action="accept"
:limit="question.ImageCount"
:limit="question.ImageCount > 0 ? parseInt(question.ImageCount) : 100"
:on-preview="handlePictureCardPreview"
:before-upload="handleBeforeUpload"
:http-request="uploadScreenshot"
@ -273,11 +273,11 @@ export default {
})
}
}
if (this.question.Type === 'number') {
this.$set(this.questionForm, this.question.Id, 0)
} else {
this.$set(this.questionForm, this.question.Id, '')
}
// if (this.question.Type === 'number') {
// this.$set(this.questionForm, this.question.Id, 0)
// } else {
// this.$set(this.questionForm, this.question.Id, null)
// }
if (this.question.TableQuestionType === 1 && this.question.LesionType !== null) {
this.getOrganInfoList()
}