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