12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- /**
- * 文档项目列表
- */
- Ext.define('saas.view.help.DocProjectList', {
- extend: 'Ext.container.Container',
- xtype: 'help-docproject-list',
- viewModel: {
- stores: {
- list: {
- model: 'saas.model.help.DocProject',
- autoLoad: true
- }
- }
- },
- controller: 'help-docproject-list',
- layout: 'border',
- items: [{
- xtype: 'toolbar',
- margin: '0 0 12 0',
- padding: '10 4',
- region: 'north',
- items: [{
- xtype: 'tbfill'
- }, {
- text: '新增',
- handler: 'handleAdd'
- }]
- }, {
- region: 'center',
- layout: 'fit',
- items: [{
- xtype: 'grid',
- padding: '8 12',
- border: true,
- bind: {
- store: '{list}'
- },
- listeners: {
- itemdblclick: 'onItemDblClick'
- },
- columns: [{
- text: '操作',
- width: 80,
- align: 'center',
- focusCls: null,
- resizable: false,
- draggable: false,
- xtype: 'actioncolumn',
- items: [{
- iconCls: 'x-fa fa-pencil',
- tooltip: '修改',
- handler: 'handleEdit'
- }, {
- iconCls: 'x-fa fa-trash-o fa-fw',
- tooltip: '删除',
- handler: 'handleDelete'
- }]
- }, {
- text: '编码',
- focusCls: null,
- resizable: false,
- draggable: false,
- width: 120,
- dataIndex: 'code'
- }, {
- text: '名称',
- focusCls: null,
- resizable: false,
- draggable: false,
- width: 300,
- dataIndex: 'name'
- }, {
- flex: 1
- }]
- }]
- }]
- });
|