修正ts类型
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<el-card style="flex: 1" shadow="never">
|
||||
<div class="residentBody h-full">
|
||||
<div class="treebox h-full">
|
||||
<div class="treeTitlebox">{{ currentVilageInfo.villageName ?? '12' }}</div>
|
||||
<div class="treeTitlebox">{{ currentVilageInfo.villageName ?? '--' }}</div>
|
||||
<div class="treeboxbody">
|
||||
<!-- 树状+ -->
|
||||
<el-tree :highlight-current="true" style="max-width: 600px" :data="treedata" :props="defaultProps" @node-click="handleNodeClick" />
|
||||
@@ -152,7 +152,6 @@ const total = ref(0);
|
||||
const queryFormRef = ref<ElFormInstance>();
|
||||
|
||||
const initFormData: ResidentForm = {
|
||||
id: undefined,
|
||||
code: undefined,
|
||||
name: undefined,
|
||||
type: undefined,
|
||||
@@ -372,6 +371,7 @@ onMounted(() => {
|
||||
display: flex;
|
||||
.treebox {
|
||||
width: 250px;
|
||||
min-width: 250px;
|
||||
margin-right: 10px;
|
||||
.treeTitlebox {
|
||||
height: 60px;
|
||||
|
||||
Reference in New Issue
Block a user