- 创建 SopTemplateResource 资源类 - 实现模板列表、创建、编辑、查看页面 - 添加步骤编辑器(Repeater 组件) - 支持富文本编辑步骤内容 - 支持拖拽排序步骤 - 添加状态筛选和分类筛选 - 显示步骤数统计
23 lines
573 B
PHP
23 lines
573 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\SopTemplateResource\Pages;
|
|
|
|
use App\Filament\Actions\ExportSopTemplateAction;
|
|
use App\Filament\Actions\ImportSopTemplateAction;
|
|
use App\Filament\Resources\SopTemplateResource;
|
|
use Filament\Actions;
|
|
use Filament\Resources\Pages\ListRecords;
|
|
|
|
class ListSopTemplates extends ListRecords
|
|
{
|
|
protected static string $resource = SopTemplateResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
ImportSopTemplateAction::make(),
|
|
Actions\CreateAction::make(),
|
|
];
|
|
}
|
|
}
|