DataUpdate.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Ext.define('erp.view.ma.update.DataUpdate', {
  2. extend : 'Ext.Viewport',
  3. layout : 'anchor',
  4. hideBorders : true,
  5. initComponent : function() {
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{ anchor: "100% 7%",
  9. xtype: 'toolbar',
  10. bodyStyle: 'background: #f1f2f5;',
  11. layout: {
  12. type: 'hbox'
  13. },
  14. defaults: {
  15. margin: '2 0 2 2',
  16. cls : 'x-btn-gray',
  17. width : 100
  18. },
  19. items: [{
  20. xtype: 'button',
  21. text: '重新选择',
  22. iconCls: 'upexcel',
  23. name: 'import'
  24. },{
  25. xtype: 'cycle',
  26. showText: true,
  27. iconCls: 'check',
  28. id: 'checkupdate',
  29. menu:{
  30.   items: [{
  31.             text: '校验数据',
  32.             checked: true},
  33.          {
  34.             text: '更新'}]
  35.     }
  36. },
  37. {
  38. xtype: 'button',
  39. text: '导出错误数据',
  40. width:120,
  41. iconCls: 'x-button-icon-download',
  42. name: 'downloadError',
  43. id:'downloaderror',
  44. hidden:true
  45. },
  46. '->',{
  47. xtype: 'button',
  48. text: '查看历史',
  49. iconCls: 'history',
  50. name: 'history',
  51. id:'history'
  52. },{
  53. xtype: 'button',
  54. text: '关闭',
  55. iconCls: 'icon-close',
  56. name: 'close'
  57. }]
  58. },{
  59. anchor: "100% 93%",
  60. xtype: 'panel',
  61. autoScroll: false,
  62. border :false,
  63. layout: 'border',
  64. items: [{
  65. xtype: 'panel',
  66. region: 'center',
  67. height: '100%',
  68. width: '100%',
  69. id: 'updategrid',
  70. bodyStyle: 'background: #f1f2f5;',
  71. layout: 'anchor',
  72. border :false,
  73. autoScroll: false
  74. }]
  75. }]
  76. });
  77. me.callParent(arguments);
  78. }
  79. });