duy 2 лет назад
Родитель
Сommit
dd7cdbbd15

+ 27 - 0
src/router/menus.js

@@ -43,4 +43,31 @@ export default [
             },
         ]
     },
+    {
+        source: 'home-3',
+        name: '系统设置',
+        code: 'system',
+        children: [
+            {
+                source: 'home-3',
+                name: '账户管理',
+                code: 'system-user',
+            },
+            {
+                source: 'home-3',
+                name: '菜单管理',
+                code: 'system-menu',
+            },
+            {
+                source: 'home-3',
+                name: '参数配置',
+                code: 'system-parameter',
+            },
+            {
+                source: 'home-3',
+                name: '组织架构管理',
+                code: 'system-organization',
+            },
+        ]
+    },
 ]

+ 33 - 0
src/router/modules/base.js

@@ -66,6 +66,39 @@ export default [
             },
         ],
     },
+    {
+        path: '/system',
+        name: 'system',
+        redirect: '/system/user',
+        meta: {title: '系统设置'},
+        component: Layout,
+        children: [
+            {
+                path: '/system/user',
+                name: 'system-user',
+                meta: {title: '账户管理'},
+                component: () => import('~src/views/system/user.vue')
+            },
+            {
+                path: '/system/menu',
+                name: 'system-menu',
+                meta: {title: '菜单管理'},
+                component: () => import('~src/views/system/menu.vue')
+            },
+            {
+                path: '/system/parameter',
+                name: 'system-parameter',
+                meta: {title: '参数配置'},
+                component: () => import('~src/views/system/parameter.vue')
+            },
+            {
+                path: '/system/organization',
+                name: 'system-organization',
+                meta: {title: '组织架构管理'},
+                component: () => import('~src/views/system/organization.vue')
+            },
+        ],
+    },
     {
         path: '/403',
         name: '403',

+ 4 - 0
src/router/modules/token.js

@@ -7,4 +7,8 @@ export default [
     'home-budget',
     'user-index',
     'user-config',
+    'system-user',
+    'system-menu',
+    'system-parameter',
+    'system-organization',
 ]

+ 19 - 0
src/views/system/menu.vue

@@ -0,0 +1,19 @@
+<template>
+    <div class="home-styles-box">
+        菜单管理
+    </div>
+</template>
+
+<script setup>
+import {ref, watch} from "vue";
+import {useAppStore} from "~src/store";
+
+</script>
+
+<style lang="scss" scoped>
+
+</style>
+
+<style lang="scss">
+
+</style>

+ 19 - 0
src/views/system/organization.vue

@@ -0,0 +1,19 @@
+<template>
+    <div class="home-styles-box">
+        组织架构
+    </div>
+</template>
+
+<script setup>
+import {ref, watch} from "vue";
+import {useAppStore} from "~src/store";
+
+</script>
+
+<style lang="scss" scoped>
+
+</style>
+
+<style lang="scss">
+
+</style>

+ 19 - 0
src/views/system/parameter.vue

@@ -0,0 +1,19 @@
+<template>
+    <div class="home-styles-box">
+        参数配置
+    </div>
+</template>
+
+<script setup>
+import {ref, watch} from "vue";
+import {useAppStore} from "~src/store";
+
+</script>
+
+<style lang="scss" scoped>
+
+</style>
+
+<style lang="scss">
+
+</style>

+ 19 - 0
src/views/system/user.vue

@@ -0,0 +1,19 @@
+<template>
+    <div class="home-styles-box">
+        用户管理
+    </div>
+</template>
+
+<script setup>
+import {ref, watch} from "vue";
+import {useAppStore} from "~src/store";
+
+</script>
+
+<style lang="scss" scoped>
+
+</style>
+
+<style lang="scss">
+
+</style>