TreeModel.js 454 B

12345678910111213141516
  1. /*
  2. model层
  3. treeModel
  4. */
  5. Ext.define('erp.model.TreeModel', {
  6. extend: 'Ext.data.Model',
  7. alias: 'widget.erpTreeModel',
  8. fields: [{name:'id',type:'int'},
  9. {name:'text',type:'string'},
  10. {name:'parentId',type:'int'},
  11. {name:'url',type:'string'},
  12. {name:'qtitle',type:'string'},
  13. {name:'leaf',type:'boolean'},
  14. {name:'allowDrag',type:'boolean'},
  15. 'children']
  16. });