update:更新权限列表搜索

This commit is contained in:
JaguarJack 2021-04-05 12:26:12 +08:00
parent b79b226a74
commit 5b6e34f3fe
5 changed files with 11 additions and 10 deletions

View File

@ -31,8 +31,8 @@ class Department extends CatchTable
])->withApiRoute('departments')->withActions([ ])->withApiRoute('departments')->withActions([
Actions::create() Actions::create()
])->withSearch([ ])->withSearch([
Search::text('department_name', '请输入部门名称'), Search::label('部门名称')->text('department_name', '请输入部门名称'),
Search::status() Search::label('状态')->status()
])->withDialogWidth('35%') ])->withDialogWidth('35%')
->toTreeTable()->render(); ->toTreeTable()->render();
} }

View File

@ -28,7 +28,7 @@ class Job extends CatchTable
Actions::create() Actions::create()
]) ])
->withSearch([ ->withSearch([
Search::text('job_name', '岗位名称') Search::label('岗位名称')->text('job_name', '岗位名称')
]) ])
->withApiRoute('jobs') ->withApiRoute('jobs')
->selectionChange() ->selectionChange()

View File

@ -28,7 +28,8 @@ class Permission extends CatchTable
Actions::create() Actions::create()
]) ])
->withSearch([ ->withSearch([
Search::text('permission_name', '菜单名称') Search::label('菜单名称')->text('permission_name', '菜单名称')->clearable(true),
Search::hidden('actionList', 'actionList')
]) ])
->withFilterParams([ ->withFilterParams([
'permission_name' => '', 'permission_name' => '',

View File

@ -24,7 +24,7 @@ class Role extends CatchTable
]) ])
]) ])
->withSearch([ ->withSearch([
Search::text('role_name', '角色名称'), Search::label('角色名称')->text('role_name', '角色名称'),
]) ])
->withApiRoute('roles') ->withApiRoute('roles')
->withActions([ ->withActions([

View File

@ -25,15 +25,15 @@ class User extends CatchTable
]) ])
]) ])
->withSearch([ ->withSearch([
Search::text('username', '用户名'), Search::label('用户名')->text('username', '用户名'),
Search::text('email', '邮箱'), Search::label('邮箱')->text('email', '邮箱'),
Search::status() Search::label('状态')->status(),
Search::hidden('department_id', '')
]) ])
->withApiRoute('users') ->withApiRoute('users')
->withActions([ ->withActions([
Actions::create(), Actions::create(),
Actions::export(), Actions::export()
Actions::import()
]) ])
->withExportRoute('user/export') ->withExportRoute('user/export')
->withFilterParams([ ->withFilterParams([