ConditionPanel.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. tabBar: {
  43. layout: {
  44. pack: 'center'
  45. }
  46. },
  47. style:'border-top:1px solid rgb(197, 197, 197)',
  48. items:[{
  49. name:'baseConditionGrid',
  50. title:'基础设置',
  51. xtype:'grid',
  52. store:{
  53. fields:['type','operate','field','value'],
  54. data:[]
  55. },
  56. columns:[{
  57. dataIndex:'field',
  58. flex:1,
  59. text:'字段'
  60. },{
  61. dataIndex:'operate',
  62. width:100,
  63. text:'过滤逻辑'
  64. },{
  65. dataIndex:'value',
  66. width:160,
  67. text:'关键词'
  68. },{
  69. xtype:'actioncolumn',
  70. width:100,
  71. text:'操作'
  72. }],
  73. refreshDate:function(grid){
  74. const me = this;
  75. if(grid.nowFilterCondition&&grid.nowFilterCondition.length>0){
  76. me.store.loadData(grid.nowFilterCondition,false)
  77. }else{
  78. me.store.removeAll();
  79. }
  80. }
  81. },{
  82. title:'高级设置',
  83. xtype:'grid',
  84. columns:[{
  85. width:60,
  86. text:'括号'
  87. },{
  88. width:100,
  89. text:'字段'
  90. },{
  91. width:80,
  92. text:'逻辑'
  93. },{
  94. width:190,
  95. text:'关键字'
  96. },{
  97. width:60,
  98. text:'括号'
  99. },{
  100. width:60,
  101. text:'连接'
  102. }]
  103. }]
  104. }]
  105. });