ConditionPanel.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Ext.define('uas.view.window.searchPlan.ConditionPanel', {
  2. extend: 'Ext.panel.Panel',
  3. alias: 'widget.conditionPanel',
  4. xtype: 'conditionPanel',
  5. cls: 'x-panel-conditionPanel',
  6. layout:'column',
  7. defaults: {
  8. columnWidth:0.333,
  9. margin:'0 0 0 15'
  10. },
  11. items:[{
  12. xtype:'checkbox',
  13. boxLabel: '基本信息',
  14. },
  15. {
  16. xtype:'checkbox',
  17. boxLabel: '高级信息',
  18. },
  19. {
  20. xtype:'checkbox',
  21. boxLabel: '财务信息',
  22. },
  23. {
  24. xtype:'checkbox',
  25. boxLabel: '辅助信息',
  26. },
  27. {
  28. xtype:'checkbox',
  29. boxLabel: '人员信息',
  30. },
  31. {
  32. xtype:'checkbox',
  33. boxLabel: '纳税信息',
  34. },
  35. {
  36. xtype:'checkbox',
  37. boxLabel: '供应商信息',
  38. },{
  39. margin:'0',
  40. xtype:'tabpanel',
  41. columnWidth:1,
  42. height:300,
  43. tabBar: {
  44. layout: {
  45. pack: 'center'
  46. }
  47. },
  48. layout:'fit',
  49. style:'border-top:1px solid rgb(197, 197, 197)',
  50. items:[{
  51. name:'baseConditionGrid',
  52. title:'基础设置',
  53. xtype:'grid',
  54. store:{
  55. fields:['type','operate','field','value'],
  56. data:[]
  57. },
  58. columns:[{
  59. dataIndex:'field',
  60. flex:1,
  61. text:'字段'
  62. },{
  63. dataIndex:'operate',
  64. width:100,
  65. text:'过滤逻辑'
  66. },{
  67. dataIndex:'value',
  68. width:160,
  69. text:'关键词'
  70. },{
  71. xtype:'actioncolumn',
  72. width:100,
  73. text:'操作'
  74. }],
  75. refreshDate:function(grid){
  76. const me = this;
  77. if(grid.nowFilterCondition&&grid.nowFilterCondition.length>0){
  78. me.store.loadData(grid.nowFilterCondition,false)
  79. }else{
  80. me.store.removeAll();
  81. }
  82. }
  83. },{
  84. title:'高级设置',
  85. xtype:'grid',
  86. columns:[{
  87. width:60,
  88. text:'括号'
  89. },{
  90. width:100,
  91. text:'字段'
  92. },{
  93. width:80,
  94. text:'逻辑'
  95. },{
  96. width:190,
  97. text:'关键字'
  98. },{
  99. width:60,
  100. text:'括号'
  101. },{
  102. width:60,
  103. text:'连接'
  104. }]
  105. }]
  106. }]
  107. });