Merge branch 'dev' into runny827

feat(training): 新增精益培训视频与周任务管理

# Conflicts:
#	backend/app/models/__init__.py
This commit is contained in:
runny committed 2026-09-08 18:30:09 +08:00
1 parent 85d27e9ffa
commit 91b7233872
812 files changed
+73763 -18908

No files matched your search

@@ -11,7 +11,7 @@ import { useRoute, useRouter } from 'vue-router';
import {
LayoutDashboard, UserPlus, UserCog, Building, Bot, FileText,
Settings2, Megaphone, MessageCircleQuestion, Link2, Users, ShieldCheck, BarChart2, AppWindow,
ScrollText, ExternalLink, PackageSearch, GraduationCap,
ScrollText, ExternalLink, PackageSearch, GraduationCap, Cable,
} from 'lucide-vue-next';
import type { Component } from 'vue';
import { config } from '@/config';
@@ -44,6 +44,7 @@ const iconMap: Record<AdminModuleId, Component> = {
platform_apps: AppWindow,
procurement_contract: ScrollText,
training_config: GraduationCap,
integration_connector: Cable,
requests: ShieldCheck,
reports: BarChart2,
shipping_inventory: PackageSearch,
@@ -129,6 +130,8 @@ watch(
isShippingActive,
(active) => {
if (!active) return;
// 进入任一货代子路由时自动展开父菜单,保证当前子页可见。
navStore.shippingMenuExpanded = true;
let matched = false;
for (const groupKey of shippingGroups.value) {
const groupHasActiveSub = SHIPPING_CONFIG_SUB_MODULE_METAS.some(
@@ -210,14 +213,14 @@ watch(
type="button"
class="admin-nav-btn group justify-between"
:class="{ 'admin-nav-btn--active': isShippingActive }"
@click="navigateModule('AdminShippingInventory')"
@click="navStore.shippingMenuExpanded = !navStore.shippingMenuExpanded"
>
<div class="flex items-center gap-3">
<PackageSearch class="w-5 h-5 flex-shrink-0" :class="isShippingActive ? 'text-brand-600' : 'text-muted'" />
<span :class="navStore.sidebarCollapsed ? 'md:hidden' : ''">{{ t('admin.nav.shippingConfig') }}</span>
</div>
</button>
<div v-if="isShippingActive && !navStore.sidebarCollapsed" class="pl-4 space-y-1 mt-1 border-l-2 border-subtle ml-6">
<div v-if="navStore.shippingMenuExpanded && !navStore.sidebarCollapsed" class="pl-4 space-y-1 mt-1 border-l-2 border-subtle ml-6">
<div v-for="groupKey in shippingGroups" :key="groupKey" class="flex flex-col">
<button
type="button"