MakeIMEI.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Ext.define('erp.view.pm.make.MakeIMEI',{
  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: 'panel',
  10. region: 'center',
  11. layout: 'anchor',
  12. items: [{
  13. anchor: "100% 5%",
  14. xtype: 'panel',
  15. bodyStyle: 'background: #f1f2f5;',
  16. layout: {
  17. type: 'hbox'
  18. },
  19. defaults: {
  20. cls: 'custom-button',
  21. margin: '1 0 0 1'
  22. },
  23. items: [{
  24. xtype: 'button',
  25. text: '导入历史',
  26. //iconCls: 'history',
  27. id: 'history'
  28. },{
  29. xtype: 'button',
  30. text: '导入配置',
  31. //iconCls: 'rule',
  32. id: 'rule'
  33. },{
  34. xtype: 'button',
  35. text: '下载模板',
  36. //iconCls: 'export',
  37. id: 'export'
  38. },{
  39. xtype: 'upexcel',
  40. text: '导入数据',
  41. iconCls: 'upexcel',
  42. itemCls: 'up',
  43. id: 'upexcel',
  44. hidden: true,
  45. height: 23,
  46. width: 90
  47. }/*,{
  48. xtype: 'button',
  49. text: '保存修改',
  50. //iconCls: 'save',
  51. id: 'saveupdates',
  52. hidden: true
  53. }*/,{
  54. xtype: 'button',
  55. text: '校验数据',
  56. //iconCls: 'check',
  57. id: 'check',
  58. hidden: true
  59. },{
  60. xtype: 'button',
  61. text: '转入正式',
  62. //iconCls: 'save',
  63. id: 'toformal',
  64. hidden: true
  65. },{
  66. xtype: 'button',
  67. text: '删除本次导入',
  68. //iconCls: 'save',
  69. id: 'thisdelete',
  70. hidden: true
  71. }]
  72. },{
  73. anchor: "100% 95%",
  74. xtype: 'panel',
  75. autoScroll: true,
  76. layout: 'border',
  77. items: [{
  78. title: title||'数据模板',
  79. xtype: 'panel',
  80. region: 'center',
  81. height: '100%',
  82. width: '100%',
  83. id: 'template',
  84. layout: 'anchor',
  85. autoScroll: true
  86. }]
  87. }]
  88. }]
  89. });
  90. me.callParent(arguments);
  91. }
  92. });