cmAgencyOperation.jsp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>运营人员列表</title>
  6. <meta name="decorator" content="default"/>
  7. <style type="text/css">
  8. .table th{text-align: center;}
  9. .table td{text-align: center;}
  10. </style>
  11. <script type="text/javascript">
  12. $(document).ready(function() {
  13. $(".clubName").text(getUrlParam("name")?getUrlParam("name"):'');
  14. });
  15. function page(n,s){
  16. $("#pageNo").val(n);
  17. $("#pageSize").val(s);
  18. $("#searchForm").submit();
  19. return false;
  20. }
  21. function getUrlParam(name) {
  22. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", 'i'); //构造一个含有目标参数的正则表达式对象
  23. var r = decodeURIComponent(window.location.search).substr(1).match(reg); //匹配目标参数
  24. if (r != null) return (r[2]); return null; //返回参数值
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <ul class="nav nav-tabs">
  30. <li><a href="${ctx}/new/user/agency/">机构列表</a></li>
  31. <li class="active"><a href="javascript:;">运营人员列表</a></li>
  32. </ul>
  33. <div>
  34. <p style="padding: 12px;"><b>所在机构:</b><span class="clubName"></span></p>
  35. </div>
  36. <form:form id="searchForm" modelAttribute="cmOperationUser" action="${ctx}/user/cmOperationUser/list?userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}" method="post" class="breadcrumb form-search">
  37. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  38. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  39. <div class="ul-form">
  40. <label>姓名:</label>
  41. <form:input path="linkName" htmlEscape="false" maxlength="20" class="input-medium"/>
  42. <label>手机号码:</label>
  43. <form:input path="mobile" htmlEscape="false" maxlength="11" class="input-medium"/>
  44. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  45. <div class="clearfix"></div>
  46. </div>
  47. </form:form>
  48. <sys:message content="${message}"/>
  49. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  50. <thead>
  51. <tr>
  52. <th>姓名</th>
  53. <th>手机号码</th>
  54. <th>状态</th>
  55. <th>微信昵称</th>
  56. <th>绑定时间</th>
  57. <shiro:hasPermission name="user:cmOperationUser:edit"><th>操作</th></shiro:hasPermission>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <c:if test="${not empty page.list}">
  62. <c:forEach items="${page.list}" var="cmOperationUser" varStatus="statusIndex">
  63. <tr>
  64. <td>
  65. ${cmOperationUser.linkName}
  66. </td>
  67. <td>
  68. ${cmOperationUser.mobile}
  69. </td>
  70. <td>
  71. <%--1未绑定,2已绑定--%>
  72. <c:if test="${cmOperationUser.status ne 2}">
  73. 未绑定
  74. </c:if>
  75. <c:if test="${cmOperationUser.status eq 2}">
  76. 已绑定
  77. </c:if>
  78. </td>
  79. <td>
  80. <c:if test="${not empty cmOperationUser.nickName}">
  81. ${cmOperationUser.nickName}
  82. </c:if>
  83. <c:if test="${empty cmOperationUser.nickName}">
  84. -----
  85. </c:if>
  86. </td>
  87. <td>
  88. <c:if test="${not empty cmOperationUser.bindTime}">
  89. <fmt:formatDate value="${cmOperationUser.bindTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  90. </c:if>
  91. <c:if test="${empty cmOperationUser.bindTime}">
  92. -----
  93. </c:if>
  94. </td>
  95. <shiro:hasPermission name="user:cmOperationUser:edit"><td>
  96. <a href="${ctx}/user/cmOperationUser/form?id=${cmOperationUser.id}&userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}&userID=${cmOperationUser.userID}">编辑</a>
  97. <%--未绑定(无论有效还是失效都可以更新)--%>
  98. <c:if test="${cmOperationUser.status ne 2}">
  99. <c:if test="${not empty cmOperationUser.invitationCode}">
  100. <a href="${ctx}/user/cmOperationUser/updateInvitationCode?id=${cmOperationUser.id}&userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}&userID=${cmOperationUser.userID}" onclick="return confirmx('确定更新邀请码吗?更新后将会短信通知该运营人员。', this.href)">更新邀请码</a>
  101. </c:if>
  102. <c:if test="${empty cmOperationUser.invitationCode}">
  103. <a href="${ctx}/user/cmOperationUser/updateInvitationCode?id=${cmOperationUser.id}&userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}&userID=${cmOperationUser.userID}" onclick="return confirmx('确定生成邀请码吗?生成后将会短信通知该运营人员。', this.href)">生成邀请码</a>
  104. </c:if>
  105. </c:if>
  106. <%--绑定了才需要解绑--%>
  107. <c:if test="${cmOperationUser.status eq 2}">
  108. <a href="${ctx}/user/cmOperationUser/untiedOperationUser?id=${cmOperationUser.id}&userOrganizeID=${cmOperationUser.userOrganizeID}&clubID=${cmOperationUser.clubID}&userID=${cmOperationUser.userID}" onclick="return confirmx('确定解绑该运营人员吗?', this.href)">解绑</a>
  109. </c:if>
  110. </td></shiro:hasPermission>
  111. </tr>
  112. </c:forEach>
  113. </c:if>
  114. </tbody>
  115. </table>
  116. <c:if test="${empty page.list}">
  117. <p style="text-align: center;"><font color="#1e90ff">暂无数据……</font></p>
  118. </c:if>
  119. <div class="pagination">${page}</div>
  120. </body>
  121. </html>