Przeglądaj źródła

feat: 企微助手 - 客户分析 - 前端页面

zhengxy 2 lat temu
rodzic
commit
a2c41b1c05

+ 20 - 0
project/src/components/customerAnalysis/baseData/index.vue

@@ -0,0 +1,20 @@
1
+<template>
2
+  <div>
3
+    基础数据分析
4
+  </div>
5
+</template>
6
+
7
+<script>
8
+export default {
9
+  name: "baseData",
10
+  data() {
11
+    return {}
12
+  },
13
+  created() {},
14
+  methods: {}
15
+}
16
+</script>
17
+
18
+<style lang="scss" scoped>
19
+
20
+</style>

+ 31 - 0
project/src/components/customerAnalysis/index.vue

@@ -0,0 +1,31 @@
1
+<template>
2
+  <div>
3
+    <div class="topTagBox flex">
4
+      <div class="left flex-align-center">
5
+        <div :class="['tagItem',tagType==1?'tagItem_active':'']" @click="changeType(1);">基础数据分析</div>
6
+        <div :class="['tagItem',tagType==2?'tagItem_active':'']" @click="changeType(2);">客户阶段分析</div>
7
+      </div>
8
+    </div>
9
+    <baseData v-if="tagType==1" />
10
+    <stageData v-if="tagType==2" />
11
+  </div>
12
+</template>
13
+
14
+<script>
15
+import baseData from './baseData/index.vue'
16
+import stageData from './stageData/index.vue'
17
+export default {
18
+  name: "customerAnalysis",
19
+  components: { baseData, stageData },
20
+  data() {
21
+    return {
22
+      tagType: 1
23
+    }
24
+  },
25
+  methods:{
26
+    changeType(type){
27
+      this.tagType = type
28
+    }
29
+  }
30
+}
31
+</script>

+ 20 - 0
project/src/components/customerAnalysis/stageData/index.vue

@@ -0,0 +1,20 @@
1
+<template>
2
+  <div>
3
+    客户阶段分析
4
+  </div>
5
+</template>
6
+
7
+<script>
8
+export default {
9
+  name: "stageData",
10
+  data() {
11
+    return {}
12
+  },
13
+  created() {},
14
+  methods: {}
15
+}
16
+</script>
17
+
18
+<style lang="scss" scoped>
19
+
20
+</style>

+ 12 - 0
project/src/router/allRouter.js

@@ -74,6 +74,8 @@ const miniProManage = () => import(/* webpackChunkName: 'miniProManage' */ '@/co
74 74
 const playletManage = () => import(/* webpackChunkName: 'playletManage' */ '@/components/manage/playletManage/playletManage.vue')
75 75
 // 数据看板 - 平台推广数据
76 76
 const platformPromote = () => import(/* webpackChunkName: 'platformPromote' */ '@/components/dataBoard/platformPromote/index.vue')
77
+// 企微助手 - 客户分析
78
+const customerAnalysis = () => import(/* webpackChunkName: 'customerAnalysis' */ '@/components/customerAnalysis/index.vue')
77 79
 
78 80
 // name与菜单配置的页面路由一致
79 81
 // meta下isData:true为数据看板,否则为助手
@@ -691,6 +693,16 @@ export var allRouter = [
691 693
           isData: true
692 694
         }
693 695
       },
696
+      {
697
+        path: 'customerAnalysis',
698
+        name: 'customerAnalysis',
699
+        component: customerAnalysis,
700
+        meta: {
701
+          keepAlive: false,
702
+          isLogin: true,
703
+          title: '客户分析'
704
+        }
705
+      },
694 706
     ]
695 707
   }
696 708
 ]