This commit is contained in:
姚宇浩 2024-08-09 14:28:29 +08:00
parent 875fce3f94
commit 030c46db26
1 changed files with 21 additions and 16 deletions

View File

@ -117,29 +117,32 @@
color: '#fff',
}"
>
<template v-for="item in data.columns">
<template v-for="item in tableType.columns">
<el-table-column
:key="item.label"
v-if="item.type === 'slot'"
:show-overflow-tooltip="true"
:label="item.label"
:property="item.property"
:align="item.align || 'center'"
:align="center"
>
<template #default="scope">
<slot
:name="item.property"
:currentCol="item"
:currentData="scope.row"
></slot>
<!-- 医疗保险类型 -->
<div v-if="item.property == 'ylbxlx'">
<div v-if="scope.row.ylbxlx == 0">城乡居民基本医疗保险</div>
<div v-else>职工基本医疗保险</div>
</div>
<!-- 养老金类型 -->
<div v-if="item.property == 'yljffje'">
<div v-if="scope.row.yljffje == 0">城乡居民养老金</div>
<div v-else>职工养老金</div>
</div>
</template>
</el-table-column>
<el-table-column
v-else
:width="item.width"
:property="item.property"
:label="item.label"
:show-overflow-tooltip="true"
:align="item.align || 'center'"
:align="center"
/>
</template>
</el-table>
@ -485,6 +488,11 @@ const columnsList = reactive({
退休养老: {
url: "/api/ggfwyth/ysyzt/getRyylxxList",
column: [
{
label: "养老金类型",
property: "yljlx",
type:'slot',
},
{
label: "养老金发放金额",
property: "yljffje",
@ -493,11 +501,7 @@ const columnsList = reactive({
label: "养老金发放日期",
property: "yljffrq",
},
{
label: "养老金类型",
property: "yljlx",
type: "slot",
},
],
},
综合: {
@ -506,6 +510,7 @@ const columnsList = reactive({
{
label: "医疗保险类型",
property: "ylbxlx",
type: "slot",
},
{
label: "发放日期",