EasyUi datagrid选中行的index值的方法:
function callQueue(){
edit_url = "queueRecord.htm?op=callQueue";
var row = $('#dg').datagrid('getSelected');
// 获取选中行的Index的值
var rowIndex=$('#dg').datagrid('getRowIndex',$('#dg').datagrid('getSelected'));
if(rowIndex != 0){
$.messager.alert("提示","请按照排号顺序叫号!");
return false;
}else{
$('#call').dialog('open').dialog('setTitle', '叫号');
$('#callfm').form('clear');
$("#id").val(row.id);
$("#code").val(row.numberType+row.code);
}
}