87,907
社区成员
发帖
与我相关
我的任务
分享
Ext.define("AM.store.OrgTreeStore",{
extend:"Ext.data.TreeStore",
model:"AM.model.Org",
nodeParam:'id',
proxy:{
type: 'ajax',
url: '/org/getOrgByParentId',
headers:{accept:"application/json"},
reader: {
type: 'json',
root: "dataMap.orgs.items",
totalProperty: "dataMap.orgs.items.length"
}
},
root:{
id:1,
leaf:false,
code:"ORG0000",
text:'组织机构',
children:[]
},
autoLoad: true
});
{"succ":true,"code":"M10000","msg":"成功","dataMap":{"orgs":{"items":[{"id":2,"code":"ORG0001","text":"二级机构","description":null,"hierarchy":1,"leaf":false,"sort":null,"parentId":1}]}}}