2025-11-07 17:27:41 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="root">
|
|
|
|
|
<div class="header">
|
|
|
|
|
<img class="logo" src="../assets/imgs/logo.png" alt="logo" />
|
|
|
|
|
<h2>政务·渝路智管</h2>
|
2025-11-21 14:27:25 +08:00
|
|
|
<div class="user">
|
|
|
|
|
<el-icon :size="24"><User /></el-icon>
|
|
|
|
|
</div>
|
2025-11-07 17:27:41 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="content-leftbar">
|
|
|
|
|
<MenuBar></MenuBar>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="content-main">
|
|
|
|
|
<router-view></router-view>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import MenuBar from "../component/MenuBar/index.vue";
|
2025-11-21 14:27:25 +08:00
|
|
|
import {User} from '@element-plus/icons-vue'
|
2025-11-07 17:27:41 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.root {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.header {
|
|
|
|
|
height: 64px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-image: url("../assets/imgs/header.png");
|
|
|
|
|
background-size: cover;
|
|
|
|
|
background-position: center;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2025-11-21 14:27:25 +08:00
|
|
|
justify-content: space-between;
|
2025-11-07 17:27:41 +08:00
|
|
|
.logo {
|
|
|
|
|
width: 42px;
|
|
|
|
|
height: 42px;
|
|
|
|
|
margin-left: 16px;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
}
|
2025-11-21 14:27:25 +08:00
|
|
|
.user {
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
}
|
2025-11-07 17:27:41 +08:00
|
|
|
}
|
|
|
|
|
.content {
|
|
|
|
|
height: calc(100% - 64px);
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
.content-leftbar {
|
|
|
|
|
width: 248px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background-image: url("../assets/imgs/menu.png");
|
|
|
|
|
background-size: cover;
|
|
|
|
|
background-position: center;
|
|
|
|
|
}
|
|
|
|
|
.content-main {
|
|
|
|
|
width: calc(100% - 248px);
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|