KnowledgeGraphExplorer.php 958 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Filament\Pages\Integrations;
  3. use BackedEnum;
  4. use Filament\Pages\Page;
  5. use UnitEnum;
  6. use Livewire\Attributes\Computed;
  7. use Illuminate\Http\Request;
  8. class KnowledgeGraphExplorer extends Page
  9. {
  10. protected static ?string $title = '知识图谱浏览';
  11. protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-globe-alt';
  12. protected static ?string $navigationLabel = '知识图谱浏览';
  13. protected static string|UnitEnum|null $navigationGroup = '整合视图';
  14. protected static ?int $navigationSort = 10;
  15. protected string $view = 'filament.pages.integrations.knowledge-graph-explorer';
  16. public ?string $selectedKpCode = null;
  17. public function mount(Request $request): void
  18. {
  19. $this->selectedKpCode = $request->query('kp_code');
  20. }
  21. public function getBreadcrumbs(): array
  22. {
  23. return [
  24. 'knowledge-graph-explorer' => '知识图谱浏览',
  25. ];
  26. }
  27. }