This commit is contained in:
duanxiaohai 2024-08-09 14:05:21 +08:00
parent ed388d1573
commit 875fce3f94
2 changed files with 23 additions and 11 deletions

View File

@ -70,11 +70,6 @@ const router = createRouter({
path: '/home/index/person', path: '/home/index/person',
component: () => import('../view/person/index.vue'), component: () => import('../view/person/index.vue'),
}, },
// {
// name: '首页地图2',
// path: '/home/index/map2',
// component: () => import('../view/sy_mapcopy.vue'),
// },
] ]
}, },
] ]

View File

@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<div class="person-side"> <div class="person-side">
<div > <div>
<div class="my-label"> <div class="my-label">
<div class="my-label-title">{{ pdT }}</div> <div class="my-label-title">{{ pdT }}</div>
</div> </div>
@ -117,14 +117,30 @@
color: '#fff', color: '#fff',
}" }"
> >
<template v-for="item in tableType.columns"> <template v-for="item in data.columns">
<el-table-column <el-table-column
:width="item.width" :key="item.label"
:prop="item.property" v-if="item.type === 'slot'"
:show-overflow-tooltip="true"
:label="item.label" :label="item.label"
align="center" :property="item.property"
:align="item.align || 'center'"
> >
<template #default="scope">
<slot
:name="item.property"
:currentCol="item"
:currentData="scope.row"
></slot>
</template>
</el-table-column> </el-table-column>
<el-table-column
v-else
:property="item.property"
:label="item.label"
:show-overflow-tooltip="true"
:align="item.align || 'center'"
/>
</template> </template>
</el-table> </el-table>
<el-pagination <el-pagination
@ -139,7 +155,7 @@
/> />
</div> </div>
</div> </div>
<div > <div>
<div class="my-label"> <div class="my-label">
<div class="my-label-title">{{ pdT }}</div> <div class="my-label-title">{{ pdT }}</div>
</div> </div>
@ -480,6 +496,7 @@ const columnsList = reactive({
{ {
label: "养老金类型", label: "养老金类型",
property: "yljlx", property: "yljlx",
type: "slot",
}, },
], ],
}, },