feat: 园区布局完成

This commit is contained in:
Bunny 2025-03-01 23:10:44 +08:00
parent 40fbf97519
commit 179ac9accd
13 changed files with 148 additions and 19 deletions

View File

@ -27,4 +27,9 @@ const route = useRoute();
background: url('@/assets/images/bg/bg-layout.png') no-repeat center; background: url('@/assets/images/bg/bg-layout.png') no-repeat center;
background-size: cover; background-size: cover;
} }
main {
width: 100%;
height: calc(100% - 108px);
}
</style> </style>

View File

@ -9,7 +9,7 @@ const routes: RouteRecordRaw[] = [...remaining, ...error];
const router = createRouter({ const router = createRouter({
history: createWebHashHistory(), history: createWebHashHistory(),
routes, routes,
scrollBehavior: () => ({ x: 0, y: 0, behavior: 'smooth' }), scrollBehavior: () => ({ top: 0, behavior: 'smooth' }),
}); });
/** 全局注册 router */ /** 全局注册 router */

View File

@ -4,7 +4,7 @@ const routes: RouteConfigsTable[] = [
{ {
path: '/welcome', path: '/welcome',
name: 'welcome', name: 'welcome',
component: () => import('@/views/home/index.vue'), component: () => import('@/views/welcome/index.vue'),
meta: { transition: 'fade', title: '后台管理系统大标题' }, meta: { transition: 'fade', title: '后台管理系统大标题' },
}, },
{ {
@ -13,6 +13,12 @@ const routes: RouteConfigsTable[] = [
component: () => import('@/views/smart-parking/index.vue'), component: () => import('@/views/smart-parking/index.vue'),
meta: { title: '智慧智能监管中心', subtitle: '车辆监控中心' }, meta: { title: '智慧智能监管中心', subtitle: '车辆监控中心' },
}, },
{
path: '/manage-forms',
name: 'manageForms',
component: () => import('@/views/manage-forms/index.vue'),
meta: { title: '智慧经营监管中心', subtitle: '园区经营可视化' },
},
]; ];
export default routes; export default routes;

View File

@ -0,0 +1,17 @@
<script lang="ts" setup></script>
<template>
<div class="content-container">
<ul class="card-list">
<li>进出口</li>
</ul>
</div>
</template>
<style lang="scss" scoped>
.content-container {
width: 759px;
height: 100%;
background-color: #fff;
}
</style>

View File

@ -0,0 +1,42 @@
<script lang="ts" setup></script>
<template>
<div class="manage-container flex-y-between">
<div class="money">
<h1>园区进出口金额</h1>
</div>
<div class="enterprise-info">
<h1>园区进出口金额</h1>
</div>
<div class="plan">
<h1>园区进出口金额</h1>
</div>
</div>
</template>
<style lang="scss" scoped>
.manage-container {
width: 530px;
height: 100%;
.money {
width: 100%;
height: 246px;
background: mediumpurple;
}
.enterprise-info {
width: 530px;
height: 354px;
background: mediumpurple;
}
.plan {
width: 530px;
height: 294px;
background: mediumpurple;
}
}
</style>

View File

@ -0,0 +1,42 @@
<script lang="ts" setup></script>
<template>
<div class="manage-container flex-y-between">
<div class="money">
<h1>园区进出口金额</h1>
</div>
<div class="enterprise-info">
<h1>园区进出口金额</h1>
</div>
<div class="plan">
<h1>园区进出口金额</h1>
</div>
</div>
</template>
<style lang="scss" scoped>
.manage-container {
width: 530px;
height: 100%;
.money {
width: 100%;
height: 246px;
background: mediumpurple;
}
.enterprise-info {
width: 530px;
height: 354px;
background: mediumpurple;
}
.plan {
width: 530px;
height: 294px;
background: mediumpurple;
}
}
</style>

View File

@ -0,0 +1,22 @@
<script lang="ts" setup>
import MangeContent from '@/views/manage-forms/components/manage-content/index.vue';
import ManageLeft from '@/views/manage-forms/components/manage-left/index.vue';
import ManageRight from '@/views/manage-forms/components/manage-right/index.vue';
</script>
<template>
<div class="manage flex-x-between">
<manage-left />
<mange-content />
<manage-right />
</div>
</template>
<style lang="scss" scoped>
.manage {
padding: 19px 25px;
width: 100%;
height: 100%;
background: #20a0ff;
}
</style>

View File

@ -1,5 +0,0 @@
<script lang="ts" setup></script>
<template></template>
<style lang="scss" scoped></style>

View File

@ -5,7 +5,7 @@ import TruckMonitor from '@/views/smart-parking/components/parking-content/truck
</script> </script>
<template> <template>
<main class="mt-[78px] mx-auto flex-center w-[1620px] h-[650px]"> <main class="pt-[78px] mx-auto flex-center w-[1620px] h-[650px]">
<road-condition /> <road-condition />
<truck-monitor /> <truck-monitor />
<traffic-overview /> <traffic-overview />

View File

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import PageList from '@/views/home/layout-content/page-list.vue'; import PageList from '@/views/welcome/components/welcome-content/page-list.vue';
</script> </script>
<template> <template>

View File

@ -7,23 +7,23 @@ const router = useRouter();
<template> <template>
<ul class="page-list flex-x-between"> <ul class="page-list flex-x-between">
<li class="flex-y-center" @click="router.push('/smart-parking')"> <li class="flex-y-center" @click="router.push('/smart-parking')">
<img alt="car" src="../../../assets/images/icon/smart/car.png" /> <img alt="car" src="@/assets/images/icon/smart/car.png" />
<span>智慧停车</span> <span>智慧停车</span>
</li> </li>
<li class="flex-y-center"> <li class="flex-y-center">
<img alt="distribution" src="../../../assets/images/icon/smart/distribution.png" /> <img alt="distribution" src="@/assets/images/icon/smart/distribution.png" />
<span>智慧配送</span> <span>智慧配送</span>
</li> </li>
<li class="flex-y-center"> <li class="flex-y-center">
<img alt="muck" src="../../../assets/images/icon/smart/muck.png" /> <img alt="muck" src="@/assets/images/icon/smart/muck.png" />
<span>智慧渣土</span> <span>智慧渣土</span>
</li> </li>
<li class="flex-y-center"> <li class="flex-y-center">
<img alt="clean-city" src="../../../assets/images/icon/smart/clean-city.png" /> <img alt="clean-city" src="@/assets/images/icon/smart/clean-city.png" />
<span>智慧洁城</span> <span>智慧洁城</span>
</li> </li>
<li class="flex-y-center"> <li class="flex-y-center">
<img alt="lamp" src="../../../assets/images/icon/smart/lamp.png" /> <img alt="lamp" src="@/assets/images/icon/smart/lamp.png" />
<span>智慧路灯</span> <span>智慧路灯</span>
</li> </li>
</ul> </ul>

View File

@ -5,8 +5,8 @@ const router = useRouter();
const list = [ const list = [
{ icon: 'material-symbols:home-and-garden', name: '园区', target: '/' }, { icon: 'material-symbols:home-and-garden', name: '园区', target: '/' },
{ icon: 'ri:community-fill', name: '园区', target: '/' }, { icon: 'fa:building', name: '园区', target: '/' },
{ icon: 'ri:community-fill', name: '园区', target: '/' }, { icon: 'fa-solid:chart-line', name: '经营', target: '/manage-forms' },
{ icon: 'ri:community-fill', name: '园区', target: '/' }, { icon: 'ri:community-fill', name: '园区', target: '/' },
]; ];
</script> </script>
@ -14,7 +14,7 @@ const list = [
<template> <template>
<footer class="flex-y-around"> <footer class="flex-y-around">
<ul class="flex-x-between"> <ul class="flex-x-between">
<li v-for="(item, index) in list" :key="index"> <li v-for="(item, index) in list" :key="index" @click="router.push(item.target)">
<i :class="`i-${item.icon}`" /> <i :class="`i-${item.icon}`" />
<span class="hover">{{ item.name }}</span> <span class="hover">{{ item.name }}</span>
</li> </li>

View File

@ -1,6 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import LayoutContent from '@/views/home/layout-content/index.vue'; import LayoutContent from '@/views/welcome/components/welcome-content/index.vue';
import LayoutFooter from '@/views/home/layout-footer/index.vue'; import LayoutFooter from '@/views/welcome/components/welcome-footer/index.vue';
</script> </script>
<template> <template>