You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<el-container>
|
|
|
|
<el-header class="nav-container">
|
|
|
|
<manager-navbar/>
|
|
|
|
</el-header>
|
|
|
|
<el-container>
|
|
|
|
<el-aside
|
|
|
|
width="auto"
|
|
|
|
class="aside-container">
|
|
|
|
<sidebar
|
|
|
|
:items="sidebarItems"
|
|
|
|
create-button-icon="el-icon-plus"
|
|
|
|
main-router="manager"/>
|
|
|
|
</el-aside>
|
|
|
|
<el-main id="project-main-container">
|
|
|
|
<app-main/>
|
|
|
|
</el-main>
|
|
|
|
</el-container>
|
|
|
|
</el-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
import { ManagerNavbar,Sidebar, AppMain } from './components'
|
|
|
|
import { managerRouterMenu } from '@/router/modules/manager'
|
|
|
|
export default {
|
|
|
|
name: 'Layout',
|
|
|
|
components: {
|
|
|
|
Sidebar,
|
|
|
|
AppMain,
|
|
|
|
ManagerNavbar,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
isCreate: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
sidebarItems() {
|
|
|
|
return managerRouterMenu
|
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
},
|
|
|
|
|
|
|
|
beforeDestroy() {
|
|
|
|
this.$bus.$off('project-setting')
|
|
|
|
this.$bus.$off('add-project')
|
|
|
|
this.$bus.$off('delete-project')
|
|
|
|
this.$bus.$off('recover-project')
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
navClick(index) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.aside-container {
|
|
|
|
position: relative;
|
|
|
|
background-color: #2d3037;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-right: solid 1px #e6e6e6;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-container {
|
|
|
|
padding: 0;
|
|
|
|
/*box-shadow: 0px 1px 2px #dbdbdb;*/
|
|
|
|
z-index: 100;
|
|
|
|
min-width: 1200px;
|
|
|
|
height: 45px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#project-main-container {
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-container {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
</style>
|