diff --git a/public/index.html b/public/index.html index d4a8ddc7..3883979d 100644 --- a/public/index.html +++ b/public/index.html @@ -31,13 +31,13 @@ window.SITE_CONFIG['dynamicMenuRoutes'] = [] // 动态(菜单)路由列表 window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false // 动态(菜单)路由是否已经添加的状态标示(用于判断是否需要重新拉取数据并进行动态添加操作) - window.SITE_CONFIG['iframeBaseUrl'] = 'http://120.27.18.76/epmet-oper-gov/#/main' + window.SITE_CONFIG['iframeBaseUrl'] = 'https://epdc-shibei.elinkservice.cn/epmet-oper-gov/#/main' <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% } %> diff --git a/src/assets/scss/common.scss b/src/assets/scss/common.scss index 6e02e025..35ce2a7c 100644 --- a/src/assets/scss/common.scss +++ b/src/assets/scss/common.scss @@ -246,6 +246,50 @@ img { } } +.aui-sidebar--hide { + .aui-navbar { + &__header, + &__brand { + width: $sidebar--width-hide; + } + &__brand { + &-lg { + display: none; + } + &-mini { + display: inline-block; + } + } + &__icon-menu--switch { + transform: rotateZ(180deg); + } + } + .aui-sidebar { + &__inner { + width: $sidebar--width-hide + 20px; + } + &, + &__menu { + width: $sidebar--width-hide; + } + &__menu > li { + text-align: center; + } + &__menu-icon { + margin-right: 0; + font-size: 18px; + } + } + .aui-content { + &__wrapper { + margin-left: $sidebar--width-hide; + } + &--tabs > .el-tabs > .el-tabs__header { + left: $sidebar--width-hide; + } + } +} + /* Navbar ------------------------------ */ diff --git a/src/assets/scss/variables.scss b/src/assets/scss/variables.scss index 81814d1e..5ece69fd 100644 --- a/src/assets/scss/variables.scss +++ b/src/assets/scss/variables.scss @@ -10,6 +10,7 @@ $sidebar--width-fold: 64px; $sidebar--background-color-dark: #263238; $sidebar--text-color-dark: #8a979e; $sidebar--menu-item-height: 48px; +$sidebar--width-hide: 0px; // Content $content--padding: 15px; diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index 4930ea88..1a213e57 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -4,7 +4,7 @@ t.loading = '加载中...' t.brand = {} t.brand.lg = '党建引领基层治理互联平台' -t.brand.mini = '党建' +t.brand.mini = '' t.add = '新增' t.delete = '删除' diff --git a/src/store/index.js b/src/store/index.js index 26436dbd..98cd42c1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -14,6 +14,8 @@ export default new Vuex.Store({ sidebarLayoutSkin: 'default', // 侧边栏, 折叠状态 sidebarFold: false, + // 侧边栏, 隐藏状态 + sidebarHide: false, // 侧边栏, 菜单 sidebarMenuList: [], sidebarMenuActiveName: '', diff --git a/src/views/main-navbar.vue b/src/views/main-navbar.vue index 494a9604..74c1a7b0 100644 --- a/src/views/main-navbar.vue +++ b/src/views/main-navbar.vue @@ -160,13 +160,13 @@ export default { }, handleSelect (e) { if (this.routeList_F[e].name == '社区查询') { - this.$store.state.sidebarFold = true + this.$store.state.sidebarHide = true this.$router.push({ name: 'productIframe-shequ-index' }) return } else { - this.$store.state.sidebarFold = false + this.$store.state.sidebarHide = false } this.$emit('routeList_child', JSON.stringify(this.routeList_F[e].children)) }, diff --git a/src/views/main.vue b/src/views/main.vue index adb3f9c0..80f5688a 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -1,5 +1,5 @@