diff --git a/src/router/index.js b/src/router/index.js index 130429d..8945643 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -102,6 +102,50 @@ const routes = [ } ] }, + { + path: '/nofly', + component: Layout, + redirect: '/nofly/index', + meta: { + title: '禁飞区', + icon: 'iconfont icon-feihangluxian', + roles: ['admin', 'editor'], + tapName: 'plane' + }, + children: [ + { + path: '/nofly/index', + component: () => import('@/views/layout/components/main/route/index'), + meta: { + title: '禁飞区列表', + icon: 'iconfont icon-a-05-1-1jihuazhihanggenzong', + roles: ['admin', 'editor'], + tapName: 'plane' + } + }, + { + path: '/nofly/add', + component: () => import('@/views/layout/components/main/route/add'), + meta: { + title: '设置禁飞区', + icon: 'iconfont icon-huizhi', + roles: ['admin', 'editor'], + tapName: 'plane' + } + }, + { + path: '/nofly/edit/:id', + component: () => import('@/views/layout/components/main/route/add'), + meta: { + title: '编辑禁飞区', + icon: 'iconfont icon-huizhi', + roles: ['admin', 'editor'], + tapName: 'plane', + hidden: true + } + } + ] + }, { path: '/route', component: Layout, diff --git a/src/views/layout/components/main/nofly/add.vue b/src/views/layout/components/main/nofly/add.vue new file mode 100644 index 0000000..67e4f01 --- /dev/null +++ b/src/views/layout/components/main/nofly/add.vue @@ -0,0 +1,218 @@ + + + + + + + + + + + + {{ $route.meta.title }} + + + + + + + + + + + + + + 点击上传 + + + + + + + 创建 + + + 更新 + + + + + + + + + + + + + + diff --git a/src/views/layout/components/main/nofly/index.vue b/src/views/layout/components/main/nofly/index.vue new file mode 100644 index 0000000..f7eb553 --- /dev/null +++ b/src/views/layout/components/main/nofly/index.vue @@ -0,0 +1,125 @@ + + + + + 添加 + 删除 + + 编辑 + + + + + + + + + + + + + + + + + + + 删除 + + + + + + + + + + + + +