delete:删除冗余

This commit is contained in:
JaguarJack
2021-04-03 10:35:53 +08:00
parent 0bbb39696b
commit 6630058508
9 changed files with 14 additions and 122 deletions

View File

@@ -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()

View File

@@ -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([

View File

@@ -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([

View File

@@ -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([

View File

@@ -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' => '',