generated from Leo_Ding/web-template
生存状态管理
This commit is contained in:
parent
b8d8b85266
commit
b8775ed9fc
@ -51,7 +51,7 @@
|
|||||||
</x-search-bar>
|
</x-search-bar>
|
||||||
<a-row :gutter="8" :wrap="false">
|
<a-row :gutter="8" :wrap="false">
|
||||||
<a-col flex="auto">
|
<a-col flex="auto">
|
||||||
<a-card title="待分配对象列表">
|
<a-card title="生存状态列表">
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="primary">导入</a-button>
|
<a-button type="primary">导入</a-button>
|
||||||
@ -66,6 +66,18 @@
|
|||||||
<template v-if="column.key === 'serialNumber'">
|
<template v-if="column.key === 'serialNumber'">
|
||||||
<span>{{ index + 1 }}</span>
|
<span>{{ index + 1 }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template v-if="column.key === 'livingStatus'">
|
||||||
|
<span>{{ record.livingStatus.passWayAt == null ? '在世' : '已去世' }}</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-if="column.key === 'diedTime'">
|
||||||
|
<span>{{ record.livingStatus.passWayAt == null ? '--' : dayjs(record.livingStatus.passWayAt).format('YYYY-MM-DD') }}</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-if="column.key === 'diedReason'">
|
||||||
|
<span>{{ record.livingStatus.passWayReason != '' ? record.livingStatus.passWayReason : '--' }}</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
@ -123,11 +135,18 @@ const columns = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '身份证号',
|
title: '身份证号',
|
||||||
dataIndex: 'idNumber',
|
dataIndex: 'identityNo',
|
||||||
key: 'idNumber',
|
key: 'identityNo',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '是否在世',
|
||||||
|
dataIndex: 'livingStatus',
|
||||||
|
key: 'livingStatus',
|
||||||
|
align: 'center',
|
||||||
|
width: 150,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '去世时间',
|
title: '去世时间',
|
||||||
@ -149,6 +168,9 @@ const columns = [
|
|||||||
key: 'updateTime',
|
key: 'updateTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 120,
|
width: 120,
|
||||||
|
customRender: ({ text, record }) => {
|
||||||
|
return text ? dayjs(text).format('YYYY-MM-DD') : '-';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// --- 联系方式 ---
|
// --- 联系方式 ---
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user