|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div v-loading.fullscreen.lock="loading" :element-loading-text="$t('loading')" :class="['aui-wrapper', { 'aui-sidebar--fold': $store.state.sidebarFold }]"> |
|
|
<div v-loading.fullscreen.lock="loading" :element-loading-text="$t('loading')" :class="['aui-wrapper', { 'aui-sidebar--fold': $store.state.sidebarFold }, { 'aui-sidebar--hide': $store.state.sidebarHide }]"> |
|
|
<template v-if="!loading"> |
|
|
<template v-if="!loading"> |
|
|
<div v-show="isGoProgect==='false'"> |
|
|
<div v-show="isGoProgect==='false'"> |
|
|
<main-index v-on:mainIndexByValue="mainIndexByValue" /> |
|
|
<main-index v-on:mainIndexByValue="mainIndexByValue" /> |
|
@ -56,6 +56,9 @@ export default { |
|
|
created () { |
|
|
created () { |
|
|
this.windowResizeHandle() |
|
|
this.windowResizeHandle() |
|
|
this.routeHandle(this.$route) |
|
|
this.routeHandle(this.$route) |
|
|
|
|
|
if (this.routeList_C.length == 0) { |
|
|
|
|
|
this.$store.state.sidebarHide = true |
|
|
|
|
|
} |
|
|
Promise.all([ |
|
|
Promise.all([ |
|
|
this.getUserInfo(), |
|
|
this.getUserInfo(), |
|
|
this.getPermissions() |
|
|
this.getPermissions() |
|
@ -118,6 +121,11 @@ export default { |
|
|
}).catch(() => {}) |
|
|
}).catch(() => {}) |
|
|
}, |
|
|
}, |
|
|
mainIndexByValue (e) { |
|
|
mainIndexByValue (e) { |
|
|
|
|
|
// 跳转进来直接打开社区查询关闭其他 |
|
|
|
|
|
this.$store.state.sidebarHide = true |
|
|
|
|
|
this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'productIframe-shequ-index') |
|
|
|
|
|
this.$router.push({ name: 'productIframe-shequ-index' }) |
|
|
|
|
|
|
|
|
window.localStorage.setItem('isGoProgect', e) |
|
|
window.localStorage.setItem('isGoProgect', e) |
|
|
this.isGoProgect = window.localStorage.getItem('isGoProgect') |
|
|
this.isGoProgect = window.localStorage.getItem('isGoProgect') |
|
|
} |
|
|
} |
|
|