From 10f2f60261fe9a4311e3e9ec7479e15c4f690fd5 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 19 Dec 2023 17:18:28 +0800
Subject: [PATCH] 合并

---
 subPackage/house/family/index.vue |   36 +++++++++++++++++++++++-------------
 1 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/subPackage/house/family/index.vue b/subPackage/house/family/index.vue
index a4348fa..09b18c2 100644
--- a/subPackage/house/family/index.vue
+++ b/subPackage/house/family/index.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="container">
 		<view class="flex f-d-c main">
-			<view class="cur-header"  v-if="!addressName">
+			<view class="cur-header" v-if="!addressName">
 				<u-icon name="/static/icon/map.png" width="15" height="18"></u-icon>
 				<view>{{ curSelectSite.name }}/{{housingName}}{{buildingName}}</view>
 			</view>
@@ -15,7 +15,12 @@
 				<text>{{addressName}}</text>
 			</view>
 			</block>
-			<view class="h0 flex-1 build-list-box content">
+			
+			<view class="mt-20 around-p-20 flex a-i-c j-c-c">
+				<u-search placeholder="请输入人员名" :showAction="false" @search="getBuildingList" @clear="getBuildingList" v-model="searchKey" :clearabled="true"></u-search>
+			</view>
+			
+			<view class="mt-20 h0 flex-1 build-list-box content">
 				<u-collapse :value="buildingList.length == 1?['0']:''">
 					<u-collapse-item v-if="isShowBuild" style="border: none;" :name="index" :title="item.unitName"
 						:icon="'/static/icon/group.png'" v-for="(item, index) in buildingList" :key="index">
@@ -31,7 +36,8 @@
 							<view class="room-content">
 								<view class="flex flex-wrap j-c-s-b" style="width: 100%;">
 									<view class="room-box flex f-d-c" v-for="(scItem, scIndex) in cItem.children"
-										:key="scItem.id" @click="pushPage"  :data-code="scItem.addressCode"  :data-unit="item.unitName">
+										:key="scItem.id" @click="pushPage" :data-code="scItem.addressCode"
+										:data-unit="item.unitName">
 										<view class="flex a-i-c j-c-s-b">
 											<!-- <view class="l">
 												<u-icon name="/static/icon/person.png" size="16"></u-icon>
@@ -144,6 +150,7 @@
 				// 社区编号
 				neiCode: "",
 				buildingList: [],
+				searchKey: '',
 				shopList: [],
 				curSelectSite: {},
 				addressName:""    ,//详细地址
@@ -197,11 +204,11 @@
 				// 	message: '正在加载',
 				// 	duration: 9999999
 				// })
-				
+
 				uni.showLoading({
-					title:"正在加载"
+					title: "正在加载"
 				})
-				
+
 				this.isShowBuild = false
 				this.isShowShop = false
 				const param = {
@@ -210,7 +217,8 @@
 					roleName: uni.getStorageSync('activeRole').roleName,
 					name: this.addressType == 1 ? "" : this.neiCode,
 					buildingName: this.addressType == 4 ? this.buildingName : "",
-					addressType: this.addressType
+					addressType: this.addressType,
+					searchKey: this.searchKey
 				}
 				const res = await getHouseList(param)
 				if (res.code == 200) {
@@ -243,7 +251,10 @@
 				}
 			},
 			pushPage(e) {
-				let { code,unit } = e.currentTarget.dataset;
+				let {
+					code,
+					unit
+				} = e.currentTarget.dataset;
 				let url = `/subPackage/house/roomDetails/index?id=${code}&unit=${unit}`
 				this.$u.func.globalNavigator(url, "navTo")
 			},
@@ -274,7 +285,6 @@
 			overflow-y: auto;
 
 			.content {
-				margin-top: 20rpx;
 				background-color: #fff;
 
 				.floor-info-box {
@@ -415,9 +425,9 @@
 	/deep/ .u-cell__body {
 		background-color: rgb(236, 244, 255);
 	}
-	
-	.house-address{
-		padding:20rpx;
-		
+
+	.house-address {
+		padding: 20rpx;
+
 	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3