|
|
|
|
@ -1,11 +1,14 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="menu_flex"> |
|
|
|
|
<div class="first_menu"> |
|
|
|
|
<div class="menu_item" v-for="(item, index) in newMneu" :class="item.activeMenu == true ? 'xz_bg' : ''" |
|
|
|
|
<div class="first_menu_bg"> |
|
|
|
|
<div class="menu_item" v-for="(item, index) in newMneu" :class="item.activeMenu == true ? 'xz_bg' : ''" |
|
|
|
|
@click="slectMenu(item, index)" :title="item.name"> |
|
|
|
|
<span><i :class="item.source"></i></span> |
|
|
|
|
<span>{{ item.name }}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div class="second_menu"> |
|
|
|
|
<transition name="fade"> |
|
|
|
|
@ -32,7 +35,7 @@ |
|
|
|
|
popper-style="visibility: visible;width:auto;border:none; transform-origin: left center; z-index: 2051;padding:0;offset:0 !important;"> |
|
|
|
|
<template #reference> |
|
|
|
|
<span class="right_menu_item_box second_title" @click='open(item)' |
|
|
|
|
style="display:block;height: 60px;line-height: 60px;padding-left: 12px;"> |
|
|
|
|
style="display:block;height: 50px;line-height: 50px;padding-left: 12px;"> |
|
|
|
|
<div>{{ v.name }} |
|
|
|
|
<el-icon> |
|
|
|
|
<ArrowRight /> |
|
|
|
|
@ -43,7 +46,7 @@ |
|
|
|
|
<template #default v-if="v.children && v.children.length != 0"> |
|
|
|
|
<div class="third_box" v-if="v.children && v.children.length != 0"> |
|
|
|
|
<div class="third_box_item second_title" v-for="third in v.children" :key="third.id" |
|
|
|
|
style="display:block;height: 60px;line-height: 60px;padding-left: 12px;" @click='open(third)'> |
|
|
|
|
style="display:block;height: 40px;line-height: 40px;padding-left: 12px;" @click='open(third)'> |
|
|
|
|
{{ third.name }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -131,7 +134,6 @@ const open = (item) => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
console.log(22222,store.getters.setting.styleRadio) |
|
|
|
|
initMenu() |
|
|
|
|
}) |
|
|
|
|
</script> |
|
|
|
|
@ -143,14 +145,19 @@ onMounted(() => { |
|
|
|
|
|
|
|
|
|
.first_menu { |
|
|
|
|
width: 75px; |
|
|
|
|
background: #2c77f1; |
|
|
|
|
background: url(@/assets/menu_bg.jpg) no-repeat center; |
|
|
|
|
background-size: auto 100%; |
|
|
|
|
min-height: 100%; |
|
|
|
|
overflow: auto; |
|
|
|
|
padding-top: 60px; |
|
|
|
|
|
|
|
|
|
box-shadow: none; |
|
|
|
|
border-radius: 0px 60px 0px 0px; |
|
|
|
|
color: rgb(190, 194, 201); |
|
|
|
|
|
|
|
|
|
.first_menu_bg{ |
|
|
|
|
padding-top: 60px; |
|
|
|
|
background: url(@/assets/menu_bg.svg) no-repeat center; |
|
|
|
|
background-size: 100% 100%; |
|
|
|
|
} |
|
|
|
|
.menu_item { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 68px; |
|
|
|
|
@ -225,7 +232,7 @@ onMounted(() => { |
|
|
|
|
text-align: center; |
|
|
|
|
color: rgb(102, 102, 102); |
|
|
|
|
font-size: 18px; |
|
|
|
|
font-weight: 400; |
|
|
|
|
font-weight: 550; |
|
|
|
|
line-height: 25px; |
|
|
|
|
margin-top: 18px; |
|
|
|
|
position: relative; |
|
|
|
|
@ -257,18 +264,18 @@ onMounted(() => { |
|
|
|
|
color: rgb(102, 102, 102); |
|
|
|
|
|
|
|
|
|
.second_title { |
|
|
|
|
height: 60px; |
|
|
|
|
line-height: 60px; |
|
|
|
|
height: 50px; |
|
|
|
|
line-height: 50px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
font-size: 18px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: rgb(102, 102, 102); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.second_ch { |
|
|
|
|
height: 60px; |
|
|
|
|
line-height: 60px; |
|
|
|
|
height: 40px; |
|
|
|
|
line-height: 40px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
@ -279,10 +286,10 @@ onMounted(() => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.three_menu { |
|
|
|
|
height: 60px; |
|
|
|
|
line-height: 60px; |
|
|
|
|
height: 40px; |
|
|
|
|
line-height: 40px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
font-size: 18px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: rgb(102, 102, 102); |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
@ -317,5 +324,12 @@ onMounted(() => { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.third_box{ |
|
|
|
|
background: #000; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
:deep(.iconfont ){ |
|
|
|
|
font-size: 20px; |
|
|
|
|
} |
|
|
|
|
</style> |