业务流程树children

var treeData=parent.top.getComboxData();

       treeData=addIconPath(treeData);

  function addIconPath(data){

      for(vari=0,len=data.length;i<len;i++){

             if(data[i].icon){

                    data[i].icon="../"+data[i].icon;

                    if(data[i].children&&data[i].children.length>0){

                           addIconPath(data[i].children);

                    }

             }

      }

      returndata;

  }

部门树children
var groupData=parent.top.getGroupData();




实例

  var flowTree=new Ext.tree.TreePanel({
  animate:true,
      enableDD:true,
      enableDrag:true,
      rootVisable:false,
      autoHeight:true,
      lines:true,
      listeners : {click : function(node) {
      }
      },
      root:{  
         nodeType: 'async',  
         text: '业务类型',  
         id: 'source',  
         expanded: true,
         children: treeData
        }
      })

你可能感兴趣的:(业务流程树children)