From 91021021d93fa3c088b8e8e217c6d0c1b78b49f1 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Mon, 18 May 2026 17:01:17 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=20=E4=BF=AE=E5=BE=A9=E5=88=AA=E9=99=A4?= =?UTF-8?q?=E6=A9=9F=E5=8F=B0=E5=BB=A3=E5=91=8A=E8=A8=AD=E7=BD=AE=E6=99=82?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E8=87=AA=E8=A8=82=E7=A2=BA=E8=AA=8D=E8=A6=96?= =?UTF-8?q?=E7=AA=97=E8=88=87=E9=9D=9E=E5=90=8C=E6=AD=A5=E8=BC=89=E5=85=A5?= =?UTF-8?q?=E5=9C=96=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 將原本使用瀏覽器原生 confirm 的解除綁定功能,重構為自訂極奢風確認彈窗 x-confirm-modal。 2. 擴充通用確認彈窗 confirm-modal.blade.php 支援 isSubmittingVar 屬性,在非同步提交中顯示按鈕 Spinner 並禁用操作。 3. 優化新增廣告設置彈窗 assign-modal.blade.php 支援 isSubmitting 狀態,點擊後按鈕出現 Spinner 並鎖定彈窗。 4. 整合 AJAX 載入狀態,在 fetchMachineAds() 載入資料期間顯示卡片層級雙環 x-luxury-spinner 載入圖示。 5. 補齊繁體中文、英文與日文的解除綁定多語系翻譯。 --- lang/en.json | 1 + lang/ja.json | 1 + lang/zh_TW.json | 1 + resources/views/admin/ads/index.blade.php | 52 +++++++++++++++++-- .../admin/ads/partials/assign-modal.blade.php | 14 +++-- .../views/components/confirm-modal.blade.php | 15 ++++-- 6 files changed, 72 insertions(+), 12 deletions(-) diff --git a/lang/en.json b/lang/en.json index 834e5c8..f1a5940 100644 --- a/lang/en.json +++ b/lang/en.json @@ -1301,6 +1301,7 @@ "Remote dispense failed for slot :slot": "Remote dispense failed for slot :slot", "Remote dispense successful for slot :slot": "Remote dispense successful for slot :slot", "Removal": "Removal", + "Remove Assignment Confirmation": "Remove Assignment Confirmation", "Repair": "Repair", "Replenish": "Replenish", "Replenishment": "Replenishment", diff --git a/lang/ja.json b/lang/ja.json index 61dd5ba..d2af2c5 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -1301,6 +1301,7 @@ "Remote dispense failed for slot :slot": "スロット :slot の遠隔出庫に失敗しました", "Remote dispense successful for slot :slot": "スロット :slot の遠隔出庫に成功しました", "Removal": "撤去", + "Remove Assignment Confirmation": "割り当て解除の確認", "Repair": "修理", "Replenish": "補充", "Replenishment": "補充", diff --git a/lang/zh_TW.json b/lang/zh_TW.json index 9dadedc..b82bea4 100644 --- a/lang/zh_TW.json +++ b/lang/zh_TW.json @@ -1320,6 +1320,7 @@ "Remote dispense failed for slot :slot": "貨道 :slot 遠端出貨失敗", "Remote dispense successful for slot :slot": "貨道 :slot 遠端出貨成功", "Removal": "撤機", + "Remove Assignment Confirmation": "確認解除綁定", "Repair": "維修", "Replenish": "補貨", "Replenishment": "補貨", diff --git a/resources/views/admin/ads/index.blade.php b/resources/views/admin/ads/index.blade.php index 49b1c47..95c834d 100644 --- a/resources/views/admin/ads/index.blade.php +++ b/resources/views/admin/ads/index.blade.php @@ -760,6 +760,17 @@ $baseRoute = 'admin.data-config.advertisements'; + + diff --git a/resources/views/components/confirm-modal.blade.php b/resources/views/components/confirm-modal.blade.php index e864009..68276f9 100644 --- a/resources/views/components/confirm-modal.blade.php +++ b/resources/views/components/confirm-modal.blade.php @@ -7,6 +7,7 @@ 'confirmText' => __('Confirm'), 'cancelText' => __('Cancel'), 'confirmColor' => 'sky', // sky, rose, amber, emerald + 'isSubmittingVar' => null, // Optional Alpine variable for submitting state ]) @php @@ -77,11 +78,19 @@