RoleAccessModel.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Ext.define('school.view.setting.access.RoleAccessModel', {
  2. extend: 'Ext.app.ViewModel',
  3. alias: 'viewmodel.setting-access-roleaccess',
  4. stores: {
  5. roleTree: {
  6. type: 'tree',
  7. fields: [{
  8. name: 'text'
  9. }],
  10. root: {
  11. text: '所有角色',
  12. expanded: true
  13. },
  14. data: [{
  15. id: 'role1',
  16. text: '角色1',
  17. leaf: true
  18. }, {
  19. id: 'role2',
  20. text: '角色2',
  21. leaf: true
  22. }, {
  23. id: 'role3',
  24. text: '角色3',
  25. leaf: true
  26. }, {
  27. id: 'role4',
  28. text: '角色4',
  29. leaf: true
  30. }, {
  31. id: 'role5',
  32. text: '角色5',
  33. leaf: true
  34. }, {
  35. id: 'role6',
  36. text: '角色6',
  37. leaf: true
  38. }, {
  39. id: 'role7',
  40. text: '角色7',
  41. leaf: true
  42. }]
  43. }
  44. }
  45. });