@ -14,7 +14,7 @@
< el -card shadow = "hover" class = "cardrelative aftercolor4" >
< el -card shadow = "hover" class = "cardrelative aftercolor4" >
< div class = "contentc" >
< div class = "contentc" >
< div class = "contenttitle" > 楼栋数 < / div >
< div class = "contenttitle" > 楼栋数 < / div >
< div class = "contentnum" > { { room Num } } < / div >
< div class = "contentnum" > { { building Num } } < / div >
< img src = "../assets/img/ld.png" alt = "" class = "pzimg" / >
< img src = "../assets/img/ld.png" alt = "" class = "pzimg" / >
< / div >
< / div >
< / e l - c a r d >
< / e l - c a r d >
@ -32,7 +32,7 @@
< el -card shadow = "hover" class = "cardrelative aftercolor2" >
< el -card shadow = "hover" class = "cardrelative aftercolor2" >
< div class = "contentc" >
< div class = "contentc" >
< div class = "contenttitle" > 已入住 < / div >
< div class = "contenttitle" > 已入住 < / div >
< div class = "contentnum" > 0 < / div >
< div class = "contentnum" > { { checkin } } < / div >
< img src = "../assets/img/ld.png" alt = "" class = "pzimg right20" / >
< img src = "../assets/img/ld.png" alt = "" class = "pzimg right20" / >
< / div >
< / div >
< / e l - c a r d >
< / e l - c a r d >
@ -41,7 +41,7 @@
< el -card shadow = "hover" class = "cardrelative aftercolor2" >
< el -card shadow = "hover" class = "cardrelative aftercolor2" >
< div class = "contentc" >
< div class = "contentc" >
< div class = "contenttitle" > 空房间 < / div >
< div class = "contenttitle" > 空房间 < / div >
< div class = "contentnum" > 0 < / div >
< div class = "contentnum" > { { emptyroomNum } } < / div >
< img src = "../assets/img/f.png" alt = "" class = "pzimg right20" / >
< img src = "../assets/img/f.png" alt = "" class = "pzimg right20" / >
< / div >
< / div >
< / e l - c a r d >
< / e l - c a r d >
@ -68,7 +68,7 @@
< el -card shadow = "hover" class = "cardrelative aftercolor5" >
< el -card shadow = "hover" class = "cardrelative aftercolor5" >
< div class = "contentc" >
< div class = "contentc" >
< div class = "contenttitle" > 未绑定门锁 < / div >
< div class = "contenttitle" > 未绑定门锁 < / div >
< div class = "contentnum" > 0 < / div >
< div class = "contentnum" > { { unboundNum } } < / div >
< img src = "../assets/img/ms.png" alt = "" class = "pzimg" / >
< img src = "../assets/img/ms.png" alt = "" class = "pzimg" / >
< / div >
< / div >
< / e l - c a r d >
< / e l - c a r d >
@ -175,13 +175,13 @@
title = "切换表格展示" > < / i >
title = "切换表格展示" > < / i >
< / div >
< / div >
< div class = "adddbtn" >
< div class = "adddbtn" >
< el -button type = "primary" @click ="handleSearch1" size = "mini" class = "mb-2" > 添加 < / e l - b u t t o n >
< el -button type = "primary" @click ="selectmoredel" size = "mini" class = "mb-2" > 批量删除 < / e l - b u t t o n >
< el -button type = "primary" @click ="handleSearch1" size = "mini" class = "mb-2" style = "background: #FA8E00; border: none;" > 添加 < / e l - b u t t o n >
< el -button type = "primary" @click ="selectmoredel" size = "mini" class = "mb-2" style = "background: #FA8E00; border: none;" > 批量删除 < / e l - b u t t o n >
<!-- < el -button type = "primary" @click ="dbing" size = "mini"
<!-- < el -button type = "primary" @click ="dbing" size = "mini"
> 管理绑定 < / e l - b u t t o n
> 管理绑定 < / e l - b u t t o n
> -- >
> -- >
< el -button type = "primary" @click ="exportfun" size = "mini" class = "mb-2" > 导出房源 < / e l - b u t t o n >
< el -button type = "primary" @click ="backFun" size = "mini" class = "mb-2" > 返回 < / e l - b u t t o n >
< el -button type = "primary" @click ="exportfun" size = "mini" class = "mb-2" style = "background: #FA8E00; border: none;" > 导出房源 < / e l - b u t t o n >
< el -button type = "primary" @click ="backFun" size = "mini" class = "mb-2" style = "background: #FA8E00; border: none;" > 返回 < / e l - b u t t o n >
< / div >
< / div >
< el -row :gutter ="20" >
< el -row :gutter ="20" >
< el -card shadow = "nerver" class = "m20" >
< el -card shadow = "nerver" class = "m20" >
@ -218,13 +218,13 @@
class = "inputBox mb-2" >
class = "inputBox mb-2" >
< / e l - i n p u t >
< / e l - i n p u t >
< el -select v -model = " searchRoomStatus " placeholder = "请选择房间状态" size = "small" class = "mb-2" clearable >
< el -select v -model = " searchRoomStatus " placeholder = "请选择房间状态" size = "small" class = "mb-2" clearable >
< el -option key = "1" label = "空房间" value = "1 " >
< el -option key = "1" label = "空房间" value = "0 " >
< / e l - o p t i o n >
< / e l - o p t i o n >
< el -option key = "2" label = "已入住" value = "2 " >
< el -option key = "2" label = "已入住" value = "1 " >
< / e l - o p t i o n >
< / e l - o p t i o n >
< el -option key = "3" label = "到期房" value = "3 " >
< el -option key = "3" label = "到期房" value = "2 " >
< / e l - o p t i o n >
< / e l - o p t i o n >
< el -option key = "4" label = "维修房" value = "4 " >
< el -option key = "4" label = "维修房" value = "3 " >
< / e l - o p t i o n >
< / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - s e l e c t >
< el -select v -model = " roomLayout " placeholder = "请选择房间户型" size = "small" class = "mb-2" clearable >
< el -select v -model = " roomLayout " placeholder = "请选择房间户型" size = "small" class = "mb-2" clearable >
@ -248,8 +248,8 @@
< el -option key = "2" label = "已绑定" value = "1" >
< el -option key = "2" label = "已绑定" value = "1" >
< / e l - o p t i o n >
< / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - s e l e c t >
< el -button type = "primary" @click ="getlist3" size = "small" class = "mb-2" > 查询 < / e l - b u t t o n >
< el -button type = "primary" @click ="resetInput" size = "small" class = "mb-2" > 重置 < / e l - b u t t o n >
< el -button type = "primary" @click ="getlist3" size = "small" class = "mb-2" style = "background: #FA8E00; border: none;" > 查询 < / e l - b u t t o n >
< el -button type = "primary" @click ="resetInput" size = "small" class = "mb-2" style = "background: #FA8E00; border: none;" > 重置 < / e l - b u t t o n >
< / div >
< / div >
< el -table :data ="userlist" border stripe class = "table" ref = "multipleTable"
< el -table :data ="userlist" border stripe class = "table" ref = "multipleTable"
@ -657,6 +657,10 @@ export default {
name : "room" ,
name : "room" ,
data ( ) {
data ( ) {
return {
return {
emptyroomNum : 0 ,
unboundNum : 0 ,
checkin : 0 ,
buildingNum : 0 ,
colNum_4 : 4 ,
colNum_4 : 4 ,
colNum_6 : 6 ,
colNum_6 : 6 ,
colNum_18 : 18 ,
colNum_18 : 18 ,
@ -892,7 +896,7 @@ export default {
this . optionsData = this . $MANUFACTURER . mapData
this . optionsData = this . $MANUFACTURER . mapData
this . getlist ( ) ;
this . getlist ( ) ;
this . getvacancy ( ) ;
this . getvacancy ( ) ;
this . getcount ( ) ;
this . getcount ( '' ) ;
this . queryfirst1 ( ) ;
this . queryfirst1 ( ) ;
this . getAllCertificates ( )
this . getAllCertificates ( )
this . getdevice ( )
this . getdevice ( )
@ -1234,7 +1238,7 @@ export default {
this . isRoom = true
this . isRoom = true
this . onetypeget ( data . id , function ( data ) {
this . onetypeget ( data . id , function ( data ) {
that . addrow = data ;
that . addrow = data ;
console . log ( that . addrow )
console . log ( that . addrow )
} ) ;
} ) ;
this . editVisible1 = true ;
this . editVisible1 = true ;
} ,
} ,
@ -1496,7 +1500,9 @@ export default {
pageNum : 1 ,
pageNum : 1 ,
pageSize : 10
pageSize : 10
} ;
} ;
await this . getcount ( data )
httpGet ( data , this . $api . getSiteList ) . then ( res => {
httpGet ( data , this . $api . getSiteList ) . then ( res => {
console . log ( res )
this . projectNum = res . data . list . total
this . projectNum = res . data . list . total
var schoollist = res . data . list . list ;
var schoollist = res . data . list . list ;
this . schoollist = schoollist
this . schoollist = schoollist
@ -1528,7 +1534,7 @@ export default {
} ) ;
} ) ;
} ,
} ,
/ / 获 取 房 间 总 数
/ / 获 取 房 间 总 数
getcount ( ) {
getcount ( data ) {
/ / v a r d a t a = {
/ / v a r d a t a = {
/ / t y p e : 5 ,
/ / t y p e : 5 ,
/ / } ;
/ / } ;
@ -1537,9 +1543,26 @@ export default {
/ / t h i s . p a g e T o t a l = r e s . d a t a [ 0 ] . d e v i c e
/ / t h i s . p a g e T o t a l = r e s . d a t a [ 0 ] . d e v i c e
/ / t h i s . o f f l i n e = r e s . d a t a [ 0 ] . o f f l i n e
/ / t h i s . o f f l i n e = r e s . d a t a [ 0 ] . o f f l i n e
/ / } ) ;
/ / } ) ;
httpGet ( '' , this . $api . getSiteList ) . then ( ( res ) => {
httpGet ( data , this . $api . getSiteList ) . then ( ( res ) => {
console . log ( res ) ;
var roomNum = 0 ;
var roomNum = 0 ;
var buildingNum = 0
var checkin = 0
var unboundNum = 0
res . data . list . list . map ( ( li , index ) => {
res . data . list . list . map ( ( li , index ) => {
/ / 楼 栋 数
if ( li . pid % 10 == 1 && li . type == 1 ) {
buildingNum ++
}
/ / 已 入 住
if ( li . isRoom == 1 && li . count != 0 ) {
checkin ++
}
/ / 未 绑 定 门 锁
if ( ! li . imei && li . isRoom == 1 ) {
unboundNum ++
}
/ / 房 间 总 数
let countNum = res . data . tenants . filter ( item => item . id == li . id ) [ 0 ]
let countNum = res . data . tenants . filter ( item => item . id == li . id ) [ 0 ]
if ( countNum ) {
if ( countNum ) {
li . count = countNum . count
li . count = countNum . count
@ -1555,6 +1578,10 @@ export default {
}
}
} ) ;
} ) ;
this . roomNum = roomNum ;
this . roomNum = roomNum ;
this . buildingNum = buildingNum
this . checkin = checkin
this . unboundNum = unboundNum
this . emptyroomNum = roomNum - unboundNum - checkin
} )
} )
} ,
} ,
/ / 获 取 设 备
/ / 获 取 设 备
@ -2216,15 +2243,16 @@ export default {
/ / 获 取 列 表
/ / 获 取 列 表
getlistChildren ( row ) {
getlistChildren ( row ) {
var q = {
var q = {
name : this . input6 ,
deviceNum : this . searchDeviceNum ,
name : this . input6 , / / 房 间 名 称
deviceNum : this . searchDeviceNum , / / 设 备 号
ancestor : row . id ,
ancestor : row . id ,
operationStatus : this . searchSelectStatus ,
operationStatus : this . searchSelectStatus , / / 绑 定 情 况
isRoom : 1 ,
isRoom : 1 ,
layout : this . roomLayout ,
expand : {
/ / t y p e : t h i s . s e a r c h R o o m S t a t u s
} ,
layout : this . roomLayout , / / 房 间 户 型
roomStatus : this . searchRoomStatus ,
/ / e x p a n d : {
/ / t y p e : t h i s . s e a r c h R o o m S t a t u s
/ / } ,
} ;
} ;
var data = {
var data = {
q : JSON . stringify ( q ) ,
q : JSON . stringify ( q ) ,
@ -3229,4 +3257,5 @@ export default {
. h700 {
. h700 {
height : 300 px ;
height : 300 px ;
}
}
} < / style >
}
< / style >