修正ts类型

This commit is contained in:
Zy
2026-05-13 15:28:25 +08:00
parent 1b738c0f4d
commit a1750bc67b
114 changed files with 2346 additions and 613 deletions

View File

@@ -41,7 +41,7 @@
<div class="userinfo_item img">
<div class="title_item">身份证正面</div>
<div class="userinfo_itme_img">
<el-image class="w-full h-full" fit="fill" :src="splitImages(userInfo.cardImageFront)"></el-image>
<el-image class="w-full h-full" fit="fill" :src="userInfo.cardImageFront"></el-image>
</div>
</div>
</el-col>
@@ -52,7 +52,7 @@
</div>
<div class="userinfo_item">
<div class="title_item">住户性别</div>
<span> {{ userInfo.gender === 1 ? '男' : '女' }} </span>
<span> {{ userInfo.gender === '0' ? '男' : '女' }} </span>
</div>
<div class="userinfo_item">
<div class="title_item">证件号码</div>
@@ -117,7 +117,7 @@
</el-step>
<el-step :description="reviewInfo.propertyTime">
<template #title>
<DictTag :options="com_review" :value="reviewInfo.propertyStatus || '0'"></DictTag>
<span>{{ getReviewStatusLabel(reviewInfo.propertyStatus || '0') }}</span>
</template>
</el-step>
<el-step :description="reviewInfo.certificationTime">
@@ -155,6 +155,7 @@ const userInfo = ref<ResidentVO>({
code: null,
villageId: '',
buildingId: '',
userId: null,
'id': null,
'name': '',
'type': null,
@@ -198,7 +199,11 @@ if (route.query.id) {
});
});
}
// 在 script setup 中添加
const getReviewStatusLabel = (status: string) => {
const item = com_review.value?.find((i: any) => i.value === status);
return item ? item.label : '未知状态';
};
function handleActivestaus(rews) {
// 提交状态 0未提交 1已提交
if (rews.submitStatus === '0') {