delete:删除冗余
This commit is contained in:
@@ -25,8 +25,8 @@ class Department extends CatchTable
|
||||
HeaderItem::label('状态')->prop('status')->withSwitchComponent(),
|
||||
HeaderItem::label('创建时间')->prop('created_at'),
|
||||
HeaderItem::label('操作')->width(260)->actions([
|
||||
Actions::update(''),
|
||||
Actions::delete(''),
|
||||
Actions::update(),
|
||||
Actions::delete(),
|
||||
])
|
||||
])->withApiRoute('departments')->withActions([
|
||||
Actions::create()
|
||||
|
@@ -20,8 +20,8 @@ class Job extends CatchTable
|
||||
HeaderItem::label('状态')->prop('status')->withSwitchComponent(),
|
||||
HeaderItem::label('创建时间')->prop('created_at'),
|
||||
HeaderItem::label('操作')->width(250)->actions([
|
||||
Actions::update(''),
|
||||
Actions::delete('')
|
||||
Actions::update(),
|
||||
Actions::delete()
|
||||
])
|
||||
])
|
||||
->withActions([
|
||||
|
@@ -20,8 +20,8 @@ class Permission extends CatchTable
|
||||
HeaderItem::label('状态')->prop('hidden')->component('status'),
|
||||
HeaderItem::label('创建时间')->prop('created_at'),
|
||||
HeaderItem::label('操作')->width(250)->actions([
|
||||
Actions::update(''),
|
||||
Actions::delete('')
|
||||
Actions::update(),
|
||||
Actions::delete()
|
||||
])
|
||||
])
|
||||
->withActions([
|
||||
|
@@ -20,7 +20,7 @@ class Role extends CatchTable
|
||||
HeaderItem::label('角色描述')->prop('description'),
|
||||
HeaderItem::label('创建时间')->prop('created_at'),
|
||||
HeaderItem::label('操作')->width(250)->actions([
|
||||
Actions::update(''), Actions::delete('')
|
||||
Actions::update(), Actions::delete()
|
||||
])
|
||||
])
|
||||
->withSearch([
|
||||
|
@@ -20,8 +20,8 @@ class User extends CatchTable
|
||||
HeaderItem::label('邮箱')->prop('email'),
|
||||
HeaderItem::label('状态')->prop('status')->component('status', 'status'),
|
||||
HeaderItem::label('创建时间')->prop('created_at'),
|
||||
HeaderItem::label('操作')->width(150)->actions([
|
||||
Actions::update(''), Actions::delete('')
|
||||
HeaderItem::label('操作')->width(200)->actions([
|
||||
Actions::update(), Actions::delete()
|
||||
])
|
||||
])
|
||||
->withSearch([
|
||||
@@ -31,8 +31,11 @@ class User extends CatchTable
|
||||
])
|
||||
->withApiRoute('users')
|
||||
->withActions([
|
||||
Actions::create()
|
||||
Actions::create(),
|
||||
Actions::export(),
|
||||
Actions::import()
|
||||
])
|
||||
->withExportRoute('user/export')
|
||||
->withFilterParams([
|
||||
'username' => '',
|
||||
'email' => '',
|
||||
|
Reference in New Issue
Block a user