setter
parent
731e7437a1
commit
fb68cdb945
|
@ -45,8 +45,9 @@ class Index extends Base
|
||||||
*/
|
*/
|
||||||
public function dashboard()
|
public function dashboard()
|
||||||
{
|
{
|
||||||
$this->data["member_rule"] = array_filter(explode(",", session('auth')['rules']));
|
|
||||||
$this->data["admin_rule"] = Member::MANAGER_ROLE_ID;
|
$this->data["member_role"] = array_filter(explode(",", session('auth')['roles']));
|
||||||
|
$this->data["admin_role"] = Member::MANAGER_ROLE_ID;
|
||||||
return $this->view();
|
return $this->view();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div class="layui-panel" style="border-radius: 8px;">
|
<div class="layui-panel" style="border-radius: 8px;">
|
||||||
<div class="layui-col-md7">
|
<div class="layui-col-md7">
|
||||||
<div class="layui-row">
|
<div class="layui-row">
|
||||||
{if in_array($admin_rule,$member_rule)}
|
{if in_array($admin_role,$member_role)}
|
||||||
<div class="layui-col-md2" style="text-align: center; padding: 40px 20px">
|
<div class="layui-col-md2" style="text-align: center; padding: 40px 20px">
|
||||||
<a href="javascript:;" layuimini-content-href="manager/consumer/index" data-title="用户管理">
|
<a href="javascript:;" layuimini-content-href="manager/consumer/index" data-title="用户管理">
|
||||||
<i class="fa fa-user-circle-o" style="font-size: 500%;"></i>
|
<i class="fa fa-user-circle-o" style="font-size: 500%;"></i>
|
||||||
|
|
Loading…
Reference in New Issue