From b0818b3c8f51efd96c8d74389cb40a45f0c100af Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Tue, 29 Jul 2025 15:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=AD=97=E6=A8=A3=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=20=E5=8C=85=E5=BB=82=E9=96=8B=E9=97=9C=E5=B8=B3=20202?= =?UTF-8?q?50729?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Livewire/Modals/RoomDetailModal.php | 12 ------------ resources/lang/zh-tw/enums.php | 6 +++--- .../livewire/modals/room-detail-modal.blade.php | 7 +------ 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/app/Livewire/Modals/RoomDetailModal.php b/app/Livewire/Modals/RoomDetailModal.php index 1f8be3f..cb73f06 100644 --- a/app/Livewire/Modals/RoomDetailModal.php +++ b/app/Livewire/Modals/RoomDetailModal.php @@ -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 { diff --git a/resources/lang/zh-tw/enums.php b/resources/lang/zh-tw/enums.php index d5c8d77..2e06d66 100644 --- a/resources/lang/zh-tw/enums.php +++ b/resources/lang/zh-tw/enums.php @@ -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' => '異常', ]; \ No newline at end of file diff --git a/resources/views/livewire/modals/room-detail-modal.blade.php b/resources/views/livewire/modals/room-detail-modal.blade.php index 2ac52f5..76ca9b4 100644 --- a/resources/views/livewire/modals/room-detail-modal.blade.php +++ b/resources/views/livewire/modals/room-detail-modal.blade.php @@ -16,14 +16,9 @@ {{ $room_name ?? '未選擇' }}包廂設定
- 開機 + 維修 關機 火災
-
- 包廂開帳 - 包廂關帳 -
- \ No newline at end of file