Browse Source

管理后台-业务中心

panyong 3 years ago
parent
commit
4e009e2fd2

+ 3 - 1
htmldev/manage/src/router/index.js

@@ -5,6 +5,7 @@ Vue.use(Router)
 
 /* Layout */
 import Layout from '@/layout'
+import businessRouter from './modules/business'
 
 /**
  * Note: sub-menu only appear when route children.length >= 1
@@ -53,7 +54,7 @@ export const asyncRoutes = [
       path: 'dashboard',
       name: 'Dashboard',
       component: () => import('@/views/dashboard/index'),
-      meta: { title: '首页', icon: 'dashboard' }
+      meta: { title: '首页', icon: 'el-icon-s-home' }
     }]
   },
   {
@@ -102,6 +103,7 @@ export const asyncRoutes = [
       meta: { title: 'icon', icon: 'el-icon-s-grid' }
     }]
   },
+  businessRouter,
   { path: '*', redirect: '/404', hidden: true }
 ]
 

+ 40 - 0
htmldev/manage/src/router/modules/business.js

@@ -0,0 +1,40 @@
+import Layout from '@/layout'
+
+const businessRouter = {
+  path: '/business',
+  component: Layout,
+  name: 'Business',
+  meta: { title: '业务中心', icon: 'el-icon-s-shop' },
+  redirect: 'noRedirect',
+  children: [
+    {
+      path: 'place',
+      component: () => import('@/views/business/place/index'),
+      name: 'BusinessPlace',
+      meta: { title: '订座管理', icon: 'el-icon-place' },
+      redirect: '/business/place/query',
+      children: [
+        {
+          path: 'create',
+          component: () => import('@/views/business/place/create/index'),
+          name: 'BusinessPlaceCreate',
+          meta: { title: '座位管理' }
+        },
+        {
+          path: 'query',
+          component: () => import('@/views/business/place/query/index'),
+          name: 'BusinessPlaceQuery',
+          meta: { title: '预定' }
+        },
+        {
+          path: 'release',
+          component: () => import('@/views/business/place/release/index'),
+          name: 'BusinessPlaceRelease',
+          meta: { title: '订座安排' }
+        }
+      ]
+    }
+  ]
+}
+
+export default businessRouter

+ 13 - 0
htmldev/manage/src/views/business/place/create/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>座位管理</div>
+</template>
+
+<script>
+export default {
+  name: 'index'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 13 - 0
htmldev/manage/src/views/business/place/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <router-view/>
+</template>
+
+<script>
+export default {
+  name: 'index'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 13 - 0
htmldev/manage/src/views/business/place/query/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>预定</div>
+</template>
+
+<script>
+export default {
+  name: 'index'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 13 - 0
htmldev/manage/src/views/business/place/release/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>订座安排</div>
+</template>
+
+<script>
+export default {
+  name: 'index'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>