userIndex.jsp 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>用户管理</title>
  6. <meta name="decorator" content="ani"/>
  7. <%@ include file="/webpage/include/bootstraptable.jsp"%>
  8. <link href="${ctxStatic}/plugin/bootstrapTree/bootstrap-treeview.css" rel="stylesheet" type="text/css"/>
  9. <script src="${ctxStatic}/plugin/bootstrapTree/bootstrap-treeview.js" type="text/javascript"></script>
  10. <%@ include file="userIndex.js"%>
  11. <%@include file="/webpage/include/treeview.jsp" %>
  12. <%@include file="userTreeList.js" %>
  13. </head>
  14. <body>
  15. <div class="wrapper wrapper-content">
  16. <div class="panel panel-primary">
  17. <div class="panel-heading">
  18. <h3 class="panel-title">用户列表</h3>
  19. </div>
  20. <div class="panel-body">
  21. <div class="row">
  22. <div class="col-sm-3 col-md-4" style="height:465px;overflow: auto">
  23. <%--<div id="jstree"></div>--%>
  24. <div id="userJsTree" style=" border:0px;"></div>
  25. </div>
  26. <div class="col-sm-9 col-md-8 animated fadeInRight">
  27. <!-- 搜索框-->
  28. <div id="search-collapse" class="collapse">
  29. <div class="accordion-inner">
  30. <form id="searchForm" class="form form-horizontal well clearfix" >
  31. <div class="col-sm-4">
  32. <label class="label-item single-overflow pull-left" title="登录名:">登录名:</label>
  33. <input type="text" name="loginName" maxlength="100" class=" form-control"/>
  34. </div>
  35. <div class="col-sm-4">
  36. <label class="label-item single-overflow pull-left" title="姓名:">姓名:</label>
  37. <input type="text" name="name" maxlength="100" class=" form-control"/>
  38. </div>
  39. <%--<div class="col-sm-4">
  40. <label class="label-item single-overflow pull-left" title="公司:">归属公司:</label>
  41. <sys:treeselect id="company" name="company.id"
  42. title="公司" url="/sys/office/treeData?type=1" cssClass=" form-control" allowClear="true"/>
  43. </div>--%>
  44. <div class="col-sm-4">
  45. <label class="label-item single-overflow pull-left" title="员工:">归属部门:</label>
  46. <sys:treeselect id="office" name="office.id"
  47. title="部门" url="/sys/office/treeData" cssClass=" form-control" allowClear="true" />
  48. </div>
  49. <div class="col-sm-10">
  50. <div style="margin-top:26px;text-align: center">
  51. <a id="search" class="btn btn-primary btn-rounded btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
  52. <a id="reset" class="btn btn-primary btn-rounded btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
  53. </div>
  54. </div>
  55. </form>
  56. </div>
  57. </div><!-- 搜索框结束 -->
  58. <!-- 工具栏 -->
  59. <div id="toolbar">
  60. <shiro:hasPermission name="sys:user:add">
  61. <a id="add" class="btn btn-primary" onclick="jp.openSaveDialog('新建用户', '${ctx}/sys/user/form','1000px', '680px')"><i class="glyphicon glyphicon-plus"></i> 新建</a>
  62. </shiro:hasPermission>
  63. <shiro:hasPermission name="sys:user:edit">
  64. <button id="edit" class="btn btn-success" disabled onclick="edit()">
  65. <i class="glyphicon glyphicon-edit"></i> 修改
  66. </button>
  67. </shiro:hasPermission>
  68. <shiro:hasPermission name="sys:user:del">
  69. <button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">
  70. <i class="glyphicon glyphicon-remove"></i> 删除
  71. </button>
  72. </shiro:hasPermission>
  73. </div><!-- 工具栏结束 -->
  74. <!-- 表格 -->
  75. <table id="table"
  76. data-toolbar="#toolbar">
  77. </table>
  78. <!-- context menu -->
  79. <ul id="context-menu" class="dropdown-menu">
  80. <li data-item="edit"><a>编辑</a></li>
  81. <li data-item="delete"><a>删除</a></li>
  82. <li data-item="cancel"><a>取消</a></li>
  83. </ul>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </body>
  90. </html>