单次上限
单日上限 |
任命权 |
+
聊天室权限 |
@php $superLvl = (int) \App\Models\Sysparam::getValue('superlevel', '100'); @endphp
@if (Auth::user()->user_level >= $superLvl)
操作 |
@@ -249,6 +254,34 @@
无
@endif
+
+ @if (! empty($pos->permissions))
+ @php
+ $permissionSummaryLabels = collect($pos->permissions)
+ ->map(fn ($permissionCode) => $permissionLabels[$permissionCode] ?? $permissionCode)
+ ->values();
+ $permissionPreview = $permissionSummaryLabels->take(2)->implode('、');
+ $permissionTitle = $permissionSummaryLabels->implode(' / ');
+ @endphp
+
+
+ 已开通
+
+ {{ $permissionSummaryLabels->count() }} 项
+
+
+
+ {{ $permissionPreview }}
+ @if ($permissionSummaryLabels->count() > 2)
+ 等 {{ $permissionSummaryLabels->count() }} 项
+ @endif
+
+
+ @else
+ 无
+ @endif
+ |
@php $superLvl = (int) \App\Models\Sysparam::getValue('superlevel', '100'); @endphp
@if (Auth::user()->user_level >= $superLvl)
@@ -266,7 +299,7 @@
recipient_daily_limit: {{ $pos->recipient_daily_limit ?? 'null' }},
sort_order: {{ $pos->sort_order }},
requestUrl: '{{ route('admin.positions.update', $pos->id) }}'
- }, {{ json_encode($appointableIds) }})"
+ }, {{ json_encode($appointableIds) }}, {{ json_encode($pos->permissions ?? []) }})"
class="text-xs bg-indigo-50 text-indigo-600 font-bold px-2 py-1 rounded hover:bg-indigo-600 hover:text-white transition">
编辑
@@ -286,7 +319,8 @@
@empty
|
- | 该部门暂无职务 |
+ 该部门暂无职务 |
@endforelse
@@ -391,6 +425,37 @@
+ {{-- 聊天室权限多选 --}}
+