mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
完成 结构化 图功能
This commit is contained in:
parent
502ff36e34
commit
3fcd85e93f
@ -42,6 +42,10 @@
|
|||||||
_initJsTreeFloorUnit: function() {
|
_initJsTreeFloorUnit: function() {
|
||||||
|
|
||||||
let _data = $that._doJsTreeData();
|
let _data = $that._doJsTreeData();
|
||||||
|
|
||||||
|
_data = _data.sort(function(a, b) {
|
||||||
|
return a.floorNum - b.floorNum
|
||||||
|
})
|
||||||
$.jstree.destroy()
|
$.jstree.destroy()
|
||||||
$("#jstree_floorUnit").jstree({
|
$("#jstree_floorUnit").jstree({
|
||||||
"checkbox": {
|
"checkbox": {
|
||||||
@ -100,6 +104,7 @@
|
|||||||
let _floorItem = {
|
let _floorItem = {
|
||||||
id: 'f_' + pItem.floorId,
|
id: 'f_' + pItem.floorId,
|
||||||
floorId: pItem.floorId,
|
floorId: pItem.floorId,
|
||||||
|
floorNum: pItem.floorNum,
|
||||||
icon: "/img/floor.png",
|
icon: "/img/floor.png",
|
||||||
text: pItem.floorNum + "栋",
|
text: pItem.floorNum + "栋",
|
||||||
state: {
|
state: {
|
||||||
@ -121,7 +126,7 @@
|
|||||||
if (_floorItem.floorId == _units[_pIndex].floorId) {
|
if (_floorItem.floorId == _units[_pIndex].floorId) {
|
||||||
let _includeMenu = false;
|
let _includeMenu = false;
|
||||||
for (let _mgIndex = 0; _mgIndex < _children.length; _mgIndex++) {
|
for (let _mgIndex = 0; _mgIndex < _children.length; _mgIndex++) {
|
||||||
if (_units[_pIndex].mId == _children[_mgIndex].mId) {
|
if (_units[_pIndex].unitId == _children[_mgIndex].unitId) {
|
||||||
_includeMenu = true;
|
_includeMenu = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,18 +4,15 @@
|
|||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<vc:create path="property/floorUnitTree" callBackListener="roomStructure"></vc:create>
|
<vc:create path="property/floorUnitTree" callBackListener="roomStructure"></vc:create>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10 margin-bottom">
|
||||||
<div class="row margin-top-xs bg-white">
|
<div class="row margin-top-xs bg-white">
|
||||||
|
|
||||||
<div class="col-md-1 text-center margin-sm padding-xs" title="双击查看详情" @dblclick="_toSimplifyAcceptance(room)" v-for="(room,index) in roomStructureInfo.rooms" :style="{'background-color': _getBgColor(room)}" style="color: #fff;border-radius: 5px;cursor:pointer">
|
<div class="col-md-1 text-center margin-sm padding-xs" title="双击查看详情" @dblclick="_toSimplifyAcceptance(room)" v-for="(room,index) in roomStructureInfo.rooms" :style="{'background-color': _getBgColor(room)}" style="color: #fff;border-radius: 5px;cursor:pointer">
|
||||||
|
|
||||||
<div>{{room.floorNum}}-{{room.unitNum}}-{{room.roomNum}}</div>
|
<div>{{room.floorNum}}-{{room.unitNum}}-{{room.roomNum}}</div>
|
||||||
<div>{{room.stateName}}</div>
|
<div>{{room.stateName}}</div>
|
||||||
<div>{{room.ownerName?room.ownerName:'无'}}</div>
|
<div>{{room.ownerName?room.ownerName:'无'}}</div>
|
||||||
<div>欠费:{{room.oweAmount}}元</div>
|
<div>欠费:{{room.oweAmount}}元</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user