Commit 19d83a59 authored by 黄奎's avatar 黄奎

页面修改

parent 9fd75e30
...@@ -132,9 +132,11 @@ ...@@ -132,9 +132,11 @@
</q-header> </q-header>
<q-page-container class="window-height"> <q-page-container class="window-height">
<div class="row items-stretch full-height"> <div class="row items-stretch full-height">
<a @click="changeLeft">隐藏{{IsShowLeft}}</a>
<div style="box-shadow: 2px 0 10px 0 rgba(237,238,240,0.50);font-family:perfectFont;" <div style="box-shadow: 2px 0 10px 0 rgba(237,238,240,0.50);font-family:perfectFont;"
class="text-subtitle2 second-menu-bg" :style="{'width':isExpend?'40px':'180px'}" class="text-subtitle2 second-menu-bg" :style="{'width':IsShowLeft?'20px':'180px'}"
v-if="secondNavs && secondNavs.length>0"> v-if="secondNavs && secondNavs.length>0">
<div class="full-width left-menu-box q-pt-md"> <div class="full-width left-menu-box q-pt-md">
<q-list style="width:180px;overflow:hidden"> <q-list style="width:180px;overflow:hidden">
<template v-for="(x,i) in secondNavs"> <template v-for="(x,i) in secondNavs">
...@@ -169,20 +171,13 @@ ...@@ -169,20 +171,13 @@
</template> </template>
<script> <script>
import EssentialLink from 'components/EssentialLink.vue'
import { import {
mapGetters mapGetters
} from 'vuex' } from 'vuex'
import lockr from 'lockr'
export default { export default {
name: 'MainLayout', name: 'MainLayout',
components: {
EssentialLink
},
data() { data() {
return { return {
leftDrawerOpen: false,
//essentialLinks: linksData
tab: "navs_0", tab: "navs_0",
currentPath: "", currentPath: "",
secondNavs: [], secondNavs: [],
...@@ -200,22 +195,8 @@ ...@@ -200,22 +195,8 @@
width: '6px', width: '6px',
opacity: 0.5 opacity: 0.5
}, },
contentStyle2: {
backgroundColor: 'rgba(0,0,0,0.02)',
color: '#555'
},
isExpend: false, isExpend: false,
contentActiveStyle2: { IsShowLeft: true,
backgroundColor: '#eee',
color: 'black'
},
thumbStyle2: {
right: '0px',
borderRadius: '5px',
backgroundColor: '#027be3',
width: '5px',
opacity: 0.75
},
userCenterMenuList: [], //用户中心菜单 userCenterMenuList: [], //用户中心菜单
} }
}, },
...@@ -255,10 +236,11 @@ ...@@ -255,10 +236,11 @@
if (this.userInfo && this.userInfo.MenuList) { if (this.userInfo && this.userInfo.MenuList) {
this.secondNavs = this.userInfo.MenuList.length > 0 ? this.userInfo.MenuList[i].SubList : [] this.secondNavs = this.userInfo.MenuList.length > 0 ? this.userInfo.MenuList[i].SubList : []
} }
}, },
methods: { methods: {
changeLeft() {
this.IsShowLeft = !this.IsShowLeft;
},
logout() { logout() {
this.$store this.$store
.dispatch('LogOut') .dispatch('LogOut')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment