save
This commit is contained in:
parent
a6aa555eff
commit
d14351fe2a
@ -8,7 +8,7 @@ use support\Request;
|
||||
use support\Response;
|
||||
|
||||
/**
|
||||
* 管理员角色设置
|
||||
* 角色管理
|
||||
*/
|
||||
class AdminRoleController extends Crud
|
||||
{
|
||||
@ -29,7 +29,7 @@ class AdminRoleController extends Crud
|
||||
* 浏览
|
||||
* @return Response
|
||||
*/
|
||||
public function index()
|
||||
public function index(): Response
|
||||
{
|
||||
return view('admin-role/index');
|
||||
}
|
||||
@ -38,6 +38,7 @@ class AdminRoleController extends Crud
|
||||
* 插入
|
||||
* @param Request $request
|
||||
* @return Response
|
||||
* @throws BusinessException
|
||||
*/
|
||||
public function insert(Request $request): Response
|
||||
{
|
||||
|
@ -77,8 +77,9 @@
|
||||
<script src="/app/admin/admin/js/common.js"></script>
|
||||
<script>
|
||||
|
||||
// 相关接口
|
||||
// 相关常量
|
||||
const PRIMARY_KEY = 'id';
|
||||
const CONTROLLER = 'plugin\\admin\\app\\controller\\AdminRoleController';
|
||||
const SELECT_API = "/app/admin/admin-role/select";
|
||||
const UPDATE_API = "/app/admin/admin-role/update";
|
||||
const DELETE_API = "/app/admin/admin-role/delete";
|
||||
@ -154,7 +155,10 @@
|
||||
title: "刷新",
|
||||
layEvent: "refresh",
|
||||
icon: "layui-icon-refresh",
|
||||
}, "filter", "print", "exports"]
|
||||
}, "filter", "print", "exports"],
|
||||
done: function () {
|
||||
layer.photos({photos: 'div[lay-id="data-table"]', anim: 5});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -63,8 +63,8 @@
|
||||
el: "#rules",
|
||||
name: "rules",
|
||||
initValue: initValue,
|
||||
data: e.data,
|
||||
tree: {"show":true},
|
||||
data: e.data,
|
||||
tree: {"show":true},
|
||||
toolbar: {"show":true,"list":["ALL","CLEAR","REVERSE"]},
|
||||
})
|
||||
}
|
||||
|
@ -87,8 +87,8 @@
|
||||
el: "#rules",
|
||||
name: "rules",
|
||||
initValue: initValue,
|
||||
data: e.data,
|
||||
tree: {"show":true},
|
||||
data: e.data,
|
||||
tree: {"show":true},
|
||||
toolbar: {"show":true,"list":["ALL","CLEAR","REVERSE"]},
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user