7/10 缴费分析,人员分析 数据对接

This commit is contained in:
Zy
2026-07-10 17:44:28 +08:00
parent 3a808750ac
commit 298f93380c
46 changed files with 1065 additions and 673 deletions

View File

@@ -125,6 +125,7 @@ const route = useRoute();
const formRef = ref();
const form = ref<ResidentForm>({
houseId: null,
unitNoId: null,
name: '',
gender: '0',
idCard: '',
@@ -178,8 +179,7 @@ function gettreedata() {
form.value = {
...res.data
};
const arr = getHousePathById(treedata.value, form.value.houseId);
userHousepath.value = arr;
userHousepath.value = [form.value.buildingId, form.value.unitNoId, form.value.houseId];
});
}
}

View File

@@ -67,7 +67,7 @@
</el-table-column>
<el-table-column label="证件号" min-width="120" align="center" prop="idCard" />
<el-table-column label="手机号码" min-width="120" align="center" prop="phone" />
<el-table-column label="房间" min-width="120" align="center" prop="houseAddress" />
<el-table-column label="房间" min-width="120" align="center" prop="houseName" />
<el-table-column label="操作" align="center" min-width="120" fixed="right" class-name="small-padding fixed-width">
<template #default="scope">
<el-button v-if="scope.row.status !== '1'" link type="primary" @click="handleMain(scope.row)" v-has-permi="['resident:resident:edit']"
@@ -98,7 +98,6 @@ import DictTag from '@/components/DictTag/index.vue';
import { listResident, delResident } from '@/api/system/resident';
import { ResidentVO, ResidentQuery, ResidentForm } from '@/api/system/resident/type';
import { getHousePathById } from '@/utils/house';
import { useHouseStore } from '@/store/modules/house';
import { checkPermi } from '@/utils/permission';
@@ -229,10 +228,6 @@ const getList = async () => {
listResident(queryParams.value)
.then((res) => {
residentList.value = res.rows;
residentList.value.forEach((item) => {
const arr = getHousePathById(treated.value, item.houseId, 'label');
item.houseAddress = arr.join(' ');
});
total.value = res.total;
})
.finally(() => {
@@ -324,6 +319,9 @@ onMounted(() => {
width: 250px;
min-width: 250px;
margin-right: 10px;
display: flex;
flex-direction: column;
.treeTitlebox {
height: 60px;
line-height: 60px;
@@ -333,7 +331,11 @@ onMounted(() => {
background-color: rgba(233, 242, 255, 0.5);
color: rgba(16, 16, 16, 1);
}
.treeboxbody {
flex: 1;
overflow: hidden;
overflow-y: auto;
margin-top: 10px;
&:deep(.el-tree-node__content) {