1.静态展示
<table name="Y_J_J_C_CB" id="Y_J_J_C_CB" class="easyui-datagrid" style="height:556px;" data-options="fitColumns:false,singleSelect:true,view:scrollview,rownumbers:true,singleSelect:true,autoRowHeight:false,pageSize:50,
columns:[[
{field:'EntName',title:'污染企业名称',width:264,align:'center',sortable:false},
{field:'Time',title:'超标时刻',width:148,align:'center',sortable:false},
{field:'COD',title:'COD(t)',width:68,align:'center',sortable:false},
{field:'AD',title:'氨氮(t)',width:68,align:'center',sortable:false},
{field:'ZL',title:'总磷(t)',width:68,align:'center',sortable:false},
{field:'ZD',title:'总氮(t)',width:68,align:'center',sortable:false},
]],
url : 'http://117.159.25.210:8088/supermap-analysis-web/EnvMapXCWRY/queryYJZ?year=${year}&month=${month}&week=${week}&startTime=${startTime}&endTime=${endTime}&RegionCode=${RegionCode}&EntName=${EntName}&pageIndex=1&pageSize=50&CodValue=${CodValue}&NValue=${NValue}&ZLValue=${ZLValue}&ZDValue=${ZDValue}&isrhk=${isrhk}'">
</table>
动态展示数据:
var CBYJDatax=function(){
$("#Y_J_J_C_CB").datagrid({
onClickRow:hourdataYJForClick1,
columns:[[
{field:'EntName',title:'污染企业名称',width:264,align:'center',sortable:false},
{field:'Time',title:'超标时刻',width:148,align:'center',sortable:false},
{field:'COD',title:'COD(t)',width:68,align:'center',sortable:false},
{field:'AD',title:'氨氮(t)',width:68,align:'center',sortable:false},
{field:'ZL',title:'总磷(t)',width:68,align:'center',sortable:false},
{field:'ZD',title:'总氮(t)',width:68,align:'center',sortable:false},
]]
});
})