f18874b85422467d1c8e5a35ee670fe9edfb86cd.svn-base 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>树形表格</title>
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. <!--数据表格start-->
  15. <script src="../../libs/js/table/quiGrid.js" type="text/javascript"></script>
  16. <!--数据表格end-->
  17. </head>
  18. <body>
  19. <div class="red">此示例由后台支持</div>
  20. <div class="padding_right5">
  21. <div id="maingrid"></div>
  22. </div>
  23. <script type="text/javascript">
  24. var g;
  25. function initComplete(){
  26. //usePager: false设置为不分页
  27. g = $("#maingrid").quiGrid({
  28. columns: [
  29. { display: '部门名', name: 'name', id:'deptId', width: 250, align: 'left' },
  30. { display: '部门id', name: 'id',width: 250, type: 'int', align: 'left' },
  31. { display: '部门parentId', name: 'parentId', width: 250, align: 'left' }
  32. ],
  33. height: '100%', width:"100%",checkbox:true,usePager: false,tree: { columnId: 'deptId' }
  34. });
  35. }
  36. </script>
  37. </body>
  38. </html>