收口后台表单确认事件

This commit is contained in:
2026-04-25 13:31:18 +08:00
parent 90d2fcc14a
commit 4352919889
10 changed files with 38 additions and 8 deletions
@@ -94,7 +94,7 @@
</button>
@if (Auth::id() === 1)
<form action="{{ route('admin.departments.destroy', $dept->id) }}" method="POST"
onsubmit="return confirm('确定删除部门【{{ $dept->name }}】?该操作会同时删除该部门所有职务(有在职人员时拒绝删除)。')">
data-admin-confirm="确定删除部门【{{ $dept->name }}】?该操作会同时删除该部门所有职务(有在职人员时拒绝删除)。">
@csrf @method('DELETE')
<button type="submit"
class="text-xs bg-red-50 text-red-600 font-bold px-3 py-1.5 rounded hover:bg-red-600 hover:text-white transition">