//系统类型下拉信息获取
var dsStore = new Ext.data.Store({
autoLoad : true,
proxy : new Ext.data.HttpProxy({
url : BUS_TYPE_TREE_URL,//'/etl/metadata/getDatasourceList',
method : 'POST'
}),
reader : new Ext.data.JsonReader({},
new Ext.data.Record.create([{name : 'id'}, {name : 'text'}]))
});
this.busiTypeInfo = new Ext.form.ComboBox(
{
store : dsStore,
valueField : "id",
displayField : "text",
mode : 'remote',
forceSelection : true,
blankText : '--请选择--',
emptyText : '--请选择--',
hiddenName : 'id',
editable : false,
triggerAction : 'all',
allowBlank : true,
// fieldLabel : '监管/建设单位',
// name : 'dsName',
id : 'busiTypeInfoId',
anchor : '60%'
});
this.vtbar = new Ext.Toolbar({
items: [
'-',{xtype:'button',text:'添加',iconCls:'add',handler:this.onAddClick,scope:this},
'-',{xtype:'button',text:'修改',iconCls:'edit',handler:this.onModifyClick,scope:this},
'-',{xtype:'button',text:'删除',iconCls:'delete',handler:this.onDeleteClick,scope:this},
'->',{xtype:'label',text:'请选择系统:'},this.busiTypeInfo,
'-',{xtype:'button',text:'查询',iconCls:'query',handler:function(){
var busiId = Ext.getCmp('busiTypeInfoId').getValue();
if(busiId != null && busiId != ""){
tableGrid.store.baseParams= {busiId:busiId};
tableGrid.store.load({params:{start:0,limit:PAGESIZE}});
}
}
}
]
});
Extjs中,带有下拉选项的条件查询。
最新推荐文章于 2023-06-17 22:16:18 发布