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([
Actions::create()
])->withSearch([
Search::text('department_name', '请输入部门名称'),
Search::status()
Search::label('部门名称')->text('department_name', '请输入部门名称'),
Search::label('状态')->status()
])->withDialogWidth('35%')
->toTreeTable()->render();
}

View File

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

View File

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

View File

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

View File

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