From d751a1897ac7e4b86a26481444eb4ab9ed9ef80c Mon Sep 17 00:00:00 2001 From: oldHome Date: Sun, 1 Jun 2025 02:39:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A6=81=E9=A3=9E=E5=8C=BA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20=E8=AE=BE=E7=BD=AE=E7=A6=81=E9=A3=9E?= =?UTF-8?q?=E5=8C=BA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 44 ++++ .../layout/components/main/nofly/add.vue | 218 ++++++++++++++++++ .../layout/components/main/nofly/index.vue | 125 ++++++++++ 3 files changed, 387 insertions(+) create mode 100644 src/views/layout/components/main/nofly/add.vue create mode 100644 src/views/layout/components/main/nofly/index.vue 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 @@ + + + + + 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 @@ + + + + +