Răsfoiți Sursa

静态页面

刘洋 1 an în urmă
părinte
comite
e7acdcadc0

+ 64 - 0
src/mock/index.js

@@ -249,6 +249,70 @@ const menusList = [
     sort: 1,
     name: 'IssuesFeedback',
   },
+  {
+    id: 33,
+    title: '用户管理',
+    parentId: 0,
+    url: '/user',
+    sort: 7,
+    name: 'User',
+  },
+  {
+    id: 34,
+    title: '组织架构管理',
+    parentId: 33,
+    url: '/user/org-struct-manage',
+    sort: 1,
+    name: 'OrgStructManage',
+  },
+  {
+    id: 35,
+    title: '组织架构管理',
+    parentId: 34,
+    url: '/user/org-struct-manage/struct-manage',
+    sort: 1,
+    name: 'StructManage',
+  },
+  {
+    id: 36,
+    title: '用户权限管理',
+    parentId: 33,
+    url: '/user/auth-manage',
+    sort: 1,
+    name: 'AuthManage',
+  },
+  {
+    id: 37,
+    title: '用户管理',
+    parentId: 36,
+    url: '/user/auth-manage/user-manage',
+    sort: 1,
+    name: 'UserManage',
+  },
+  {
+    id: 38,
+    title: '角色管理',
+    parentId: 36,
+    url: '/user/auth-manage/role-manage',
+    sort: 2,
+    name: 'RoleManage',
+  },
+  {
+    id: 39,
+    title: '密码管理',
+    parentId: 33,
+    url: '/user/password-manage',
+    sort: 3,
+    name: 'PasswordManage',
+  },
+  {
+    id: 40,
+    title: '密码修改',
+    parentId: 39,
+    url: '/user/password-manage/password-modify',
+    sort: 1,
+    name: 'PasswordModify',
+  },
 ];
 
 export const menusApi = Mock.mock('/api/getMenus', 'get', () => {

+ 2 - 0
src/router/asyncRoutes.js

@@ -4,6 +4,7 @@ import sop from './modules/sop';
 import resourceGuard from './modules/resourceGuard';
 import workHours from './modules/workHours';
 import projectQuality from './modules/projectQuality';
+import User from './modules/user';
 
 const asyncRoutes = [
   myWorkbenches,
@@ -12,6 +13,7 @@ const asyncRoutes = [
   resourceGuard,
   workHours,
   projectQuality,
+  User,
 ];
 export const moduleMap = asyncRoutes.reduce((obj, item) => {
   obj[item.path.slice(1)] = item.name;

+ 88 - 0
src/router/modules/user.js

@@ -0,0 +1,88 @@
+export default {
+  name: 'User',
+  path: '/user',
+  redirect: '/user/org-struct-manage',
+  meta: {
+    title: '用户管理',
+    sort: 2,
+    isModule: true,
+  },
+  children: [
+    {
+      name: 'OrgStructManage',
+      path: '/user/org-struct-manage',
+      redirect: '/user/org-struct-manage/struct-manage',
+      meta: {
+        title: '组织架构管理',
+        sort: 1,
+        icon: 'fork',
+      },
+      children: [
+        {
+          name: 'StructManage',
+          path: '/user/org-struct-manage/struct-manage',
+          component: () =>
+            import('@/views/user/org-struct-manage/struct-manage/index.vue'),
+          meta: {
+            title: '组织架构管理',
+            sort: 1,
+          },
+        },
+      ],
+    },
+    {
+      name: 'AuthManage',
+      path: '/user/auth-manage',
+      redirect: '/user/auth-manage/user-manage',
+      meta: {
+        title: '用户权限管理',
+        sort: 2,
+        icon: 'pin',
+      },
+      children: [
+        {
+          name: 'UserManage',
+          path: '/user/auth-manage/user-manage',
+          component: () =>
+            import('@/views/user/auth-manage/user-manage/index.vue'),
+          meta: {
+            title: '用户管理',
+            sort: 1,
+          },
+        },
+        {
+          name: 'RoleManage',
+          path: '/user/auth-manage/role-manage',
+          component: () =>
+            import('@/views/user/auth-manage/role-manage/index.vue'),
+          meta: {
+            title: '角色管理',
+            sort: 2,
+          },
+        },
+      ],
+    },
+    {
+      name: 'PasswordManage',
+      path: '/user/password-manage',
+      redirect: '/user/password-manage/password-modify',
+      meta: {
+        title: '密码管理',
+        sort: 1,
+        icon: 'lock-on',
+      },
+      children: [
+        {
+          name: 'PasswordModify',
+          path: '/user/password-manage/password-modify',
+          component: () =>
+            import('@/views/user/password-manage/password-modify/index.vue'),
+          meta: {
+            title: '密码修改',
+            sort: 1,
+          },
+        },
+      ],
+    },
+  ],
+};

+ 7 - 0
src/views/user/auth-manage/role-manage/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div class="role">角色管理</div>
+</template>
+
+<script setup name="Role"></script>
+
+<style></style>

+ 7 - 0
src/views/user/auth-manage/user-manage/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div class="user">用户管理</div>
+</template>
+
+<script setup name="User"></script>
+
+<style></style>

+ 7 - 0
src/views/user/org-struct-manage/struct-manage/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div class="struct-manage">组织架构管理</div>
+</template>
+
+<script setup name="StructManage"></script>
+
+<style></style>

+ 7 - 0
src/views/user/password-manage/password-modify/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div class="password-modify">密码修改</div>
+</template>
+
+<script setup name="PasswordModify"></script>
+
+<style></style>