在一张表中有操作选项,点击操作获取这一行的信息用的easyui
$("#list").datagrid({
title:'项目整件列表',
url:'<%=request.getContextPath()%>/EquipmentPageListAjax.do',
loadMsg:"请稍候...",
iconCls:'',
nowrap: true,
striped: true,
fitColumns:true,
pagination:true,
rownumbers:true,
queryParams: {
t: new Date(),
entrance: '<%= SystemConst.SC_SREACHPAGELIST_ENTRANCE%>',
searchType: $('#searchType').val(),
projectCode: $('#projectCode').val(),
hasMaterial: $('#hasMaterial').val(),
isAllReady: $('#isAllReady').val(),
isProblem: $('#isProblem').val(),
isImpact: $('#isImpact').val(),
isTr: $('#isTr').val(),
levelGrade: $('#levelGrade').val(),
productManager: $('#productManager').val(),
maxDeviation: $('#maxDeviation').val(),
timeAxis: $('#timeAxis').val(),
materialCode: $('#materialCode').val(),
isImpactEquipment: $('#isImpactEquipment').val(),
undetermined: $('#undetermined').val(),
dataComeSource: $('#dataComeSource').val(),
dataClass: $('#dataClass').val()
},
rowStyler:function(index,row){
if (row.maxDeviation >= 1 && row.maxDeviation <= 15){
return 'color:#9eba00;';
}
if (row.maxDeviation >= 16 && row.maxDeviation <= 30){
return 'color:#ec802a;';
}
if (row.maxDeviation > 30){
return 'color:#eb3736;';
}
},
onLoadSuccess:function(data){
frame_init_show();
}
});
// 表格自适应
$(window).resize(function(){
$('#list').datagrid('resize');
});
var type = '<%=SystemConst.SE_RELATED_ME_EQUIPMENT%>';
window.fetchField(type);
});
表就是这样,怎么获取点击的这一条信息