| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- Ext.define('school.view.setting.access.RoleAccessModel', {
- extend: 'Ext.app.ViewModel',
- alias: 'viewmodel.setting-access-roleaccess',
- stores: {
- roleTree: {
- type: 'tree',
- fields: [{
- name: 'text'
- }],
- root: {
- text: '所有角色',
- expanded: true
- },
- data: [{
- id: 'role1',
- text: '角色1',
- leaf: true
- }, {
- id: 'role2',
- text: '角色2',
- leaf: true
- }, {
- id: 'role3',
- text: '角色3',
- leaf: true
- }, {
- id: 'role4',
- text: '角色4',
- leaf: true
- }, {
- id: 'role5',
- text: '角色5',
- leaf: true
- }, {
- id: 'role6',
- text: '角色6',
- leaf: true
- }, {
- id: 'role7',
- text: '角色7',
- leaf: true
- }]
- }
- }
- });
|