This commit is contained in:
duanxiaohai 2024-08-09 14:12:05 +08:00
parent 875fce3f94
commit 91c813e047
1 changed files with 5 additions and 5 deletions

View File

@ -117,13 +117,13 @@
color: '#fff', color: '#fff',
}" }"
> >
<template v-for="item in data.columns"> <template v-for="item in tableType.columns">
<el-table-column <el-table-column
:key="item.label"
v-if="item.type === 'slot'" v-if="item.type === 'slot'"
:show-overflow-tooltip="true" :key="item.label"
:label="item.label" :label="item.label"
:property="item.property" :property="item.property"
:show-overflow-tooltip="true"
:align="item.align || 'center'" :align="item.align || 'center'"
> >
<template #default="scope"> <template #default="scope">
@ -136,8 +136,8 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-else v-else
:property="item.property"
:label="item.label" :label="item.label"
:property="item.property"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:align="item.align || 'center'" :align="item.align || 'center'"
/> />
@ -488,6 +488,7 @@ const columnsList = reactive({
{ {
label: "养老金发放金额", label: "养老金发放金额",
property: "yljffje", property: "yljffje",
type: "slot",
}, },
{ {
label: "养老金发放日期", label: "养老金发放日期",
@ -496,7 +497,6 @@ const columnsList = reactive({
{ {
label: "养老金类型", label: "养老金类型",
property: "yljlx", property: "yljlx",
type: "slot",
}, },
], ],
}, },