1.将职称角色中的“从OA同步企微账号”及设置角色、“员工与部门在「组织架构」中统一维护,此处仅配置职称角色”迁移到组织架构页面中, 2.平台新增成员自动添加到“组织架构”页面自动匹配对应部门; 3.在“组织架构”页面可直接设置角色 4.“组织架构”页面职称按名称、工号、部门查找员工 5.新增成员默认放在最上面按时间倒序排列 6.所有登录平台的用户直接默认打开AI对话页面 7.页面3、4中的”AIDO“改为”和信智汇学院“
This commit is contained in:
1 parent
196478114c
commit
8f225ecea9
26 files changed
+644
-406
No files matched your search
@@ -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) =>
|
||||
|
||||
Reference in new issue
Block a user