var treeData={
"电气":[{
attributes:"department",
iconCls:"icon-sum",
id:"0,100",
layer:"department",
pid:"0",
text:"区政府顶级节点",
text_db:"区政府顶级节点(0,100)",
children:[{
attributes:"customer",
iconCls:"icon-meter",
id:"0,200",
layer:"customer",
pid:"0",
text:"区政府二级节点",
text_db:"区政府二级节点(0,200)",
children:[{
attributes:"customer",
iconCls:"icon-meter",
id:"0,300",
layer:"customer",
pid:"0",
text:"区政府底层节点",
text_db:"区政府底层节点(0,300)"
}]
},{
attributes:"customer",
iconCls:"icon-meter",
id:"0,400",
layer:"customer",
pid:"0",
text:"区政府二1级节点",
text_db:"区政府二1级节点(0,400)",
children:[{
attributes:"customer",
iconCls:"icon-meter",
id:"0,500",
layer:"customer",
pid:"0",
text:"区政府底层1节点",
text_db:"区政府底层1节点(0,500)"
}]
}]
}],
"楼层":[{
attributes:"department",
iconCls:"icon-sum",
id:"0,100",
layer:"department",
pid:"0",
text:"区政府顶级节点",
text_db:"区政府顶级节点(0,100)",
children:[{
attributes:"customer",
iconCls:"icon-meter",
id:"0,200",
layer:"customer",
pid:"0",
text:"区政府二级节点",
text_db:"区政府二级节点(0,200)",
children:[{
attributes:"customer",
iconCls:"icon-meter",
id:"0,300",
layer:"customer",
pid:"0",
text:"区政府底层节点",
text_db:"区政府底层节点(0,300)"
}]
},{
attributes:"customer",
iconCls:"icon-meter",
id:"0,400",
layer:"customer",
pid:"0",
text:"区政府二1级节点",
text_db:"区政府二1级节点(0,400)",
children:[{
attributes:"customer",
iconCls:"icon-meter",
id:"0,500",
layer:"customer",
pid:"0",
text:"区政府底层1节点",
text_db:"区政府底层1节点(0,500)"
}]
}]
}],
"mptotal":10
};
树的数据格式
猜你喜欢
转载自blog.csdn.net/qq_36784628/article/details/81673087
今日推荐
周排行