商丘12345 前端

jueSeQuanXian.html 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  8. <link rel="stylesheet" href="../css/init.css" />
  9. <title>系统管理-->角色权限</title>
  10. <style>
  11. .box {
  12. width: 35%;
  13. }
  14. .delModel .box,.proModel .box{
  15. width: 20%;
  16. }
  17. .boxCon {
  18. height: 285px;
  19. }
  20. .boxCon table th {
  21. width: 20%;
  22. }
  23. .boxCon table td textarea{
  24. width: 80%;
  25. }
  26. .treeTable {
  27. height: 500px;
  28. }
  29. .tree {
  30. height: 100%;
  31. }
  32. .treeCon {
  33. height: 90%;
  34. border: 1px solid #ebebeb;
  35. overflow-y: auto;
  36. }
  37. .trTitle {
  38. width: 100%;
  39. height: 34px;
  40. line-height: 34px;
  41. border-bottom: 1px solid #ebebeb;
  42. color: red;
  43. font-weight: 700;
  44. margin-bottom: 15px;
  45. }
  46. </style>
  47. </head>
  48. <body class="gray-bg">
  49. <div class="container-fluid wrapper-content animated fadeInRight">
  50. <div class="daoHang clearfix">
  51. <div class="dhLeft">
  52. <sapn><i class="syIcon"></i>位置:<a id="ReIndex" href="javaScript:;">首页</a>&gt;<a href="javaScript:;">系统管理</a>&gt;<a href="" class="nowPosition">角色管理</a></sapn>
  53. </div>
  54. <div class="dhRight"><a href="" title="刷新"><i class="fa fa-refresh"></i></a></div>
  55. </div>
  56. <div class="toolBar clearfix">
  57. <div class="toolLeft">
  58. <button class="btns add">添加</button>
  59. <button class="btns change">修改</button>
  60. <button class="btns del">删除</button>
  61. <button class="btns protect">保存角色权限</button>
  62. </div>
  63. <div class="toolRight">
  64. <span>角色名称:<input type="text" class="searJsz" /></span>
  65. <button class="btns search">搜索</button>
  66. </div>
  67. </div>
  68. <div class="treeTable clearfix">
  69. <div class="tree col-md-3">
  70. <div class="trTitle"> 角色列表</div>
  71. <table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  72. <thead>
  73. <tr>
  74. <th data-align="center" data-field="id" data-formatter="setCode"></th>
  75. <th data-field="F_RoleName" data-align="center">用户角色</th>
  76. </tr>
  77. </thead>
  78. </table>
  79. </div>
  80. <div class="tableCon col-md-9">
  81. <div class="trTitle"> 权限设置</div>
  82. <div class="treeCon">
  83. <ul id="treeDemo" class="ztree">
  84. <!--类名为ztree是必须的-->
  85. </ul>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <!--添加弹出内容-->
  91. <div class="model addModel">
  92. <div class="box">
  93. <div class="btop clearfix">
  94. <p class="btl">添加角色信息</p>
  95. <p class="btr addBtr" title="关闭">X</p>
  96. </div>
  97. <div class="boxCon">
  98. <table>
  99. <tbody>
  100. <tr>
  101. <th style="color: red;">角色名称:</th>
  102. <td colspan="3"><input type="text" class="add_jsz" /><span class="kong addJsz_kong" style="color: red;">*角色名称不允许为空</span></td>
  103. </tr>
  104. <tr>
  105. <th style="color: red;">角色代码:</th>
  106. <td colspan="3"><input type="text" class="add_jsdm" /><span class="kong addJsdm_kong" style="color: red;">*角色代码不允许为空</span></td>
  107. </tr>
  108. <tr>
  109. <th style="color: red;">是否弹屏:</th>
  110. <td colspan="3">
  111. <input type="radio" name="screen" id="" value="1" checked/>是
  112. <input type="radio" name="screen" id="" value="0"/>否
  113. </td>
  114. </tr>
  115. <tr>
  116. <th>备注:</th>
  117. <td colspan="3"><textarea rows="2" cols="20" class="add_bz"></textarea></td>
  118. </tr>
  119. </tbody>
  120. </table>
  121. <div style="text-align: center;"><button class="btns addCun">保存</button></div>
  122. </div>
  123. </div>
  124. </div>
  125. <!--修改弹出内容-->
  126. <div class="model changeModel">
  127. <div class="box">
  128. <div class="btop clearfix">
  129. <p class="btl">修改角色信息</p>
  130. <p class="btr changeBtr" title="关闭">X</p>
  131. </div>
  132. <div class="boxCon">
  133. <table>
  134. <tbody>
  135. <tr>
  136. <th style="color: red;">角色名称:</th>
  137. <td colspan="3"><input type="text" class="change_jsz" /><span class="kong change_kong" style="color: red;">*角色名称不允许为空</span></td>
  138. </tr>
  139. <tr>
  140. <th style="color: red;">角色代码:</th>
  141. <td colspan="3"><input type="text" class="change_jsdm" /><span class="kong changeJsdm_kong" style="color: red;">*角色代码不允许为空</span></td>
  142. </tr>
  143. <tr>
  144. <th style="color: red;">是否弹屏:</th>
  145. <td colspan="3" class="edit_screen">
  146. <input type="radio" name="screen" id="" value="1" />是
  147. <input type="radio" name="screen" id="" value="0"/>否
  148. </td>
  149. </tr>
  150. <tr>
  151. <th>备注:</th>
  152. <td colspan="3"><textarea rows="2" cols="20" class="change_bz"></textarea></td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. <div style="text-align: center;"><button class="btns changeCun">保存</button></div>
  157. </div>
  158. </div>
  159. </div>
  160. <!--删除弹出内容-->
  161. <div class="model delModel">
  162. <div class="box">
  163. <div class="btop clearfix">
  164. <p class="btl"><span>删除提示</span></p>
  165. <p class="btr delBtr" title="关闭">X</p>
  166. </div>
  167. <div class="boxCon" style="height: 150px;text-align: center;">
  168. <p style="font-size: 16px;">您确定删除?</p>
  169. <p style="margin-top: 30px;">
  170. <button class="btns sure">确定</button>
  171. <button class="btns return">取消</button>
  172. </p>
  173. </div>
  174. </div>
  175. </div>
  176. <!--删除弹出内容-->
  177. <div class="model proModel">
  178. <div class="box">
  179. <div class="btop clearfix">
  180. <p class="btl"><span>提示</span></p>
  181. <p class="btr proBtr" title="关闭">X</p>
  182. </div>
  183. <div class="boxCon" style="height: 150px;text-align: center;">
  184. <p style="font-size: 16px;">保存角色权限成功!</p>
  185. <p style="margin-top: 30px;">
  186. <button class="btns proSure">确定</button>
  187. </p>
  188. </div>
  189. </div>
  190. </div>
  191. <script src="../css/layer/layer.js"></script>
  192. <script src="../js/zTree/jquery.ztree.core.js"></script>
  193. <script src="../js/zTree/jquery.ztree.excheck.min.js"></script>
  194. <script src="./js/jueSeQuanXian.js"></script>
  195. </body>
  196. </html>