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