Commit 83aeadd4 authored by zfc's avatar zfc Committed by hujun

编辑5

parent 7c4d7891
...@@ -233,8 +233,12 @@ class Auth extends Basic ...@@ -233,8 +233,12 @@ class Auth extends Basic
$data['title']='权限分配'; $data['title']='权限分配';
// echo $group_id; // echo $group_id;
// exit; // exit;
<<<<<<< HEAD
if (IS_POST && $group_id=0) { if (IS_POST && $group_id=0) {
>>>>>>> 8e62fd6... 合并test >>>>>>> 8e62fd6... 合并test
=======
if (IS_POST && $group_id==0) {
>>>>>>> cb14688... 编辑5
//添加or修改 //添加or修改
$data['id'] = $group_id; $data['id'] = $group_id;
$menu_auth = input('post.menu_auth/a','');//获取所有授权菜单id $menu_auth = input('post.menu_auth/a','');//获取所有授权菜单id
......
...@@ -64,6 +64,26 @@ define (['doT', 'text!temp/auth_rule_box_template_tpl.html', 'css!style/home.css ...@@ -64,6 +64,26 @@ define (['doT', 'text!temp/auth_rule_box_template_tpl.html', 'css!style/home.css
} }
} }
});
var id= getUrlParam('id');
$.ajax({
url: '/index/updateAuthRule/group_id/'+id,
type: 'post',
async: true,
dataType: 'json',
success: function (data) {
$("input[name = id]").val(data.data.id);
$("input[name = title]").val(data.data.title);
$("input[name = name]").val(data.data.name);
$("input[name = sort]").val(data.data.sort);
$("#pid").val(data.data.pid);
if(data.data.is_menu==0){
$("#is_menu2").attr('checked',true);
}else{
$("#is_menu1").attr('checked',true);
}
}
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment