From 8f225ecea9bd037945315871adc221a678c326ff Mon Sep 17 00:00:00 2001
From: "DESKTOP-JKIE562\\PC" <1013397054@qq.com>
Date: Tue, 24 Nov 2026 14:38:20 +0800
Subject: [PATCH] =?UTF-8?q?feat(feat):=201.=E5=B0=86=E8=81=8C=E7=A7=B0?=
=?UTF-8?q?=E8=A7=92=E8=89=B2=E4=B8=AD=E7=9A=84=E2=80=9C=E4=BB=8EOA?=
=?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BC=81=E5=BE=AE=E8=B4=A6=E5=8F=B7=E2=80=9D?=
=?UTF-8?q?=E5=8F=8A=E8=AE=BE=E7=BD=AE=E8=A7=92=E8=89=B2=E3=80=81=E2=80=9C?=
=?UTF-8?q?=E5=91=98=E5=B7=A5=E4=B8=8E=E9=83=A8=E9=97=A8=E5=9C=A8=E3=80=8C?=
=?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84=E3=80=8D=E4=B8=AD=E7=BB=9F?=
=?UTF-8?q?=E4=B8=80=E7=BB=B4=E6=8A=A4,=E6=AD=A4=E5=A4=84=E4=BB=85?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=81=8C=E7=A7=B0=E8=A7=92=E8=89=B2=E2=80=9D?=
=?UTF-8?q?=E8=BF=81=E7=A7=BB=E5=88=B0=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=AD=EF=BC=8C=202.=E5=B9=B3=E5=8F=B0?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=88=90=E5=91=98=E8=87=AA=E5=8A=A8=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=88=B0=E2=80=9C=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84?=
=?UTF-8?q?=E2=80=9D=E9=A1=B5=E9=9D=A2=E8=87=AA=E5=8A=A8=E5=8C=B9=E9=85=8D?=
=?UTF-8?q?=E5=AF=B9=E5=BA=94=E9=83=A8=E9=97=A8;=203.=E5=9C=A8=E2=80=9C?=
=?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84=E2=80=9D=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=8F=AF=E7=9B=B4=E6=8E=A5=E8=AE=BE=E7=BD=AE=E8=A7=92=E8=89=B2?=
=?UTF-8?q?=204.=E2=80=9C=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84=E2=80=9D?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=81=8C=E7=A7=B0=E6=8C=89=E5=90=8D=E7=A7=B0?=
=?UTF-8?q?=E3=80=81=E5=B7=A5=E5=8F=B7=E3=80=81=E9=83=A8=E9=97=A8=E6=9F=A5?=
=?UTF-8?q?=E6=89=BE=E5=91=98=E5=B7=A5=205.=E6=96=B0=E5=A2=9E=E6=88=90?=
=?UTF-8?q?=E5=91=98=E9=BB=98=E8=AE=A4=E6=94=BE=E5=9C=A8=E6=9C=80=E4=B8=8A?=
=?UTF-8?q?=E9=9D=A2=E6=8C=89=E6=97=B6=E9=97=B4=E5=80=92=E5=BA=8F=E6=8E=92?=
=?UTF-8?q?=E5=88=97=206.=E6=89=80=E6=9C=89=E7=99=BB=E5=BD=95=E5=B9=B3?=
=?UTF-8?q?=E5=8F=B0=E7=9A=84=E7=94=A8=E6=88=B7=E7=9B=B4=E6=8E=A5=E9=BB=98?=
=?UTF-8?q?=E8=AE=A4=E6=89=93=E5=BC=80AI=E5=AF=B9=E8=AF=9D=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=207.=E9=A1=B5=E9=9D=A23=E3=80=814=E4=B8=AD=E7=9A=84?=
=?UTF-8?q?=E2=80=9DAIDO=E2=80=9C=E6=94=B9=E4=B8=BA=E2=80=9D=E5=92=8C?=
=?UTF-8?q?=E4=BF=A1=E6=99=BA=E6=B1=87=E5=AD=A6=E9=99=A2=E2=80=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/index.html | 2 +-
frontend/src/App.vue | 4 +-
frontend/src/api/org-center/index.ts | 22 ++
frontend/src/api/training/index.ts | 2 +-
frontend/src/components/css/aido-logo.less | 16 +-
frontend/src/components/menu.vue | 22 +-
frontend/src/i18n/locales/en-US.ts | 2 +-
frontend/src/i18n/locales/ja-JP.ts | 2 +-
frontend/src/i18n/locales/ko-KR.ts | 2 +-
frontend/src/i18n/locales/ru-RU.ts | 2 +-
frontend/src/i18n/locales/zh-CN.ts | 2 +-
frontend/src/i18n/locales/zh-TW.ts | 2 +-
frontend/src/router/index.ts | 24 +-
frontend/src/views/auth/Login.vue | 10 +-
frontend/src/views/org-center/OrgCenter.vue | 356 ++++++++++++++++--
frontend/src/views/training/Training.vue | 8 +-
.../views/training/components/MemberPanel.vue | 323 ----------------
internal/application/repository/orgcenter.go | 64 +++-
internal/application/service/orgcenter.go | 61 +++
internal/application/service/tenant_member.go | 25 ++
.../application/service/tenant_member_test.go | 6 +-
internal/router/router.go | 2 +-
internal/router/routes_org.go | 19 +-
internal/types/interfaces/orgcenter.go | 8 +
.../000161_org_roster_backfill.down.sql | 6 +
.../000161_org_roster_backfill.up.sql | 58 +++
26 files changed, 644 insertions(+), 406 deletions(-)
delete mode 100644 frontend/src/views/training/components/MemberPanel.vue
create mode 100644 migrations/versioned/000161_org_roster_backfill.down.sql
create mode 100644 migrations/versioned/000161_org_roster_backfill.up.sql
diff --git a/frontend/index.html b/frontend/index.html
index b5bd306..c590964 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -1,7 +1,7 @@
- AIDO
+ 和信智汇学院
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 10d9505..b6b5532 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -119,12 +119,12 @@ const persistOIDCLoginResponse = async (response: any) => {
if (result.ok) MessagePlugin.success(t('inviteRegister.joined'))
else MessagePlugin.warning(t('inviteRegister.invalidBody'))
// 会话已有效,无论 token 是否兑换成功都进入应用。
- router.replace('/platform/knowledge-bases')
+ router.replace('/platform/creatChat')
return
}
await nextTick()
- router.replace(authStore.hasValidTenant ? '/platform/knowledge-bases' : '/onboarding/workspace')
+ router.replace(authStore.hasValidTenant ? '/platform/creatChat' : '/onboarding/workspace')
}
const handleGlobalOIDCCallback = async () => {
diff --git a/frontend/src/api/org-center/index.ts b/frontend/src/api/org-center/index.ts
index ad5fd82..4156aeb 100644
--- a/frontend/src/api/org-center/index.ts
+++ b/frontend/src/api/org-center/index.ts
@@ -1,4 +1,5 @@
import { get, post, put, del } from '@/utils/request'
+import type { WecomSyncSummary } from '@/api/training'
// 组织中心(租户级共享组织架构)API 封装,对应后端 /api/v1/org/*(routes_org.go)。
// 部门/员工档案归租户所有;业务模块(企业培训/图纸标注/物料检核...)通过
@@ -115,6 +116,27 @@ export interface OrgUpdateEmployee {
export const updateEmployee = (id: string, payload: OrgUpdateEmployee) =>
put<{ success: boolean; data: OrgEmployee }>(`${base}/employees/${enc(id)}`, payload)
+// ---- 职称角色 / 企微账号(自培训域迁入组织架构页;/org 域别名路由复用培训
+// handler,角色绑定仍写 module_key='training';权限细控 HR/经理在 handler 内) ----
+
+/** 设置员工职称角色(学员为全员隐式角色,由后端保留,前端保存时一并带上)。 */
+export const updateOrgEmployeeRoles = (id: string, roles: string[]) =>
+ put<{ success: boolean; data: OrgEmployee }>(`${base}/employees/${enc(id)}/roles`, { roles })
+
+/** 维护员工企微账号(培训提醒推送目标;留空即解绑)。 */
+export const updateOrgEmployeeWecomUserid = (id: string, wecomUserid: string) =>
+ put<{ success: boolean; data: OrgEmployee }>(`${base}/employees/${enc(id)}/wecom-userid`, {
+ wecom_userid: wecomUserid,
+ })
+
+/** 从 OA 目录按工号批量拉取企微 userid(预览→写入两段式,预览只读)。 */
+export const previewOrgWecomSync = () =>
+ post<{ success: boolean; data: WecomSyncSummary }>(`${base}/employees/wecom-userid-sync/preview`)
+
+/** OA 同步写入(无冲突时才落库,返回写入统计)。 */
+export const applyOrgWecomSync = () =>
+ post<{ success: boolean; data: WecomSyncSummary }>(`${base}/employees/wecom-userid-sync/apply`)
+
// ---- 模块角色绑定 ----
export const listModuleMembers = (moduleKey: OrgModuleKey) =>
diff --git a/frontend/src/api/training/index.ts b/frontend/src/api/training/index.ts
index 3417307..19e5d83 100644
--- a/frontend/src/api/training/index.ts
+++ b/frontend/src/api/training/index.ts
@@ -1312,7 +1312,7 @@ export const NOTIFY_TEXT_TEMPLATES_RULE_KEY = 'notify_text_templates'
export const DEFAULT_DEMAND_COLLECT_TITLE = '【培训需求收集】{year}年度培训计划收集'
export const DEFAULT_DEMAND_COLLECT_CONTENT =
'请各部门于 {year} 年 1 月 31 日前提报 {year} 年度培训需求:' +
- '可点击消息中的「教育训练需求表模板」链接直接下载批量填写后导入,或登录 AIDO → 企业培训 → 培训计划 → 年度需求收集在线逐条提报。'
+ '可点击消息中的「教育训练需求表模板」链接直接下载批量填写后导入,或登录和信智汇学院 → 企业培训 → 培训计划 → 年度需求收集在线逐条提报。'
/** 读取年培训计划收集推送文案模板(配置中心 notify_text_templates;字段为空/
* 拉取失败回落内置默认,与后端 parseNotifyTextTemplates 同口径)。 */
diff --git a/frontend/src/components/css/aido-logo.less b/frontend/src/components/css/aido-logo.less
index a893282..60eb9b6 100644
--- a/frontend/src/components/css/aido-logo.less
+++ b/frontend/src/components/css/aido-logo.less
@@ -1,5 +1,7 @@
-// ===== AIDO 文字 Logo:渐变流光 + 呼吸辉光 + 脉冲光点 =====
-// 侧边栏(menu.vue)与登录页(Login.vue)共用,由 main.ts 全局引入
+// ===== 和信智汇学院 文字 Logo:渐变流光 + 呼吸辉光 + 脉冲光点 =====
+// 侧边栏(menu.vue)与登录页(Login.vue)共用,由 main.ts 全局引入。
+// 品牌名由「AIDO」更名而来:中文六个字,字号/字距相应收窄以适配
+// 260px 展开侧栏(logo 与搜索/折叠图标同行)与登录页左上角。
.aido-logo {
position: relative;
display: inline-flex;
@@ -16,12 +18,12 @@
}
&__text {
- font-family: 'Trebuchet MS', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
- font-size: 27px;
+ font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
+ font-size: 19px;
line-height: 1.15;
- font-weight: 800;
- font-style: italic;
- letter-spacing: 2.5px;
+ font-weight: 700;
+ white-space: nowrap;
+ letter-spacing: 1px;
background-image:
linear-gradient(110deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 58%),
linear-gradient(95deg, #07c05f 0%, #0bbf9a 35%, #10b4c8 65%, #3b82f6 100%);
diff --git a/frontend/src/components/menu.vue b/frontend/src/components/menu.vue
index f294656..7f77e01 100644
--- a/frontend/src/components/menu.vue
+++ b/frontend/src/components/menu.vue
@@ -5,9 +5,9 @@
-
-
- AIDO
+
+
+ 和信智汇学院
Lite
@@ -605,12 +605,12 @@ const moreToolItems = computed