File: /www/wwwroot/ly.fwmnzf.com/runtime/temp/487c8a8fbe0a530ce17754d244e28731.php
<?php /*a:3:{s:74:"/data/wwwroot/www.had70.xyz/application/admin/view/auth_manager/index.html";i:1619409779;s:68:"/data/wwwroot/www.had70.xyz/application/admin/view/index_layout.html";i:1620206728;s:61:"/data/wwwroot/www.had70.xyz/application/admin/view/layui.html";i:1619409779;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>报表管理系统</title>
<meta name="author" content="YZNCMS">
<link rel="stylesheet" href="/static/libs/layui/css/layui.css">
<link rel="stylesheet" href="/static/admin/css/admin.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
<link rel="stylesheet" href="/static/common/font/iconfont.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
<script src="/static/libs/layui/layui.js"></script>
<script src="/static/libs/jquery/jquery.min.js"></script>
<script type="text/javascript">
//全局变量
var GV = {
'site':<?php echo json_encode($site); ?>,
'image_upload_url': '<?php echo !empty($image_upload_url) ? htmlentities($image_upload_url) : url("attachment/upload/upload", ["dir" => "images", "module" => request()->module()]); ?>',
'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) : url("attachment/upload/upload", ["dir" => "files", "module" => request()->module()]); ?>',
'jcrop_upload_url': '<?php echo !empty($jcrop_upload_url) ? htmlentities($jcrop_upload_url) : url("attachment/Attachments/cropper"); ?>',
'ueditor_upload_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) : url("attachment/upload/upload", ["dir" => "images","from"=>"ueditor", "module" => request()->module()]); ?>',
'ueditor_grabimg_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) : url("attachment/Attachments/geturlfile"); ?>',
'image_select_url': '<?php echo !empty($image_select_url) ? htmlentities($image_select_url) : url("attachment/Attachments/select"); ?>',
'filter_word_url': '<?php echo !empty($filter_word_url) ? htmlentities($filter_word_url) : url("admin/ajax/filterWord"); ?>',
};
</script>
</head>
<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
<div class="layui-card">
<div class="layui-card-header">角色管理</div>
<div class="layui-card-body">
<div class="layui-form">
<table class="layui-hide" id="currentTable" lay-filter="currentTable"></table>
<script type="text/html" id="authTool">
{{# if(d.id == <?php echo htmlentities($userInfo['roleid']); ?>){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger layui-btn-disabled">不可操作</a>
{{# } else { }}
<a class='layui-btn layui-btn-xs' data-open='<?php echo url("access?group_name="); ?>?title={{d.title}}&group_id={{d.id}}' title="访问授权">访问授权</a>
{{# } }}
</script>
<script type="text/html" id="barTool">
{{# if(d.id == <?php echo htmlentities($userInfo['roleid']); ?>){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger layui-btn-disabled">不可操作</a>
{{# } else { }}
<a data-open='<?php echo url("editgroup"); ?>?id={{ d.id }}' class="layui-btn layui-btn-xs" title="编辑">编辑</a>
<a href='<?php echo url("deletegroup"); ?>?id={{ d.id }}' class="layui-btn layui-btn-danger layui-btn-xs layui-tr-del">删除</a>
{{# } }}
</script>
</div>
</div>
</div>
<script type="text/javascript">
layui.config({
version: '<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>',
base: '/static/libs/layui_exts/'
}).extend({
yzn: 'yzn/yzn',
yznForm: 'yznForm/yznForm',
yznTable: 'yznTable/yznTable',
treeGrid: 'treeGrid/treeGrid',
clipboard: 'clipboard/clipboard',
notice: 'notice/notice',
iconPicker: 'iconPicker/iconPicker',
tableSelect: 'tableSelect/tableSelect',
ztree: 'ztree/ztree',
dragsort: 'dragsort/dragsort',
tagsinput: 'tagsinput/tagsinput',
xmSelect: 'xmSelect/xm-select',
selectPage: 'selectPage/selectpage',
echarts: 'echarts/echarts',
echartsTheme: 'echarts/echartsTheme',
citypicker: 'citypicker/city-picker',
webuploader: 'webuploader/webuploader',
ueditor: 'ueditor/ueditor.min',
}).use('yznForm');
</script>
<script>
layui.use('yznTable', function() {
var table = layui.yznTable;
var init = {
table_elem: '#currentTable',
add_url: "<?php echo url('createGroup'); ?>",
};
table.render({
init: init,
id:'currentTable',
elem: '#currentTable',
toolbar: ['refresh','add'],
url: '<?php echo url("index"); ?>',
search:false,
cols: [
[
{ field: 'title',width: 200, title: '授权',templet: '#authTool' },
{ field: 'title', width: 200, align: 'left', title: '权限组'},
{ field: 'description', title: '描述' },
{ field: 'status', width: 100,title: '状态', templet: '<div>{{# if(d.status){ }} <button class="layui-btn layui-btn layui-btn-xs">正常</button> {{# } else { }} <button class="layui-btn layui-btn-danger layui-btn layui-btn-xs">禁用</button> {{# } }} </div>' },
{ fixed: 'right', width: 160, title: '操作', toolbar: '#barTool' }
]
],
});
});
</script>
</body>
</html>