Ext.define('uas.view.window.searchPlan.ConditionPanel', { extend: 'Ext.panel.Panel', alias: 'widget.conditionPanel', xtype: 'conditionPanel', cls: 'x-panel-conditionPanel', layout:'column', defaults: { columnWidth:0.333, margin:'0 0 0 15' }, items:[{ xtype:'checkbox', boxLabel: '基本信息', }, { xtype:'checkbox', boxLabel: '高级信息', }, { xtype:'checkbox', boxLabel: '财务信息', }, { xtype:'checkbox', boxLabel: '辅助信息', }, { xtype:'checkbox', boxLabel: '人员信息', }, { xtype:'checkbox', boxLabel: '纳税信息', }, { xtype:'checkbox', boxLabel: '供应商信息', },{ margin:'0', xtype:'tabpanel', columnWidth:1, tabBar: { layout: { pack: 'center' } }, style:'border-top:1px solid rgb(197, 197, 197)', items:[{ name:'baseConditionGrid', title:'基础设置', xtype:'grid', store:{ fields:['type','operate','field','value'], data:[] }, columns:[{ dataIndex:'field', flex:1, text:'字段' },{ dataIndex:'operate', width:100, text:'过滤逻辑' },{ dataIndex:'value', width:160, text:'关键词' },{ xtype:'actioncolumn', width:100, text:'操作' }], refreshDate:function(grid){ const me = this; if(grid.nowFilterCondition&&grid.nowFilterCondition.length>0){ me.store.loadData(grid.nowFilterCondition,false) }else{ me.store.removeAll(); } } },{ title:'高级设置', xtype:'grid', columns:[{ width:60, text:'括号' },{ width:100, text:'字段' },{ width:80, text:'逻辑' },{ width:190, text:'关键字' },{ width:60, text:'括号' },{ width:60, text:'连接' }] }] }] });