Commit 52ec3bfc authored by 黄奎's avatar 黄奎

页面修改

parent 1b7c3b76
<style>
@import "../assets/css/Details.css";
</style>
<template>
<div class="flexDiv">
<div class="secondMenu" :class="{'big':!isCollapse}">
<div class="secondMenu_l">
<div class="menuItem">
<el-menu default-active="1" :background-color="!isRed?'#282733':'#FBFBFB'" :text-color="!isRed?'#a3ace0':'#787A7D'" :active-text-color="!isRed?'#FFFFFF':'#33B3FF'"
<el-menu default-active="1" :background-color="!isRed?'#282733':'#FBFBFB'"
:text-color="!isRed?'#a3ace0':'#787A7D'" :active-text-color="!isRed?'#FFFFFF':'#33B3FF'"
:collapse="isCollapse">
<el-submenu v-for="(item,index) in items" :index="String(index+1)" :key='index'>
<template slot="title" class="left-nav">
......@@ -24,7 +26,7 @@
</el-menu>
</div>
</div>
<div class="extender" v-if="isRed" @click="changeMenuShowType">
<div class="extender" v-if="isRed" @click="changeMenuShowType">
<img src="../assets/img/extends.png" :class="{'close-extend':isCollapse}" />
</div>
</div>
......@@ -105,7 +107,7 @@
navWidth: 0,
//加密id
EnCodeWord: '',
isRed:true
isRed: true
};
},
components: {
......@@ -153,8 +155,8 @@
},
mounted() {
this.openMode = 0
if(localStorage.navsot){
this.isCollapse=localStorage.navsot=='a'
if (localStorage.navsot) {
this.isCollapse = localStorage.navsot == 'a'
}
if (localStorage.openMode && localStorage.openMode == 1)
this.openMode = 1
......@@ -181,15 +183,15 @@
} else {
this.goUrl('/' + hrefs[hrefs.length - 1])
}
this.isRed=(this.getLocalStorage().ThemeType?this.getLocalStorage().ThemeType:0)==1
this.isRed = (this.getLocalStorage().ThemeType ? this.getLocalStorage().ThemeType : 0) == 1
},
methods: {
nullMethod() {
},
changeMenuShowType(){
this.isCollapse=!this.isCollapse;
localStorage.navsot=this.isCollapse?'a':'b'
changeMenuShowType() {
this.isCollapse = !this.isCollapse;
localStorage.navsot = this.isCollapse ? 'a' : 'b'
},
referPage() {
this.currentTabName = this.tabs[this.currentRightIndex].name + '_' + this.currentRightIndex
......@@ -403,6 +405,9 @@
case "/HotelInfo": //酒店基本信息新增修改
path = "/HotelManagement";
break;
case "/GnHotelInfo": //国内酒店
path = "/GnHotelManagement";
break;
case "/HotelProductManage": //酒店房型
path = "/HotelManagement";
break;
......
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