临床数据配置表格多选加 | 显示

main
wangxiaoshuang 2025-06-24 11:17:39 +08:00
parent cf943ea328
commit 6d774a255b
1 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,13 @@
</div>
<el-table :data="questionForm[question.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>
<template slot-scope="scope">
<el-button type="text" size="mini" @click="openAddTableCol(question, scope.$index)">