mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
优化代码
This commit is contained in:
parent
448c1fae3a
commit
8365120d79
BIN
public/.DS_Store
vendored
BIN
public/.DS_Store
vendored
Binary file not shown.
BIN
public/components/property/.DS_Store
vendored
Normal file
BIN
public/components/property/.DS_Store
vendored
Normal file
Binary file not shown.
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<div class="modal right fade" id="roomTreeModal" tabindex="-1" role="dialog" aria-labelledby="roomTreeLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-dialog" style="width: 280px;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">请选择房屋</h4>
|
||||
|
||||
@ -116,16 +116,18 @@
|
||||
return ;
|
||||
}
|
||||
listRoomData.rooms.forEach(_room =>{
|
||||
let _text = _room.roomNum;
|
||||
if(_room.ownerName){
|
||||
_text +=('('+_room.ownerName+")")
|
||||
}
|
||||
let _data = {
|
||||
id: 'r_' + _room.roomId,
|
||||
roomId: _room.roomId,
|
||||
roomName:_room.floorNum+"-"+_room.unitNum+"-"+_room.roomNum,
|
||||
text: _room.roomNum,
|
||||
icon: "/img/unit.png",
|
||||
text: _text,
|
||||
icon: "/img/room.png",
|
||||
};
|
||||
|
||||
$('#jstree_floorUnitRoom').jstree('create_node', $('#u_'+_unitId), _data, "last", false, false);
|
||||
|
||||
})
|
||||
$('#jstree_floorUnitRoom').jstree('open_node', $('#u_'+_unitId));
|
||||
},
|
||||
|
||||
BIN
public/img/.DS_Store
vendored
BIN
public/img/.DS_Store
vendored
Binary file not shown.
BIN
public/img/room.png
Normal file
BIN
public/img/room.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 515 B |
Loading…
Reference in New Issue
Block a user