|
|
|
@ -2,16 +2,16 @@ |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-1"> |
|
|
|
|
<div class="logo"> |
|
|
|
|
<img width="30" src="@/assets/images/logo.png" alt=""> |
|
|
|
|
<!-- <img width="30" src="@/assets/images/logo.png" alt=""> --> |
|
|
|
|
<span>理论考试系统</span> |
|
|
|
|
</div> |
|
|
|
|
<el-menu :default-active="active" :default-openeds="['ques', 'testPaper']" background-color="#001529" |
|
|
|
|
text-color="#fff" active-text-color="#fff" :collapse-transition="false" @select="menuSelect"> |
|
|
|
|
<el-menu :default-active="active" :default-openeds="['ques', 'testPaper']" background-color="#f5fafa" |
|
|
|
|
text-color="#4a4b4b" active-text-color="#3474ff" :collapse-transition="false" @select="menuSelect"> |
|
|
|
|
<template v-for="item in menus"> |
|
|
|
|
<template v-if="item.subs"> |
|
|
|
|
<el-submenu :index="item.index" :key="item.index"> |
|
|
|
|
<template slot="title"> |
|
|
|
|
<!-- <img class="icon" :src="require('@/assets/images/' + item.icon + '.png')" alt=""> --> |
|
|
|
|
<img class="icon" :src="require('@/assets/images/' + item.index + '.png')" alt=""> |
|
|
|
|
<span slot="title">{{ item.title }}</span> |
|
|
|
|
</template> |
|
|
|
|
<template v-for="subItem in item.subs"> |
|
|
|
@ -137,8 +137,6 @@ export default { |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.nav { |
|
|
|
|
height: 100%; |
|
|
|
|
background-color: #001529; |
|
|
|
|
box-shadow: 2px 0px 6px 0px rgba(92, 111, 130, 0.35); |
|
|
|
|
overflow: auto; |
|
|
|
|
|
|
|
|
|
.logo { |
|
|
|
@ -146,8 +144,9 @@ export default { |
|
|
|
|
align-items: center; |
|
|
|
|
padding-left: 28px; |
|
|
|
|
margin: 15px 0 26px; |
|
|
|
|
font-size: 16px; |
|
|
|
|
color: #fff; |
|
|
|
|
font-size: 18px; |
|
|
|
|
font-weight: 600; |
|
|
|
|
color: #000; |
|
|
|
|
|
|
|
|
|
img { |
|
|
|
|
margin-right: 8px; |
|
|
|
@ -161,61 +160,31 @@ export default { |
|
|
|
|
margin: 0 11px 0 5px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.el-menu-item { |
|
|
|
|
&.is-active { |
|
|
|
|
background-color: #062c87 !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.el-menu .el-menu-item { |
|
|
|
|
padding-left: 50px !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.light { |
|
|
|
|
display: flex; |
|
|
|
|
height: 100%; |
|
|
|
|
background-color: #fff; |
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
|
.col-wrap { |
|
|
|
|
width: 64px; |
|
|
|
|
background-color: #001529; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.logo-icon { |
|
|
|
|
width: 41px; |
|
|
|
|
margin: 16px 0 30px 7px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.col-nav { |
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
|
|
li { |
|
|
|
|
padding: 25px 0; |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.name { |
|
|
|
|
margin: 17px 0 27px 15px; |
|
|
|
|
font-size: 15px; |
|
|
|
|
.el-submenu__title { |
|
|
|
|
padding-left: 0 !important; |
|
|
|
|
font-size: 16px; |
|
|
|
|
font-weight: 600; |
|
|
|
|
text-align: center; |
|
|
|
|
color: #333; |
|
|
|
|
line-height: 32px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.col-menu { |
|
|
|
|
width: 192px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/deep/.el-submenu__title { |
|
|
|
|
padding-left: 14px !important; |
|
|
|
|
} |
|
|
|
|
.el-menu-item { |
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
|
|
.icon { |
|
|
|
|
margin-left: 0; |
|
|
|
|
&.is-active { |
|
|
|
|
font-weight: 600; |
|
|
|
|
|
|
|
|
|
&::before { |
|
|
|
|
content: ''; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 15px; |
|
|
|
|
left: 28px; |
|
|
|
|
width: 4px; |
|
|
|
|
height: 20px; |
|
|
|
|
border-top-right-radius: 4px; |
|
|
|
|
border-bottom-right-radius: 4px; |
|
|
|
|
background-color: #3474ff; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|