浏览代码

feat: 增加新的菜单

sunxiao 10 月之前
父节点
当前提交
30d7968476
共有 3 个文件被更改,包括 18 次插入1 次删除
  1. 1 1
      src/components/Layout/TheMenu.vue
  2. 8 0
      src/router/index.js
  3. 9 0
      src/views/analyse/ForecastView.vue

+ 1 - 1
src/components/Layout/TheMenu.vue

@@ -59,7 +59,7 @@ const menuOptions = [
       {
         label: '预测报警',
         icon: renderChildrenIcon({ name: 'menu-analyse-notice' }),
-        key: 'normal',
+        key: '/forecast-warn',
       },
       {
         label: '智能工单',

+ 8 - 0
src/router/index.js

@@ -46,6 +46,14 @@ const constantRouterMap = [
           title: '生化报警'
         }
       },
+      {
+        path: 'forecast-warn',
+        name: 'ForecastView',
+        component: () => import('@/views/analyse/ForecastView.vue'),
+        meta: {
+          title: '预测报警'
+        }
+      },
       {
         path: 'work-order',
         name: 'WorKOrder',

+ 9 - 0
src/views/analyse/ForecastView.vue

@@ -0,0 +1,9 @@
+<script setup>
+  
+</script>
+
+<template>
+  <div>
+    预测报警
+  </div>
+</template>