From 6d73e50bffc95a87b0043baef1cb80c5f9f1c435 Mon Sep 17 00:00:00 2001 From: lkddi Date: Fri, 27 Feb 2026 15:29:25 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E5=90=8E=E5=8F=B0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=94=B9=E4=B8=BAAJAX=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=EF=BC=8C=E6=B6=88=E9=99=A4302=E9=87=8D=E5=AE=9A=E5=90=91?= =?UTF-8?q?=EF=BC=8C=E5=BC=B9=E7=AA=97=E5=86=85=E6=98=BE=E7=A4=BA=E6=88=90?= =?UTF-8?q?=E5=8A=9F/=E5=A4=B1=E8=B4=A5=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/users/index.blade.php | 70 +++++++++++++++++++-- 1 file changed, 64 insertions(+), 6 deletions(-) diff --git a/resources/views/admin/users/index.blade.php b/resources/views/admin/users/index.blade.php index 494c8bb..b714046 100644 --- a/resources/views/admin/users/index.blade.php +++ b/resources/views/admin/users/index.blade.php @@ -8,7 +8,7 @@ // 管理员级别 = 最高等级 + 1,后台编辑最高可设到管理员级别 $adminLevel = (int) \App\Models\Sysparam::getValue('maxlevel', '15') + 1; @endphp -
+
- + {{-- Toast 通知(弹窗内部) --}} + + + @csrf @method('PUT')
@@ -133,8 +140,11 @@ min="0" :max="adminLevel" :readonly="{{ Auth::id() }} !== 1 && editingUser.id !== {{ Auth::id() }}" class="w-full border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 p-2 border text-sm" - :class="{ 'bg-gray-100 cursor-not-allowed': {{ Auth::id() }} !== 1 && editingUser.id !== - {{ Auth::id() }} }" + :class="{ + 'bg-gray-100 cursor-not-allowed': {{ Auth::id() }} !== 1 && editingUser + .id !== + {{ Auth::id() }} + }" :title="{{ Auth::id() }} !== 1 && editingUser.id !== {{ Auth::id() }} ? '仅系统创始人可修改他人等级' : ''">
@@ -216,8 +226,9 @@
- +
@@ -225,4 +236,51 @@
+ + @endsection