临床数据配置表格多选加 | 显示
parent
cf943ea328
commit
6d774a255b
|
@ -22,7 +22,13 @@
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="questionForm[question.Id]">
|
<el-table :data="questionForm[question.Id]">
|
||||||
<el-table-column v-for="item of question.TableQuestions" :key="item.Id" :prop="item.Id"
|
<el-table-column v-for="item of question.TableQuestions" :key="item.Id" :prop="item.Id"
|
||||||
:label="item.QuestionName" min-width="100" show-overflow-tooltip />
|
:label="item.QuestionName" min-width="100" show-overflow-tooltip>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row[item.Id] && Array.isArray(scope.row[item.Id]) ?
|
||||||
|
scope.row[item.Id].join(" | ")
|
||||||
|
: scope.row[item.Id] }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column :label="$t('common:action:action')" min-width="100" show-overflow-tooltip>
|
<el-table-column :label="$t('common:action:action')" min-width="100" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" size="mini" @click="openAddTableCol(question, scope.$index)">
|
<el-button type="text" size="mini" @click="openAddTableCol(question, scope.$index)">
|
||||||
|
|
Loading…
Reference in New Issue