$('#xyData_healthList').datagrid({
width: 'auto',
height: 'auto',
striped: true,
fit: true,
pagination: true, scrollbarSize: 0,
singleSelect: true,
url: '<%=basePath%>xyData/health/getList.do?company_id=' + '<%=company_id%>' + '&usr_no=' + '<%=user_no%>',
loadMsg: '数据加载中请稍后……',
columns: [[
{
field: 'id',
title: '序号',
align: 'center',
resizable: false,
width: '10%',
formatter: function (value,index) {
return $("#xyData_healthList").datagrid("getRowIndex",index) +1;
}
},