diff --git a/src/api/community/house/index.ts b/src/api/community/house/index.ts
index 1ad9322..646e821 100644
--- a/src/api/community/house/index.ts
+++ b/src/api/community/house/index.ts
@@ -14,6 +14,13 @@ export interface House {
ownerPhone: string; // 业主手机号
}
+/** 房屋树节点 */
+export interface HouseTreeNode {
+ value: string
+ label: string
+ children?: HouseTreeNode[]
+}
+
// 房屋信息主 API
export const HouseApi = {
// 查询房屋信息主分页
@@ -54,5 +61,10 @@ export const HouseApi = {
// 下载房屋导入模板
importHouseTemplate: async () => {
return await request.download({ url: `/community/house/get-import-template` })
+ },
+
+ // 获取小区房屋级联树(楼号-单元-房号)
+ getHouseTree: async (communityId: number) => {
+ return await request.get({ url: `/community/house/tree`, params: { communityId } })
}
}
diff --git a/src/views/community/memberhouse/MemberHouseForm.vue b/src/views/community/memberhouse/MemberHouseForm.vue
index d5f7e2f..f8c479b 100644
--- a/src/views/community/memberhouse/MemberHouseForm.vue
+++ b/src/views/community/memberhouse/MemberHouseForm.vue
@@ -1,5 +1,5 @@
-
+
\ No newline at end of file
+
diff --git a/src/views/community/memberhouse/index.vue b/src/views/community/memberhouse/index.vue
index 6077dec..53065e0 100644
--- a/src/views/community/memberhouse/index.vue
+++ b/src/views/community/memberhouse/index.vue
@@ -6,7 +6,7 @@
:model="queryParams"
ref="queryFormRef"
:inline="true"
- label-width="80px"
+ label-width="68px"
>
@@ -23,7 +23,7 @@
placeholder="请输入姓名或联系方式"
clearable
@keyup.enter="handleQuery"
- class="!w-240px"
+ class="!w-180px"
/>
@@ -31,7 +31,7 @@
v-model="queryParams.isOwner"
placeholder="请选择"
clearable
- class="!w-240px"
+ class="!w-150px"
>
- {{ scope.row.buildingNo }}{{ scope.row.unitNo }}{{ scope.row.roomNo }}
+ {{ scope.row.buildingNo }}号楼{{ scope.row.unitNo }}单元{{ scope.row.roomNo }}
@@ -167,10 +167,19 @@
link
type="primary"
@click="handleAudit(scope.row)"
- v-hasPermi="['community:member-house:audit']"
+ v-hasPermi="['community:member-house:update']"
>
审核
+
+ 解除绑定
+
删除
-
- 解除绑定
-
-
- 查看原因
-
@@ -320,11 +312,6 @@ const handleUnbind = async (row: MemberHouse) => {
} catch {}
}
-/** 查看驳回原因 */
-const handleViewRejectReason = (row: MemberHouse) => {
- message.alert(row.rejectReason || '暂无驳回原因', '驳回原因')
-}
-
/** 导入 */
const handleImport = () => {
message.info('导入功能开发中')