- SystemSettingResource: Filament 资源类 - 使用 Tabs 组件按 group 分组显示配置 - 使用 KeyValue 组件编辑 JSON 配置 - 支持筛选、排序、搜索功能 - 配置彩色徽章显示分组 - ManageSystemSettings: 系统设置管理页面 - 按配置类型分组(嵌入模型/分块参数/系统配置/搜索配置) - 完整的表单验证规则 - 保存和重置功能 - 集成 SystemSettingService - 创建对应的 Blade 视图和页面类
21 lines
538 B
PHP
21 lines
538 B
PHP
<x-filament-panels::page>
|
|
<form wire:submit="save">
|
|
{{ $this->form }}
|
|
|
|
<div class="mt-6 flex gap-3">
|
|
<x-filament::button type="submit" size="lg">
|
|
保存设置
|
|
</x-filament::button>
|
|
|
|
<x-filament::button
|
|
type="button"
|
|
color="gray"
|
|
size="lg"
|
|
wire:click="resetForm"
|
|
>
|
|
重置
|
|
</x-filament::button>
|
|
</div>
|
|
</form>
|
|
</x-filament-panels::page>
|