mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-03 16:30:37 +00:00
菜单列表不显示接口
This commit is contained in:
parent
c2e367ccca
commit
4c364fddd0
@ -40,12 +40,19 @@ class SystemMenus extends AuthController
|
||||
/**
|
||||
* 菜单展示列表
|
||||
* @return \think\Response
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author 吴汐
|
||||
* @email 442384644@qq.com
|
||||
* @date 2023/05/06
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$where = $this->request->getMore([
|
||||
['is_show', ''],
|
||||
['keyword', ''],
|
||||
['auth_type', ''],
|
||||
]);
|
||||
return app('json')->success($this->services->getList($where));
|
||||
}
|
||||
|
||||
@ -231,6 +231,8 @@ class SystemMenus extends BaseModel
|
||||
*/
|
||||
public function searchAuthTypeAttr($query, $value)
|
||||
{
|
||||
$query->where('auth_type', $value);
|
||||
if ($value !== '') {
|
||||
$query->where('auth_type', $value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user