<input id="checkPerson" name="checkPerson" style="width: 180px;" class="easyui-combobox" >
/**
* 下拉框数据填充及回显(下拉数据固定)
* @param _type:回显的值
* @param id:输入框id
*/
function flowType(_type, id) {
// 数据填充
$('#' + id).combobox({
valueField: 'value',
textField: 'text',
data: [{
value: '1',
text: '一次'
}, {
value: '2',
text: '二次'
}],
onLoadSuccess: function () {
// 回显
$('#' + id).combobox('setValue', _type);
}
});
}
function org_all(_orgId) {
// 获取所有组织机构
$('#checkPerson').combobox({
url:'queryOrg.do',
valueField : 'orgId',
textField : 'orgName',
onLoadSuccess:function(node,data){
if (_orgId == '' || _orgId == null ) {
$("#org").combobox('setValue','');
return;
}
// 回显
$("#org").combobox('setValue',_orgId);
}
})
}