分类问题补充属性
parent
7ebfcd0827
commit
94e924a753
|
@ -156,12 +156,27 @@
|
|||
</el-checkbox-group>
|
||||
<!-- 自动分类 -->
|
||||
<el-input
|
||||
v-if="question.Type === 'class' && !question.TypeValue"
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 1"
|
||||
v-model="questionForm[question.Id]"
|
||||
/>
|
||||
<el-radio-group
|
||||
v-if="question.Type === 'class' && question.TypeValue"
|
||||
<el-select
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 2"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
@change="(val) => { formItemChange(val, question) }"
|
||||
>
|
||||
<el-option
|
||||
v-for="val in question.TypeValue.split('|')"
|
||||
:key="val"
|
||||
:label="val.trim()"
|
||||
:value="val.trim()"
|
||||
/>
|
||||
</el-select>
|
||||
<el-radio-group
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 3"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
@change="(val) => { formItemChange(val, question) }"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of question.TypeValue.split('|')"
|
||||
|
|
|
@ -97,12 +97,27 @@
|
|||
</el-checkbox-group>
|
||||
<!-- 自动分类 -->
|
||||
<el-input
|
||||
v-if="question.Type === 'class' && !question.TypeValue"
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 1"
|
||||
v-model="questionForm[question.Id]"
|
||||
/>
|
||||
<el-radio-group
|
||||
v-if="question.Type === 'class' && question.TypeValue"
|
||||
<el-select
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 2"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
@change="(val) => { formItemChange(val, question) }"
|
||||
>
|
||||
<el-option
|
||||
v-for="val in question.TypeValue.split('|')"
|
||||
:key="val"
|
||||
:label="val.trim()"
|
||||
:value="val.trim()"
|
||||
/>
|
||||
</el-select>
|
||||
<el-radio-group
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 3"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
@change="(val) => { formItemChange(val, question) }"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of question.TypeValue.split('|')"
|
||||
|
|
|
@ -198,12 +198,28 @@
|
|||
/>
|
||||
<!-- 自动分类 -->
|
||||
<el-input
|
||||
v-if="question.Type === 'class' && !question.TypeValue"
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 1"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
/>
|
||||
<el-radio-group
|
||||
v-if="question.Type === 'class' && question.TypeValue"
|
||||
<el-select
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 2"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
@change="(val) => { formItemChange(val, question) }"
|
||||
>
|
||||
<el-option
|
||||
v-for="val in question.TypeValue.split('|')"
|
||||
:key="val"
|
||||
:label="val.trim()"
|
||||
:value="val.trim()"
|
||||
/>
|
||||
</el-select>
|
||||
<el-radio-group
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 3"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
@change="(val) => { formItemChange(val, question) }"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of question.TypeValue.split('|')"
|
||||
|
|
|
@ -103,12 +103,28 @@
|
|||
/>
|
||||
<!-- 自动计算 -->
|
||||
<el-input
|
||||
v-if="question.Type === 'class' && !question.TypeValue"
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 1"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
/>
|
||||
<el-radio-group
|
||||
v-if="question.Type === 'class' && question.TypeValue"
|
||||
<el-select
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 2"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
@change="(val) => { formItemChange(val, question) }"
|
||||
>
|
||||
<el-option
|
||||
v-for="val in question.TypeValue.split('|')"
|
||||
:key="val"
|
||||
:label="val.trim()"
|
||||
:value="val.trim()"
|
||||
/>
|
||||
</el-select>
|
||||
<el-radio-group
|
||||
v-if="question.Type === 'class' && question.ClassifyShowType === 3"
|
||||
v-model="questionForm[question.Id]"
|
||||
:disabled="!question.ClassifyEditType"
|
||||
@change="(val) => { formItemChange(val, question) }"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of question.TypeValue.split('|')"
|
||||
|
@ -118,6 +134,7 @@
|
|||
{{ item.trim() }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
|
||||
<!-- 自增 -->
|
||||
<el-input
|
||||
v-if="question.Type==='increment'"
|
||||
|
|
|
@ -910,6 +910,48 @@
|
|||
</el-table>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<!-- 分类是否可编辑 -->
|
||||
<el-form-item
|
||||
v-if="form.Type === 'class'"
|
||||
:label="$t('trials:readingUnit:qsList:title:ClassifyEditType')"
|
||||
prop="ClassifyEditType"
|
||||
:rules="[
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ClassifyEditType"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ClassifyEditType"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!-- 分类显示类型 -->
|
||||
<el-form-item
|
||||
v-if="form.Type === 'class'"
|
||||
:label="$t('trials:readingUnit:qsList:title:ClassifyShowType')"
|
||||
prop="ClassifyShowType"
|
||||
:rules="[
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ClassifyShowType"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ClassifyShowType"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
<div class="base-dialog-footer" style="text-align:right;margin-top:10px;">
|
||||
|
@ -1026,6 +1068,8 @@ export default {
|
|||
ExportIdentification: 0,
|
||||
ExportResult: [],
|
||||
ClassifyType: null,
|
||||
ClassifyEditType: null,
|
||||
ClassifyShowType: null
|
||||
// IsEnable: true
|
||||
},
|
||||
rules: {
|
||||
|
@ -1479,6 +1523,11 @@ export default {
|
|||
} else {
|
||||
form.MaxAnswerLength = null
|
||||
}
|
||||
if (val === 'class') {
|
||||
form.ClassifyEditType = 1
|
||||
} else {
|
||||
form.ClassifyEditType = null
|
||||
}
|
||||
form.IsRequired = 2
|
||||
form.LesionType = null
|
||||
form.ImageCount = 0
|
||||
|
@ -1499,6 +1548,7 @@ export default {
|
|||
form.ExportIdentification = 0
|
||||
form.ExportResult = []
|
||||
form.ClassifyType = null
|
||||
form.ClassifyShowType = null
|
||||
},
|
||||
getLesionType() {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
|
@ -607,26 +607,26 @@
|
|||
|
||||
<!-- 分类 -->
|
||||
<el-form-item
|
||||
v-if="form.Type === 'class'"
|
||||
:label="$t('trials:readingUnit:qsList:title:ClassifyType')"
|
||||
prop="ClassifyType"
|
||||
:rules="[
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ClassifyType"
|
||||
@change="classifyTypeChange"
|
||||
v-if="form.Type === 'class'"
|
||||
:label="$t('trials:readingUnit:qsList:title:ClassifyType')"
|
||||
prop="ClassifyType"
|
||||
:rules="[
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ClassifyType"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
<el-radio-group
|
||||
v-model="form.ClassifyType"
|
||||
@change="classifyTypeChange"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-radio
|
||||
v-for="item of $d.ClassifyType"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="form.Type === 'class' && form.ClassifyType === 0"
|
||||
:label="$t('trials:readingUnit:label:ClassifyQuestion')"
|
||||
|
@ -706,50 +706,92 @@
|
|||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="form.Type === 'class' && form.ClassifyType === 1"
|
||||
:label="$t('trials:readingUnit:label:ClassifyAlgorithms')"
|
||||
prop="ClassifyAlgorithms"
|
||||
:rules="[
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]"
|
||||
>
|
||||
<div>
|
||||
<el-table
|
||||
ref="CalculateTable"
|
||||
:data="ClassifyAlgorithmsList"
|
||||
style="margin: 10px;width: calc(100% - 20px)"
|
||||
size="small"
|
||||
v-if="form.Type === 'class' && form.ClassifyType === 1"
|
||||
:label="$t('trials:readingUnit:label:ClassifyAlgorithms')"
|
||||
prop="ClassifyAlgorithms"
|
||||
:rules="[
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]"
|
||||
>
|
||||
<div>
|
||||
<el-table
|
||||
ref="CalculateTable"
|
||||
:data="ClassifyAlgorithmsList"
|
||||
style="margin: 10px;width: calc(100% - 20px)"
|
||||
size="small"
|
||||
>
|
||||
<!-- 运算类型 -->
|
||||
<el-table-column
|
||||
:label="$t('trials:readingUnit:label:label')"
|
||||
show-overflow-tooltip
|
||||
min-width="70"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.label }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 选项 -->
|
||||
<el-table-column
|
||||
:label="$t('trials:readingUnit:label:options')"
|
||||
show-overflow-tooltip
|
||||
min-width="128"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.val" multiple>
|
||||
<el-option
|
||||
v-for="item in classifyQuestionOptions"
|
||||
:key="item"
|
||||
:label="item"
|
||||
:value="item">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<!-- 分类是否可编辑 -->
|
||||
<el-form-item
|
||||
v-if="form.Type === 'class'"
|
||||
:label="$t('trials:readingUnit:qsList:title:ClassifyEditType')"
|
||||
prop="ClassifyEditType"
|
||||
:rules="[
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ClassifyEditType"
|
||||
>
|
||||
<!-- 运算类型 -->
|
||||
<el-table-column
|
||||
:label="$t('trials:readingUnit:label:label')"
|
||||
show-overflow-tooltip
|
||||
min-width="70"
|
||||
<el-radio
|
||||
v-for="item of $d.ClassifyEditType"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.label }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 选项 -->
|
||||
<el-table-column
|
||||
:label="$t('trials:readingUnit:label:options')"
|
||||
show-overflow-tooltip
|
||||
min-width="128"
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!-- 分类显示类型 -->
|
||||
<el-form-item
|
||||
v-if="form.Type === 'class'"
|
||||
:label="$t('trials:readingUnit:qsList:title:ClassifyShowType')"
|
||||
prop="ClassifyShowType"
|
||||
:rules="[
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ClassifyShowType"
|
||||
>
|
||||
<el-radio
|
||||
v-for="item of $d.ClassifyShowType"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.val" multiple>
|
||||
<el-option
|
||||
v-for="item in classifyQuestionOptions"
|
||||
:key="item"
|
||||
:label="item"
|
||||
:value="item">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</el-form-item>
|
||||
{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -848,7 +890,9 @@ export default {
|
|||
ExportIdentification: 0,
|
||||
ExportResult: [],
|
||||
ImageCount: 0,
|
||||
ClassifyType: null
|
||||
ClassifyType: null,
|
||||
ClassifyEditType: null,
|
||||
ClassifyShowType: null,
|
||||
// IsEnable: true
|
||||
},
|
||||
rules: {
|
||||
|
@ -1238,6 +1282,11 @@ export default {
|
|||
} else {
|
||||
form.MaxAnswerLength = null
|
||||
}
|
||||
if (val === 'class') {
|
||||
form.ClassifyEditType = 1
|
||||
} else {
|
||||
form.ClassifyEditType = null
|
||||
}
|
||||
form.IsRequired = 2
|
||||
form.TypeValue = ''
|
||||
form.TableQuestionType = null
|
||||
|
@ -1260,6 +1309,7 @@ export default {
|
|||
form.ExportResult = []
|
||||
form.ImageCount = 0
|
||||
form.ClassifyType = null
|
||||
form.ClassifyShowType = null
|
||||
},
|
||||
close() {
|
||||
this.$emit('close')
|
||||
|
|
Loading…
Reference in New Issue