Config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Ext.define('erp.view.ma.logic.Config', {
  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 : 'erpTreePanel',
  10. dockedItems : null,
  11. region : 'east',
  12. width : '28%',
  13. height : '100%',
  14. useArrows: false,
  15. bodyStyle: null
  16. }, {
  17. xtype : 'container',
  18. region : 'center',
  19. layout : 'border',
  20. items : [ {
  21. xtype : 'form',
  22. region : 'center',
  23. autoScroll: true,
  24. id: 'configPanel',
  25. title : '参数配置',
  26. layout: 'column',
  27. bodyStyle : 'background:#f9f9f9;padding:5px 5px 0',
  28. defaults: {
  29. columnWidth: .5,
  30. margin: '4 8 4 8'
  31. },
  32. buttonAlign: 'center',
  33. buttons: [{
  34. text: '保存',
  35. id: 'btn-save',
  36. height: 30
  37. },{
  38. text: '关闭',
  39. id: 'btn-close',
  40. height: 30
  41. }],
  42. items: [{
  43. html: '没有参数配置',
  44. cls: 'x-form-empty'
  45. }]
  46. }, {
  47. xtype: 'tabpanel',
  48. title: '逻辑配置',
  49. id: 'tabpanel',
  50. region : 'south',
  51. height: window.innerHeight*0.62,
  52. bodyStyle : 'background:#f9f9f9',
  53. border: false,
  54. collapsible: true,
  55. collapseDirection: 'bottom',
  56. collapsed: window.whoami ? false : true
  57. } ]
  58. } ]
  59. });
  60. me.callParent(arguments);
  61. }
  62. });