update:重新渲染system页面
This commit is contained in:
45
catch/system/tables/SensitiveWord.php
Normal file
45
catch/system/tables/SensitiveWord.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
namespace catchAdmin\system\tables;
|
||||
|
||||
use catchAdmin\system\tables\forms\Factory;
|
||||
use catcher\CatchTable;
|
||||
use catcher\library\table\Actions;
|
||||
use catcher\library\table\HeaderItem;
|
||||
use catcher\library\table\Search;
|
||||
|
||||
class SensitiveWord extends CatchTable
|
||||
{
|
||||
protected function form()
|
||||
{
|
||||
// TODO: Implement form() method.
|
||||
return Factory::create('SensitiveWord');
|
||||
}
|
||||
|
||||
protected function table()
|
||||
{
|
||||
// TODO: Implement table() method.
|
||||
return $this->getTable('SensitiveWord')
|
||||
->header([
|
||||
HeaderItem::label()->selection(),
|
||||
HeaderItem::label('编号')->prop('id'),
|
||||
HeaderItem::label('敏感词')->prop('word'),
|
||||
HeaderItem::label('创建人')->prop('creator'),
|
||||
HeaderItem::label('创建时间')->prop('created_at'),
|
||||
HeaderItem::label('更新时间')->prop('updated_at'),
|
||||
HeaderItem::label('操作')->actions([
|
||||
Actions::update(),
|
||||
Actions::delete()
|
||||
])
|
||||
])
|
||||
->withActions([
|
||||
Actions::create()
|
||||
])
|
||||
->withDialogWidth('35%')
|
||||
->withApiRoute('sensitive/word')
|
||||
->withSearch([
|
||||
Search::text('word', '输入敏感词')
|
||||
])
|
||||
->selectionChange()
|
||||
->render();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user