Browse Source

feat: 增加数据分析相关界面

sunxiao 3 months ago
parent
commit
3806df98e3
3 changed files with 33 additions and 0 deletions
  1. 5 0
      src/components/Layout/TheMenu.vue
  2. 8 0
      src/router/index.js
  3. 20 0
      src/views/data/DataView.vue

+ 5 - 0
src/components/Layout/TheMenu.vue

@@ -125,6 +125,11 @@ const updateMenOptions = () => {
         icon: renderIcon({ name: 'menu-work' }),
         key: '/work'
       },
+      {
+        label: () => renderLabel('数据分析'),
+        icon: renderIcon({ name: 'menu-work' }),
+        key: '/data'
+      },
       {
         label: () => renderLabel('用户中心'),
         icon: renderIcon({ name: 'menu-user' }),

+ 8 - 0
src/router/index.js

@@ -132,6 +132,14 @@ const constantRouterMap = [
           title: '智适应碳源投加'
         }
       },
+      {
+        path: 'data',
+        name: 'DataView',
+        component: () => import('@/views/data/DataView.vue'),
+        meta: {
+          title: '智适应碳源投加'
+        }
+      },
     ]
   },
   {

+ 20 - 0
src/views/data/DataView.vue

@@ -0,0 +1,20 @@
+<script setup></script>
+
+<template>
+  <section class="flex items-start h-full">
+    <TheChatView leftTitle="数据分析" :isChatSlot="false" :isFooter="false">
+      <template #control>
+        <div class="data-container">
+          123123123
+        </div>
+      </template>
+    </TheChatView>
+  </section>
+</template>
+
+<style lang="scss" scoped>
+.data-container{
+  height: 100%;
+  background: pink;
+}
+</style>