改字樣
移除 包廂開關帳 20250729
This commit is contained in:
parent
22b66d5db1
commit
b0818b3c8f
@ -17,7 +17,6 @@ class RoomDetailModal extends Component
|
||||
protected $listeners = [
|
||||
'openModal', 'closeModal',
|
||||
'startNotify', 'stopNotify', 'fireNotify',
|
||||
'openAccountNotify','closeAccountNotify'
|
||||
];
|
||||
|
||||
public $room_name;
|
||||
@ -54,17 +53,6 @@ class RoomDetailModal extends Component
|
||||
$this->send($data);
|
||||
}
|
||||
|
||||
public function openAccountNotify()
|
||||
{
|
||||
$data = $this->buildNotifyData('active', now(), null);
|
||||
$this->send($data);
|
||||
}
|
||||
|
||||
public function closeAccountNotify()
|
||||
{
|
||||
$data = $this->buildNotifyData('closed', now(), null);
|
||||
$this->send($data);
|
||||
}
|
||||
protected function buildNotifyData(string $command, $startedAt = null, $endedAt = null): array
|
||||
{
|
||||
|
||||
|
@ -10,9 +10,9 @@ return [
|
||||
'user.status.Suspended' => '停權',
|
||||
'user.status.Deleting' => '刪除中',
|
||||
|
||||
'room.status.Active' => '已占用',
|
||||
'room.status.Closed' => '可用',
|
||||
'room.status.Active' => '啟用中',
|
||||
'room.status.Closed' => '待機',
|
||||
'room.status.Fire' => '火災',
|
||||
'room.status.Maintain' => '維護',
|
||||
'room.status.Maintain' => '維修',
|
||||
'room.status.Error' => '異常',
|
||||
];
|
@ -16,14 +16,9 @@
|
||||
{{ $room_name ?? '未選擇' }}包廂設定
|
||||
</x-slot>
|
||||
<div class="grid grid-cols-3 gap-4 mb-4">
|
||||
<x-wireui:button wire:click="startNotify" >開機</x-wireui:button>
|
||||
<x-wireui:button wire:click="startNotify">維修</x-wireui:button>
|
||||
<x-wireui:button wire:click="stopNotify" >關機</x-wireui:button>
|
||||
<x-wireui:button wire:click="fireNotify" >火災</x-wireui:button>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 gap-4 mb-4">
|
||||
<x-wireui:button wire:click="openAccountNotify" >包廂開帳</x-wireui:button>
|
||||
<x-wireui:button wire:click="closeAccountNotify" >包廂關帳</x-wireui:button>
|
||||
</div>
|
||||
|
||||
</x-wireui:card>
|
||||
</x-wireui:modal>
|
Loading…
x
Reference in New Issue
Block a user