202508031042

分頁加入 分店記錄
import-datas 點沒有做用
This commit is contained in:
allen.yan 2025-08-03 10:43:55 +08:00
parent 5d8c436f86
commit 948d21667b
4 changed files with 5 additions and 6 deletions

View File

@ -18,7 +18,6 @@ use PowerComponents\LivewirePowerGrid\PowerGridComponent;
use PowerComponents\LivewirePowerGrid\Traits\WithExport; use PowerComponents\LivewirePowerGrid\Traits\WithExport;
use PowerComponents\LivewirePowerGrid\Components\SetUp\Exportable; use PowerComponents\LivewirePowerGrid\Components\SetUp\Exportable;
use Livewire\Attributes\On; use Livewire\Attributes\On;
use Livewire\Attributes\Url;
use WireUi\Traits\WireUiActions; use WireUi\Traits\WireUiActions;
final class RoomTable extends PowerGridComponent final class RoomTable extends PowerGridComponent
@ -27,7 +26,7 @@ final class RoomTable extends PowerGridComponent
public string $tableName = 'room-table'; public string $tableName = 'room-table';
public bool $canDownload; public bool $canDownload;
public bool $canDelect; public bool $canDelect;
#[Url]
public ?int $selectedBranchId = null; public ?int $selectedBranchId = null;
public ?string $external_ip= ""; public ?string $external_ip= "";
@ -58,7 +57,7 @@ final class RoomTable extends PowerGridComponent
->showToggleColumns(); ->showToggleColumns();
$header->includeViewOnTop('livewire.headers.room'); $header->includeViewOnTop('livewire.headers.room');
$actions[]=$header; $actions[]=$header;
$actions[]=PowerGrid::footer()->showPerPage()->showRecordCount(); $actions[]=PowerGrid::footer()->pageName('selectedBranchId')->showPerPage()->showRecordCount();
return $actions; return $actions;
} }
public function header(): array public function header(): array

View File

@ -7,7 +7,7 @@
/> />
<x-wireui:button <x-wireui:button
wire:click="$dispatchTo('forms.import-datas.artist','openModal')" wire:click="$dispatchTo('import-datas.artist','openModal')"
icon="document-plus" icon="document-plus"
label="{{ __('artists.ImportData') }}" label="{{ __('artists.ImportData') }}"
class="bg-green-600 text-white" class="bg-green-600 text-white"

View File

@ -7,7 +7,7 @@
/> />
<x-wireui:button <x-wireui:button
wire:click="$dispatchTo('forms.import-datas.branch','openModal')" wire:click="$dispatchTo('import-datas.branch','openModal')"
icon="document-plus" icon="document-plus"
label="{{ __('branches.ImportData') }}" label="{{ __('branches.ImportData') }}"
class="bg-green-600 text-white" class="bg-green-600 text-white"

View File

@ -7,7 +7,7 @@
/> />
<x-wireui:button <x-wireui:button
wire:click="$dispatchTo('forms.import-datas.song','openModal')" wire:click="$dispatchTo('import-datas.song','openModal')"
icon="document-plus" icon="document-plus"
label="{{ __('songs.ImportData') }}" label="{{ __('songs.ImportData') }}"
class="bg-green-600 text-white" class="bg-green-600 text-white"