| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- Ext.define('saas.view.sys.power.TreeGrid', {
- extend: 'Ext.tree.Panel',
- xtype: 'sys-power-treegrid',
- multiSelect: true,
- singleExpand: true,
- store: {
- type: 'tree',
- folderSort: true,
- },
- columns: [{
- xtype: 'treecolumn', //this is so we know which column will show the tree
- header: '模块',
- dataIndex: 'task',
- flex: 1,
- sortable: true
- }, {
- header: '保存',
- dataIndex: 'duration',
- flex: 1,
- sortable: true,
- align: 'center',
- xtype: 'checkcolumn',
- formatter: 'this.formatHours'
- },{
- header: '提交',
- dataIndex: 'user',
- flex: 1,
- xtype: 'checkcolumn',
- sortable: true
- }, {
- xtype: 'checkcolumn',
- header: '其他',
- dataIndex: 'done',
- width: 155,
- stopSelection: false,
- menuDisabled: true
- }]
- });
|