Browse Source

新增报表菜单

duy 2 years ago
parent
commit
24e233cb6c

+ 18 - 0
src/router/menus.js

@@ -65,6 +65,24 @@ export default [
             },
         ]
     },
+    {
+        source: 'home-3',
+        name: '报表数据',
+        code: 'static',
+        children: [
+            {
+                source: 'home-3',
+                name: '项目报表',
+                code: 'static-project',
+            },
+            {
+                source: 'home-3',
+                name: '计划报表',
+                code: 'static-plan',
+            },
+
+        ]
+    },
     {
         source: 'home-3',
         name: '系统设置',

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

@@ -123,6 +123,40 @@ export default [
             },
         ],
     },
+    {
+        path: '/static',
+        name: 'static',
+        redirect: '/static/static',
+        meta: {title: '报表数据'},
+        component: Layout,
+        children: [
+            {
+                path: '/static/static',
+                name: 'static-project',
+                meta: {title: '项目报表'},
+                component: () => import('~src/views/static/project.vue')
+            },
+            {
+                path: '/static/plan',
+                name: 'static-plan',
+                meta: {title: '计划报表'},
+                component: () => import('~src/views/static/plan.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: '/system',
         name: 'system',

+ 3 - 1
src/router/modules/token.js

@@ -19,5 +19,7 @@ export default [
     'system-menu',
     'system-parameter',
     'system-organization',
-    'risk-warning'
+    'risk-warning',
+    'static-project',
+    'static-plan'
 ]

+ 13 - 0
src/views/static/plan.vue

@@ -0,0 +1,13 @@
+<template>
+     <HcCard actionSize="lg" scrollbar>
+        <template #header>
+            <div class="warn_text">
+                <HcIcon name="alert" class="warn_icon"/>
+                <span>15条</span>
+            </div>
+        </template>
+     </HcCard>
+</template>
+
+ <script setup>
+</script>

+ 4 - 0
src/views/static/project.vue

@@ -0,0 +1,4 @@
+<template>
+11111
+</template>
+<script setup></script>