<html>
<head>
<link rel="stylesheet" type="text/css" href="F:\JqueryTest\easyui.css">
<link rel="stylesheet" type="text/css" href="F:\JqueryTest\icon.css">
<script type="text/javascript" src="F:\JqueryTest\jquery.easyui\jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="F:\JqueryTest\jquery.easyui\jquery.easyui.min.js"></script>
<script type="text/javascript">
$(function(){
var $bodyWidth = $(window).width()-2;
var $bodyHeight = $(window).height()-25;
//---------------------列表--------------------------
var lastIndex;
$('#test').datagrid({
height:$bodyHeight-62,
width:$bodyWidth,
nowrap: false,
striped: true,
collapsible:true,
//url:$url,
sortOrder: 'desc',
pageSize:10,
pageList:[10,20,30,50],
// idField:'ID',
loadMsg:'数据装载中......',
frozenColumns:[[
{field:'ID',checkbox:true,sortable:true}
]],
columns:[[
{field:'NAME',title:'文档名称',width:$bodyWidth/5
,
formatter:function(value,rec){
return "<div><a href='#' name='upMer' onclick=showWd('"+rec.ID+"')>"+value+"</a></div>";
}
},
// {field:'FILENAME',title:'模板文件',width:250,
// formatter:function(value,rec){
// return "<div><a href='#' name='upMer' onclick=downLoad('"+rec.FILEID+"')>"+(value==null?"":value)+"</a></div>";
// }},
{field:'DOCNO',title:'文档编号',width:$bodyWidth/8},
{field:'TYPENAME',title:'文档类型',width:$bodyWidth/8},
{field:'PROJNAME',title:'所属项目',width:$bodyWidth/8},
{field:'UGNAME',title:'创建人',width:$bodyWidth/10},
{field:'ORGNAME',title:'单位',width:$bodyWidth/8},
{field:'UGTIME',title:'创建时间',width:$bodyWidth/9}
]],
pagination:true,
rownumbers:true
// ,
// toolbar:[{
// id:'btnadd',
// text:'创建',
// iconCls:'icon-add',
// handler:mackDoc
// },{
// id:'btnupdate',
// text:'修改',
// iconCls:'icon-add',
// handler:updateDoc
// },{
// id:'btnsave',
// text:'删除',
// iconCls:'icon-save',
// handler:deleteDoc
//
// }]
});
});
</script>
</head>
<body>
<div id="panel">
<div id="test"></div>
</div>
</body>
</html>
jquery.easyui.min.js 列表
最新推荐文章于 2021-02-22 11:01:45 发布