DataUpdate.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. xtype: 'button',
  38. text: '查看历史',
  39. iconCls: 'history',
  40. name: 'history',
  41. id:'history'
  42. },{
  43. xtype: 'button',
  44. text: '关闭',
  45. iconCls: 'icon-close',
  46. name: 'close'
  47. }]
  48. },{
  49. anchor: "100% 93%",
  50. xtype: 'panel',
  51. autoScroll: false,
  52. border :false,
  53. layout: 'border',
  54. items: [{
  55. xtype: 'panel',
  56. region: 'center',
  57. height: '100%',
  58. width: '100%',
  59. id: 'updategrid',
  60. bodyStyle: 'background: #f1f2f5;',
  61. layout: 'anchor',
  62. border :false,
  63. autoScroll: false
  64. }]
  65. }]
  66. });
  67. me.callParent(arguments);
  68. }
  69. });