From 577667a3806afb9102dde551ae8ca65ccf5138cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com>
Date: Fri, 8 Nov 2024 11:03:15 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E6=88=B7=E6=B8=B2=E6=9F=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/NavigationGeneral/index.vue | 8 +-
pages/building/building.vue | 139 +++++++++++++++++++------
pages/login.vue | 2 +-
3 files changed, 114 insertions(+), 35 deletions(-)
diff --git a/components/NavigationGeneral/index.vue b/components/NavigationGeneral/index.vue
index c1431af..29cfbdf 100644
--- a/components/NavigationGeneral/index.vue
+++ b/components/NavigationGeneral/index.vue
@@ -3,7 +3,13 @@
+ }">
+
+
+
+
+
+
diff --git a/pages/building/building.vue b/pages/building/building.vue
index 561cbe8..be1221f 100644
--- a/pages/building/building.vue
+++ b/pages/building/building.vue
@@ -1,20 +1,42 @@
-
-
-
+
+
+ 共{{totalHouse}}户
+ 未排查{{weiPaimo}}户
+
+
+
+
+
- {{buildingInfo.floor - index}}
+
+ {{buildingInfo.floor - index}}层
+
+ 单元
-
-
-
-
+
+
+
+
+
+
+
+ {{unitItem}} 单元
+
+
+
+
+ 加载中
+
+
+
@@ -31,6 +53,7 @@
export default {
data() {
return {
+ show: true,
boxTop: 0,
queryParams: {
buildingId: undefined
@@ -39,24 +62,26 @@
buildingInfo: {},
newHouseList: [],
totalHouse: 0,
+ weiPaimo: 0
};
},
computed: {
- handlerWidth(){
-
- return{
- width: (this.buildingInfo.house+1) * 122 + 'rpx'
- }
+ handlerWidth() {
+
+ return {
+ width: (this.buildingInfo.house + 1) * 122 + 'rpx'
+ }
},
groupedRooms() {
if (this.newHouseList.length == 0) return
-
+ this.weiPaimo = 0
// 初始化每层楼的数组
let floors = Array.from({
length: this.buildingInfo.floor
}, () => [])
// 遍历房间数据
this.newHouseList.forEach((room) => {
+ if (room.daycount > 0) this.weiPaimo = this.weiPaimo + 1
// 提取房间号前几位作为楼层号
let floor = (parseInt(room.name) / 100) | 0
// 将房间加入对应楼层数组
@@ -69,7 +94,7 @@
floors.forEach((floorRooms) => {
floorRooms.sort((a, b) => parseInt(a.name) - parseInt(b.name))
})
- uni.hideLoading()
+ this.show = false
return floors.reverse()
},
},
@@ -90,10 +115,7 @@
},
//获取所有的户
async getAllHouse() {
- uni.showLoading({
- title: '加载中',
- mask:true,
- })
+ this.show = true
let res = await getNumNew({
buildingId: this.queryParams.buildingId
})
@@ -104,50 +126,101 @@
}
\ No newline at end of file
diff --git a/pages/login.vue b/pages/login.vue
index 4b96ab0..e309292 100644
--- a/pages/login.vue
+++ b/pages/login.vue
@@ -53,7 +53,7 @@
globalConfig: getApp().globalData.config,
loginForm: {
username: "景瑞网格1",
- password: "Tc123@456",
+ password: "Tc123@456***",
code: "",
uuid: ''
}