Window.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Ext.define('uas.view.window.searchPlan.Window', {
  2. extend: 'Ext.window.Window',
  3. alias: 'widget.searchPlanWindow',
  4. xtype: 'searchPlanWindow',
  5. cls: 'x-window-searchPlanWindow',
  6. title: '筛选方案',
  7. scrollable: true,
  8. bodyPadding: 4,
  9. resizable:false,
  10. constrain: true,
  11. modal: true,
  12. closable: true,
  13. layout: 'border',
  14. closeAction: 'hide',
  15. items:[{
  16. width:260,
  17. frame:true,
  18. region:'west',
  19. xtype:'searchplan-treepanel'
  20. },{
  21. margin:'0 0 0 1',
  22. xtype:'tabpanel',
  23. cls:'x-tab-searchPlanTab',
  24. region:'center',
  25. frame:true,
  26. tabBar: {
  27. layout: {
  28. pack: 'center'
  29. }
  30. },
  31. items:[{
  32. title:'条件设置',
  33. xtype:'conditionPanel'
  34. },{
  35. title:'列设置'
  36. }]
  37. }],
  38. bbar:[{
  39. xtype:'checkbox',
  40. boxLabel: '设为默认方案',
  41. },'->',{
  42. cls:'x-btn-blue',
  43. xtype:'button',
  44. text: '查询',
  45. },{
  46. xtype:'button',
  47. text: '确认',
  48. },{
  49. xtype:'button',
  50. text: '取消',
  51. handler:function(me){
  52. me.ownerCt.ownerCt.hide()
  53. }
  54. }],
  55. listeners:{
  56. show:function(){
  57. const me = this;
  58. const baseConditionGrid = me.down("[name=baseConditionGrid]");
  59. baseConditionGrid.refreshDate(me.grid);
  60. }
  61. }
  62. });