外层问题配置为表格问题不显示时阅片时不展示表格
parent
7bc70bfd6c
commit
c633fbcf87
|
|
@ -1,10 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="criterion-form-item">
|
<div class="criterion-form-item">
|
||||||
<div v-if="!!question.GroupName && question.Type === 'group'"
|
<div
|
||||||
|
v-if="(!!question.GroupName && question.Type === 'group') && ((question.ShowQuestion === 1 && question.ParentTriggerValueList.includes(String(questionForm[question.ParentId]))) || question.ShowQuestion === 0)"
|
||||||
style="font-weight: bold;font-size: 16px;margin: 5px 0px;color:#fff;">
|
style="font-weight: bold;font-size: 16px;margin: 5px 0px;color:#fff;">
|
||||||
{{ question.GroupName }}
|
{{ question.GroupName }}
|
||||||
</div>
|
</div>
|
||||||
<div v-if="question.Type === 'table' || question.Type === 'basicTable'"
|
<div
|
||||||
|
v-if="(question.Type === 'table' || question.Type === 'basicTable') && ((question.ShowQuestion === 1 && question.ParentTriggerValueList.includes(String(questionForm[question.ParentId]))) || question.ShowQuestion === 0)"
|
||||||
style="font-weight: bold;font-size: 14px;margin: 5px 0px;">
|
style="font-weight: bold;font-size: 14px;margin: 5px 0px;">
|
||||||
<div style="display: flex;justify-content: space-between;align-items: center;color:#fff;margin: 10px 0 5px">
|
<div style="display: flex;justify-content: space-between;align-items: center;color:#fff;margin: 10px 0 5px">
|
||||||
<span :title="question.Remark">{{ question.QuestionName }}</span>
|
<span :title="question.Remark">{{ question.QuestionName }}</span>
|
||||||
|
|
@ -14,7 +16,8 @@
|
||||||
{{ $t('common:button:add') }}
|
{{ $t('common:button:add') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="questionForm[question.Id]">
|
<el-table :data="questionForm[question.Id]"
|
||||||
|
v-if="(question.ShowQuestion === 1 && question.ParentTriggerValueList.includes(String(questionForm[question.ParentId]))) || question.ShowQuestion === 0">
|
||||||
<el-table-column :label="$t('CustomizeQuestionFormItem:label:OrderMark')" width="60px" show-overflow-tooltip>
|
<el-table-column :label="$t('CustomizeQuestionFormItem:label:OrderMark')" width="60px" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ question.OrderMark }}{{ scope.$index + 1 }}
|
{{ question.OrderMark }}{{ scope.$index + 1 }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue