Compare commits

...

2 Commits

Author SHA1 Message Date
姚宇浩 77a86f999d Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc 2024-08-09 14:29:47 +08:00
姚宇浩 030c46db26 gx 2024-08-09 14:28:29 +08:00
1 changed files with 21 additions and 15 deletions

View File

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