This commit is contained in:
@@ -8,11 +8,10 @@ import dayjs from 'dayjs';
|
||||
import duration from 'dayjs/plugin/duration';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
|
||||
// import {personInfo} from '#/api/property/resident/person';
|
||||
import {personInfo} from '#/api/property/resident/person';
|
||||
import type {Person} from "#/api/property/resident/person/model";
|
||||
import {accessControlColumns,carColumns} from "#/views/property/resident/person/data";
|
||||
// import {personList} from "#/api/property/resident/person";
|
||||
// import {renderDict} from "#/utils/render";
|
||||
import { renderDictValue} from "#/utils/render";
|
||||
|
||||
|
||||
dayjs.extend(duration);
|
||||
@@ -36,11 +35,9 @@ async function handleOpenChange(open: boolean) {
|
||||
}
|
||||
modalApi.modalLoading(true);
|
||||
|
||||
// const {id} = modalApi.getData() as { id: number | string };
|
||||
// const response = await personInfo(id);
|
||||
const response = {id:1};
|
||||
const {id} = modalApi.getData() as { id: number | string };
|
||||
// 赋值
|
||||
personDetail.value = response;
|
||||
personDetail.value = await personInfo(id);
|
||||
|
||||
modalApi.modalLoading(false);
|
||||
}
|
||||
@@ -52,25 +49,25 @@ async function handleOpenChange(open: boolean) {
|
||||
<BasicModal :footer="false" :fullscreen-button="false" title="入驻人员信息" class="w-[70%]">
|
||||
<Descriptions v-if="personDetail" size="small" :column="1" bordered :labelStyle="{width:'100px'}">
|
||||
<DescriptionsItem label="入驻人员">
|
||||
{{ '入驻人员' }}
|
||||
{{ personDetail.userName+'-'+renderDictValue(personDetail.gender,'sys_user_sex')+'-'+personDetail.phone}}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="所属单位">
|
||||
{{ '单位名称' }}
|
||||
{{personDetail.unitName+'-'+personDetail.unitId }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="入驻位置">
|
||||
{{ '单位名称' }}
|
||||
{{ personDetail.locathon }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="人脸图片">
|
||||
{{ '单位名称' }}
|
||||
{{ personDetail.img }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="入驻时间">
|
||||
{{ '单位名称' }}
|
||||
{{ personDetail.time}}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="车牌号码">
|
||||
{{ '单位名称' }}
|
||||
{{personDetail.carNumber}}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="备注">
|
||||
{{ '单位名称' }}
|
||||
{{ personDetail.remark }}
|
||||
</DescriptionsItem>
|
||||
|
||||
</Descriptions>
|
||||
@@ -85,7 +82,7 @@ async function handleOpenChange(open: boolean) {
|
||||
</template>
|
||||
</Table>
|
||||
</TabPane>
|
||||
<TabPane key="2" tab="车辆记录">
|
||||
<TabPane key="2" tab="车辆记录" v-if="personDetail?.carNumber">
|
||||
<Table :dataSource="[]" :columns="carColumns" :pagination="false" >
|
||||
<template #bodyCell="{ column, index }">
|
||||
<template v-if="column.field === 'id'">
|
||||
|
Reference in New Issue
Block a user