|
@@ -10,13 +10,19 @@
|
|
|
:collapsed="collapsed"
|
|
|
:menu="menu.children"
|
|
|
:theme="theme"
|
|
|
- style="padding: 16px 0px;"></s-menu>
|
|
|
+ style="padding: 80px 0px;"></s-menu>
|
|
|
</a-layout-sider>
|
|
|
- <a-layout-content>
|
|
|
- <transition name="page-transition">
|
|
|
- <RouteView />
|
|
|
- </transition>
|
|
|
- </a-layout-content>
|
|
|
+ <a-layout class="mix-layout">
|
|
|
+ <a-layout-content :style="{ minHeight: '100vh', margin: '15px 15px 0', paddingTop: '65px'}">
|
|
|
+ <multi-tab v-if="multiTab"></multi-tab>
|
|
|
+ <transition name="page-transition">
|
|
|
+ <RouteView />
|
|
|
+ </transition>
|
|
|
+ </a-layout-content>
|
|
|
+ <a-layout-footer>
|
|
|
+ <global-footer />
|
|
|
+ </a-layout-footer>
|
|
|
+ </a-layout>
|
|
|
</a-layout>
|
|
|
|
|
|
</template>
|
|
@@ -25,11 +31,15 @@
|
|
|
import RouteView from './RouteView'
|
|
|
import SMenu from '@/components/Menu'
|
|
|
import { mapState } from 'vuex'
|
|
|
+import { mixin, mixinDevice } from '@/utils/mixin'
|
|
|
+import GlobalFooter from '@/components/GlobalFooter'
|
|
|
|
|
|
export default {
|
|
|
name: 'SideMenuRouteView',
|
|
|
+ mixins: [mixin, mixinDevice],
|
|
|
components: {
|
|
|
RouteView,
|
|
|
+ GlobalFooter,
|
|
|
SMenu
|
|
|
},
|
|
|
props: {
|
|
@@ -46,11 +56,6 @@ export default {
|
|
|
type: Boolean,
|
|
|
required: false,
|
|
|
default: false
|
|
|
- },
|
|
|
- device: {
|
|
|
- type: String,
|
|
|
- required: false,
|
|
|
- default: 'desktop'
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -63,6 +68,8 @@ export default {
|
|
|
activeMenu: state => state.permission.activeMenu
|
|
|
}),
|
|
|
menu () {
|
|
|
+ console.log(this.menus)
|
|
|
+ console.log(this.activeMenu)
|
|
|
console.log(this.menus[this.activeMenu])
|
|
|
return this.menus[this.activeMenu]
|
|
|
}
|
|
@@ -73,6 +80,17 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
+<style lang="less">
|
|
|
+ @import url('../components/global.less');
|
|
|
|
|
|
+ .ant-pro-multi-tab{
|
|
|
+ margin-left: 0px !important;
|
|
|
+ }
|
|
|
+ .ant-tabs-bar{
|
|
|
+ padding-left: 0px !important;
|
|
|
+ }
|
|
|
+ .mix-layout{
|
|
|
+ height: 100vh;
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
</style>
|