feat(training): 完成员工培训闭环与管理配置

This commit is contained in:
runny committed 2026-07-06 01:52:55 +08:00
1 parent 91758ef2b4
commit 95f3906779
37 files changed
+1766 -249

No files matched your search

@@ -1,4 +1,4 @@
/**
/**
* features/admin/modules/users/UsersPage.vue
* 用途:用户管理独立页面(服务端筛选分页、批量操作)。
* 依赖:useUsersAdmin、PaginationBar、用户相关 Modal。
@@ -189,10 +189,19 @@ onMounted(() => {
<td class="px-6 py-4">
<span
class="px-2.5 py-0.5 rounded-full text-xs font-medium border"
:class="user.role === 'admin' ? 'bg-purple-50 text-purple-700 border-purple-100' : 'bg-blue-50 text-blue-700 border-blue-100'"
:class="user.role === 'admin'
? 'bg-purple-50 text-purple-700 border-purple-100'
: user.role === 'hr'
? 'bg-emerald-50 text-emerald-700 border-emerald-100'
: 'bg-blue-50 text-blue-700 border-blue-100'"
>
{{ t('admin.role.' + user.role) }}
</span>
<div v-if="user.feature_permissions?.training_hr_manage" class="mt-2">
<span class="inline-flex rounded-full border border-brand-100 bg-brand-50 px-2.5 py-0.5 text-xs font-medium text-brand-700">
{{ t('admin.user.fields.trainingHrManage') }}
</span>
</div>
</td>
<td class="px-6 py-4 text-right">
<button