SysEnabled.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Ext.define('erp.view.common.sysinit.SysEnabled', {
  2. extend : 'Ext.Viewport',
  3. layout : 'border',
  4. hideBorders : true,
  5. initComponent : function() {
  6. var me = this;
  7. Ext.apply(me, {
  8. items : [{
  9. //xtype : 'container',
  10. region : 'center',
  11. layout : 'border',
  12. items : [{
  13. xtype : 'form',
  14. region : 'center',
  15. autoScroll: true,
  16. id: 'configPanel',
  17. title : '参数配置',
  18. layout: 'column',
  19. bodyStyle : 'background:#f9f9f9;padding:5px 5px 0',
  20. defaults: {
  21. columnWidth: .5,
  22. margin: '4 8 4 8'
  23. },
  24. buttonAlign: 'center',
  25. buttons: [{
  26. text: '保存',
  27. id: 'btn-save',
  28. height: 30
  29. },{
  30. text: '关闭',
  31. id: 'btn-close',
  32. height: 30
  33. }],
  34. items: [{
  35. xtype:'displayfield',
  36. text:'没有参数配置'
  37. }]
  38. },{
  39. region:'south',
  40. title: '基础刷新',
  41. xtype:'sysrefreshgrid',
  42. id: 'tabpanel',
  43. region : 'south',
  44. height: window.innerHeight*0.62,
  45. bodyStyle : 'background:#f9f9f9',
  46. border: false,
  47. collapsible: true,
  48. collapseDirection: 'bottom',
  49. collapsed: window.whoami ? false : true
  50. }]},{region: "east",
  51. id: "east-region",
  52. title: "模块描述",
  53. stateful: true,
  54. stateId: "mainnav.east",
  55. split: true,collapsible: true,
  56. layout: {type: "vbox",align: "stretch"},
  57. width:'30%',
  58. tools: [{type: "gear",regionTool: true}],
  59. items: [{ bodyStyle: 'padding-bottom:15px;background:#eee;',
  60. id: 'infos-panel',
  61. autoScroll: true,
  62. height:300,
  63. html: '<p class="details-info">When you select a layout from the tree, additional details will display here.</p>'},
  64. {xtype: "splitter",collapsible: true,collapseTarget: "prev"},
  65. {
  66. xtype: "sysdatagrid",title:'数据明细',flex: 1
  67. }]
  68. }]
  69. });
  70. me.callParent(arguments);
  71. }
  72. });