ProblemPanel.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Ext.define('erp.view.opensys.home.ProblemPanel', {
  2. extend: 'Ext.panel.Panel',
  3. alias: 'widget.problempanel',
  4. cls: 'preview',
  5. autoScroll: true,
  6. region: 'south',
  7. border:false,
  8. flex: 2,
  9. title:'问题反馈',
  10. layout:'fit',
  11. initComponent: function(){
  12. Ext.apply(this, {
  13. items:[Ext.widget('panel',{
  14. border:true,
  15. dockedItems: [this.createToolbar()],
  16. })]
  17. });
  18. this.callParent(arguments);
  19. },
  20. createToolbar: function(){
  21. var items = [],
  22. config = {
  23. /*style:'border-left-width: 10px!important;' */
  24. };
  25. items.push({
  26. scope: this,
  27. handler: this.loadTab,
  28. text: '全部',
  29. iconCls: 'x-button-icon-showall'
  30. }, '-');
  31. items.push({
  32. scope: this,
  33. handler: this.loadTab,
  34. text: '已回复',
  35. iconCls: 'x-button-icon-showcomplete'
  36. },'-');
  37. items.push({
  38. scope: this,
  39. handler: this.loadTab,
  40. text: '未回复',
  41. iconCls: 'x-button-icon-showuncomplete'
  42. });
  43. config.items = items;
  44. return Ext.create('widget.toolbar', config);
  45. },
  46. loadTab:function(){
  47. alert('load');
  48. }
  49. });