sysroleactivityForm.jsp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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="default"/>
  7. <style>
  8. label.error{
  9. left:0;
  10. top:40px;
  11. }
  12. </style>
  13. <script type="text/javascript">
  14. var validateForm;
  15. function doSubmit(){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
  16. if(validateForm.form()){
  17. $("#inputForm").submit();
  18. return true;
  19. }
  20. return false;
  21. }
  22. $(document).ready(function() {
  23. validateForm = $("#inputForm").validate({
  24. submitHandler: function(form){
  25. loading('正在提交,请稍等...');
  26. form.submit();
  27. },
  28. errorContainer: "#messageBox",
  29. errorPlacement: function(error, element) {
  30. $("#messageBox").text("输入有误,请先更正。");
  31. if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
  32. error.appendTo(element.parent().parent());
  33. } else {
  34. error.insertAfter(element);
  35. }
  36. }
  37. });
  38. });
  39. </script>
  40. </head>
  41. <body>
  42. <div class="single-form">
  43. <div class="container">
  44. <form:form id="inputForm" modelAttribute="sysRoleActivity" action="${ctx}/sys/sysroleactivity/save" method="post" class="form-horizontal">
  45. <form:hidden path="id"/>
  46. <div class="form-group layui-row first">
  47. <div class="form-group-label"><h2>基础信息</h2></div>
  48. <div class="layui-item layui-col-sm6">
  49. <label class="layui-form-label"><span class="require-item">*</span>角色名称:</label>
  50. <div class="layui-input-block">
  51. <form:input path="name" htmlEscape="false" class="form-control required layui-input "/>
  52. </div>
  53. </div>
  54. <div class="layui-item layui-col-sm6">
  55. <label class="layui-form-label"><span class="require-item">*</span>编码:</label>
  56. <div class="layui-input-block">
  57. <form:input path="sort" htmlEscape="false" minlength="4" maxlength="4" class="layui-input form-control number required"/>
  58. </div>
  59. </div>
  60. <div class="layui-item layui-col-sm12">
  61. <label class="layui-form-label"><span class="require-item">*</span>角色类型:</label>
  62. <div class="layui-input-block">
  63. <form:select path="type" class="form-control required simple-select">
  64. <form:option value="" label=""/>
  65. <form:options items="${fns:getDictList('sys_role_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  66. </form:select>
  67. </div>
  68. </div>
  69. <div class="layui-item layui-col-sm12 with-textarea">
  70. <label class="layui-form-label">备注信息:</label>
  71. <div class="layui-input-block">
  72. <form:textarea path="remarks" htmlEscape="false" rows="4" class="form-control "/>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="form-group layui-row">
  77. <div class="form-group-label"><h2>工作流明细</h2></div>
  78. <div class="layui-item layui-col-xs12 form-table-container" >
  79. <table id="contentTable" class="table table-bordered table-condensed no-bottom-margin details">
  80. <thead>
  81. <tr>
  82. <%--<th width="30%" style="text-align: center;">模块类型</th>--%>
  83. <th width="50%" style="text-align: center;">工作流类型</th>
  84. <th width="50%" style="text-align: center;">工作流环节</th>
  85. </tr>
  86. </thead>
  87. <tbody id="activityList">
  88. <c:if test="${not empty sysRoleActivity.activityList}">
  89. <c:forEach items="${sysRoleActivity.activityList}" var="activity" varStatus="index">
  90. <tr>
  91. <%--<td>
  92. ${activity.processKey}
  93. </td>--%>
  94. <td >
  95. ${activity.activityName}
  96. </td>
  97. <td>
  98. ${activity.name}
  99. </td>
  100. </tr>
  101. </c:forEach>
  102. </c:if>
  103. </tbody>
  104. </table>
  105. </div>
  106. </div>
  107. <div class="form-group layui-row">
  108. <div class="form-group-label"><h2>关联岗位明细</h2></div>
  109. <div class="layui-item layui-col-xs12 form-table-container" >
  110. <table id="contentTable3" class="table table-bordered table-condensed no-bottom-margin details">
  111. <thead>
  112. <tr>
  113. <th width="30%" style="text-align: center;">岗位名称</th>
  114. <th width="30%" style="text-align: center;">归属部门</th>
  115. <th width="40%" style="text-align: center;">数据范围</th>
  116. </tr>
  117. </thead>
  118. <tbody id="roleList">
  119. <c:if test="${not empty sysRoleActivity.roleList}">
  120. <c:forEach items="${sysRoleActivity.roleList}" var="role" varStatus="index">
  121. <tr>
  122. <td style="text-align: center;">
  123. ${role.name}
  124. </td>
  125. <td style="text-align: center;">
  126. ${role.office.topCompany}
  127. </td>
  128. <td style="text-align: center;">
  129. ${fns:getDictLabel(role.dataScope, 'sys_data_scope', '无')}
  130. </td>
  131. </tr>
  132. </c:forEach>
  133. </c:if>
  134. </tbody>
  135. </table>
  136. </div>
  137. </div>
  138. </form:form>
  139. </div>
  140. </div>
  141. </body>
  142. </html>