123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <%@ page contentType="text/html; charset=UTF-8" language="java"%>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title>用户管理</title>
- <link type="text/css" rel="stylesheet" href="../../../scripts/easyui/themes/default/easyui.css"/>
- <link type="text/css" rel="stylesheet" href="../../../scripts/easyui/themes/icon.css"/>
- <script type="text/javascript" src="../../../scripts/jquery/jquery-1.11.1.js"></script>
- <script type="text/javascript" src="../../../scripts/easyui/jquery.easyui.min.js"></script>
- <script type="text/javascript" src="../../../scripts/easyui/locale/easyui-lang-zh_CN.js"></script>
- <script>
-
- var LocString=String(window.document.location.href);
- function GetQueryString(str){
- var rs=new RegExp("(^|)"+str+"=([^\&]*)(\&|$)","gi").exec(LocString),tmp;
- if(tmp=rs)return tmp[2];
- return "没有这个参数";
- }
- //alert("角色ID:"+GetQueryString("id"));
- // alert("角色类型:"+GetQueryString("roleType"));
- //alert("所在页数:"+GetQueryString("page"));
-
- function checkAllBox(obj,id){
- var answer= document.getElementsByName(id);
- if(obj.checked==true){
- for(var i=0;i<answer.length;i++){
- answer[i].checked = true;
- /* if(answer[i].checked){
- alert(answer[i].value+","+answer[i].nextSibling.nodeValue);
- } */
- }
- }else{
- for(var i=0;i<answer.length;i++){
- answer[i].checked = false;
- }
- }
- };
-
-
- /* function checkData(){
-
- var inputs = document.getElementsByTagName('input');//获取所有的input标签对象。
- for(var i=0;i<inputs.length;i++){
- var obj = inputs[i];
- if(obj.type=='checkbox'){
- if(obj.checked==true){
- sign=1;
- alert(obj.value);
- }
- }
- }
- } */
- function saveRoleButton() {
- $('#sysRoleButton_save_form').form('submit', {
- url : '/gzfw/ws/rolebutton/RoleService/saveRoleButton',
- onSubmit : function() {
- return $(this).form('validate');
- },
- success : function(result) {
- var result = eval('(' + result + ')');
- if (!result.success) {
- $.messager.show({
- title : 'Error',
- msg : result.success
- });
- } else {
- $('#cxdm').form('clear');
- //$datagrid.datagrid('reload'); // reload the user data
- }
- }
- });
- };
- </script>
- </head>
- <%
- String roleId = request.getParameter("id");
- String roleType = request.getParameter("roleType");
- %>
- <body>
- <table width="100%" height="500">
- <form id="sysRoleButton_save_form" method="post">
- <input type="hidden" id="roleId" name="roleId" value="<%=roleId%>"/>
- <input type="hidden" id="roleType" name="roleType" value="<%=roleType%>"/>
- <tr><td valign="top" class="sysmenu-button" align="right">
- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="saveRoleButton()">保存</a>
- </td></tr>
- <tr><td valign="top">
- <table id="cxdm" title="按钮权限定义" class="easyui-treegrid" url="/gzfw/ws/rolebutton/RoleService/getRoleButtonList/<%=roleId %>"
- rownumbers="true" showFooter="true" idField="id" treeField="module_id" toolbar="#tb" fit="true"
- fitColumns="true">
- <thead>
- <tr>
- <th field="module_id">所属模块</th>
- <th field="id">功能点编号</th>
- <th field="name">功能点名称</th>
- <!-- <th field="caozuo"></th> -->
- <th field="button">已分配按钮</th>
- </tr>
- </thead>
- </table>
- </td></tr>
- </form>
- </table>
- </body>
- </html>
|