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
@@ -27,6 +27,7 @@ function isLiteSpaDefaultEntry(to: RouteLocationNormalized) {
|
||||
to.path === '/' ||
|
||||
to.path === '/platform' ||
|
||||
to.path === '/platform/knowledge-bases' ||
|
||||
to.path === '/platform/creatChat' ||
|
||||
to.name === 'knowledgeBaseList'
|
||||
)
|
||||
}
|
||||
@@ -46,7 +47,8 @@ const router = createRouter({
|
||||
routes: [
|
||||
{
|
||||
path: "/",
|
||||
redirect: "/platform/knowledge-bases",
|
||||
// 登录用户默认打开 AI 对话页(首页口径,与登录成功跳转一致)
|
||||
redirect: "/platform/creatChat",
|
||||
},
|
||||
{
|
||||
path: "/login",
|
||||
@@ -94,7 +96,7 @@ const router = createRouter({
|
||||
{
|
||||
path: "/platform",
|
||||
name: "Platform",
|
||||
redirect: "/platform/knowledge-bases",
|
||||
redirect: "/platform/creatChat",
|
||||
component: () => import("../views/platform/index.vue"),
|
||||
meta: { requiresInit: true, requiresAuth: true },
|
||||
children: [
|
||||
@@ -156,12 +158,18 @@ const router = createRouter({
|
||||
meta: { requiresInit: true, requiresAuth: true }
|
||||
},
|
||||
{
|
||||
// 企业培训:子页(工作台/培训计划/培训课程/培训签到/学习考试/职称角色/配置中心)
|
||||
// 企业培训:子页(工作台/培训计划/培训课程/培训签到/学习考试/配置中心)
|
||||
// 收纳为侧栏「企业培训」分组的子项,tab 取自路径参数,缺省重定向到工作台。
|
||||
path: "training",
|
||||
name: "training",
|
||||
redirect: "/platform/training/dashboard"
|
||||
},
|
||||
{
|
||||
// 职称角色页已并入「组织架构」页维护(员工/角色/企微账号一处维护),
|
||||
// 旧链接与书签兜底重定向。
|
||||
path: "training/members",
|
||||
redirect: "/platform/org-center"
|
||||
},
|
||||
{
|
||||
path: "training/:tab",
|
||||
name: "trainingTab",
|
||||
@@ -368,7 +376,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
}
|
||||
if (authStore.hasValidTenant) {
|
||||
next('/platform/knowledge-bases')
|
||||
next('/platform/creatChat')
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
@@ -377,9 +385,9 @@ router.beforeEach(async (to, from, next) => {
|
||||
|
||||
// 如果访问的是登录页面或初始化页面,直接放行
|
||||
if (to.meta.requiresAuth === false || to.meta.requiresInit === false) {
|
||||
// 如果已登录用户访问登录页面,重定向到知识库列表页面
|
||||
// 如果已登录用户访问登录页面,重定向到首页(AI 对话)
|
||||
if (to.path === '/login' && authStore.isLoggedIn) {
|
||||
next(authStore.hasValidTenant ? '/platform/knowledge-bases' : '/onboarding/workspace')
|
||||
next(authStore.hasValidTenant ? '/platform/creatChat' : '/onboarding/workspace')
|
||||
return
|
||||
}
|
||||
next()
|
||||
@@ -431,7 +439,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
const requiredCapability = to.meta.requiredCapability as DeploymentCapabilityKey | undefined
|
||||
if (requiredCapability && !deploymentCapabilities.isSupported(requiredCapability)) {
|
||||
MessagePlugin.warning(i18n.global.t('settings.capabilityUnavailable'))
|
||||
next('/platform/knowledge-bases')
|
||||
next('/platform/creatChat')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -441,7 +449,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
// the bounce. This is UI-only; the server enforces the real check.
|
||||
if (to.meta.requiresSystemAdmin === true) {
|
||||
if (!authStore.isSystemAdmin) {
|
||||
next('/platform/knowledge-bases')
|
||||
next('/platform/creatChat')
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user