fieldLabel:'编制用途', xtype:'combo', anchor: '-3', id:'bzyt', name:'aoType.dictName', store: Ext.create('Ext.data.Store', { proxy:new Ext.data.HttpProxy({url:"${ctx}/dataApp/getDicList.do"}), fields: [{name:'dictName',type:'string', mapping:'dictName'}] }), editable: false, // 设置为只可选择,不可编辑 selectOnFocus:true, triggerAction:'all', queryMode: 'remote', displayField: 'dictName', valueField: 'dictName', listeners:{ //每次查询前 'beforequery':function(c){ delete c.combo.lastQuery;//用来过滤store的匹配字符串值。 删除此参数以强制执行一次重新查询 var st = Ext.getCmp("bzlx").getValue(); if(st==null){ c.combo.markInvalid("请先选择编制类型!");//就是这里 return false; } if(st==1){ c.combo.getStore().getProxy().extraParams={type:"UnDisDepartMentXZ"} }else{ c.combo.getStore().getProxy().extraParams={type:"UnDisDepartMentSY"} } }
浙公网安备 33010602011771号