easyui中给table列表中加序号

 

 

$('#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;
}
},

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-10-04
  • 2022-12-23
  • 2021-11-09
相关资源
相似解决方案