From 179ac9accd9d07b01da757430c1c30e42cbc501a Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Sat, 1 Mar 2025 23:10:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=AD=E5=8C=BA=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/index.vue | 5 +++ src/router/index.ts | 2 +- src/router/modules/home.ts | 8 +++- .../components/manage-content/index.vue | 17 ++++++++ .../components/manage-left/index.vue | 42 +++++++++++++++++++ .../components/manage-right/index.vue | 42 +++++++++++++++++++ src/views/manage-forms/index.vue | 22 ++++++++++ src/views/management-forms/index.vue | 5 --- .../components/parking-content/index.vue | 2 +- .../components/welcome-content}/index.vue | 2 +- .../components/welcome-content}/page-list.vue | 10 ++--- .../components/welcome-footer}/index.vue | 6 +-- src/views/{home => welcome}/index.vue | 4 +- 13 files changed, 148 insertions(+), 19 deletions(-) create mode 100644 src/views/manage-forms/components/manage-content/index.vue create mode 100644 src/views/manage-forms/components/manage-left/index.vue create mode 100644 src/views/manage-forms/components/manage-right/index.vue create mode 100644 src/views/manage-forms/index.vue delete mode 100644 src/views/management-forms/index.vue rename src/views/{home/layout-content => welcome/components/welcome-content}/index.vue (85%) rename src/views/{home/layout-content => welcome/components/welcome-content}/page-list.vue (82%) rename src/views/{home/layout-footer => welcome/components/welcome-footer}/index.vue (84%) rename src/views/{home => welcome}/index.vue (66%) diff --git a/src/layout/index.vue b/src/layout/index.vue index 702d405..f9b243a 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -27,4 +27,9 @@ const route = useRoute(); background: url('@/assets/images/bg/bg-layout.png') no-repeat center; background-size: cover; } + +main { + width: 100%; + height: calc(100% - 108px); +} diff --git a/src/router/index.ts b/src/router/index.ts index c0a8129..3b7b83f 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -9,7 +9,7 @@ const routes: RouteRecordRaw[] = [...remaining, ...error]; const router = createRouter({ history: createWebHashHistory(), routes, - scrollBehavior: () => ({ x: 0, y: 0, behavior: 'smooth' }), + scrollBehavior: () => ({ top: 0, behavior: 'smooth' }), }); /** 全局注册 router */ diff --git a/src/router/modules/home.ts b/src/router/modules/home.ts index 307a881..9514e09 100644 --- a/src/router/modules/home.ts +++ b/src/router/modules/home.ts @@ -4,7 +4,7 @@ const routes: RouteConfigsTable[] = [ { path: '/welcome', name: 'welcome', - component: () => import('@/views/home/index.vue'), + component: () => import('@/views/welcome/index.vue'), meta: { transition: 'fade', title: '后台管理系统大标题' }, }, { @@ -13,6 +13,12 @@ const routes: RouteConfigsTable[] = [ component: () => import('@/views/smart-parking/index.vue'), meta: { title: '智慧智能监管中心', subtitle: '车辆监控中心' }, }, + { + path: '/manage-forms', + name: 'manageForms', + component: () => import('@/views/manage-forms/index.vue'), + meta: { title: '智慧经营监管中心', subtitle: '园区经营可视化' }, + }, ]; export default routes; diff --git a/src/views/manage-forms/components/manage-content/index.vue b/src/views/manage-forms/components/manage-content/index.vue new file mode 100644 index 0000000..419deae --- /dev/null +++ b/src/views/manage-forms/components/manage-content/index.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/src/views/manage-forms/components/manage-left/index.vue b/src/views/manage-forms/components/manage-left/index.vue new file mode 100644 index 0000000..07be843 --- /dev/null +++ b/src/views/manage-forms/components/manage-left/index.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/src/views/manage-forms/components/manage-right/index.vue b/src/views/manage-forms/components/manage-right/index.vue new file mode 100644 index 0000000..07be843 --- /dev/null +++ b/src/views/manage-forms/components/manage-right/index.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/src/views/manage-forms/index.vue b/src/views/manage-forms/index.vue new file mode 100644 index 0000000..532c591 --- /dev/null +++ b/src/views/manage-forms/index.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/src/views/management-forms/index.vue b/src/views/management-forms/index.vue deleted file mode 100644 index 8470873..0000000 --- a/src/views/management-forms/index.vue +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/views/smart-parking/components/parking-content/index.vue b/src/views/smart-parking/components/parking-content/index.vue index 8b35143..d77191f 100644 --- a/src/views/smart-parking/components/parking-content/index.vue +++ b/src/views/smart-parking/components/parking-content/index.vue @@ -5,7 +5,7 @@ import TruckMonitor from '@/views/smart-parking/components/parking-content/truck