修复角色添加错误
This commit is contained in:
1 parent
175f87cde7
commit
db528a515f
2 files changed
+10
-10
No files matched your search
@@ -22,7 +22,7 @@
|
||||
</div>
|
||||
{php}
|
||||
$authrule = new \app\admin\model\AuthRule;
|
||||
$authrulelist = $authrule->all();
|
||||
$authrulelist = $authrule->where('pid',0)->select();
|
||||
{/php}
|
||||
<div class="layui-form-item">
|
||||
{volist name="authrulelist" id="vo"}
|
||||
@@ -37,16 +37,16 @@
|
||||
{volist name="vo.auth_cid" id="vc"}
|
||||
<div>
|
||||
<input type="checkbox" name="rules[]" title="{$vc.title}" value="{$vc.id}" lay-skin="primary" id ="{$vc.id}" pid="{$vo.id}" action="midOnclick" {present name="$list.data.rules"}
|
||||
{in name="vc.id" value="$list['data']['rules']"}
|
||||
checked
|
||||
{/in}
|
||||
{/present}>
|
||||
{in name="vc.id" value="$list['data']['rules']"}
|
||||
checked
|
||||
{/in}
|
||||
{/present}>
|
||||
{volist name="vc.auth_cid" id="vd"}
|
||||
<input type="checkbox" name="rules[]" title="{$vd.title}" value="{$vd.id}" lay-skin="primary" id ="{$vd.id}" pid="{$vc.id}" action="btmOnclick" {present name="$list.data.rules"}
|
||||
{in name="vd.id" value="$list['data']['rules']"}
|
||||
checked
|
||||
{/in}
|
||||
{/present}>
|
||||
{in name="vd.id" value="$list['data']['rules']"}
|
||||
checked
|
||||
{/in}
|
||||
{/present}>
|
||||
{/volist}
|
||||
</div>
|
||||
{/volist}
|
||||
|
||||
@@ -134,7 +134,7 @@ layui.use(['table','laypage','form','cjgl'], function(){
|
||||
cjgl.del(obj,"/authgroup");
|
||||
break;
|
||||
case 'edit':// 编辑
|
||||
cjgl.add('编辑角色','/authgroup/'+obj.data.id+'/edit','650','500');
|
||||
cjgl.add('编辑角色','/authgroup/'+obj.data.id+'/edit','','',true);
|
||||
break;
|
||||
case 'status':// 状态
|
||||
cjgl.status(obj,"{:url('setstatus')}");
|
||||
|
||||
Reference in new issue
Block a user