|
|
@@ -1,25 +1,24 @@
|
|
|
<template>
|
|
|
- <a-layout class="layout-top">
|
|
|
- <a-layout-header class="m-layout-header">
|
|
|
- <Header />
|
|
|
- </a-layout-header>
|
|
|
- <a-layout class="middleLayout">
|
|
|
- <a-layout-sider
|
|
|
- class="m-layout-left"
|
|
|
- width="180"
|
|
|
- v-model:collapsed="collapsed"
|
|
|
- @collapse="collapse"
|
|
|
- collapsible
|
|
|
- >
|
|
|
- <Menu @chooseMenu="chooseMenu" :collapsed="collapsed" />
|
|
|
- </a-layout-sider>
|
|
|
- <a-layout-content :style="{ background: '#0E0E0F', flex: 1, }">
|
|
|
- <!-- <Drawer :title="'挂牌'" :visible="visible"></Drawer> -->
|
|
|
- <!-- <Main /> -->
|
|
|
- <router-view />
|
|
|
- </a-layout-content>
|
|
|
- </a-layout>
|
|
|
+ <a-layout :class="['layout-top', isBottom ? 'layout-top-bottom' : 'layout-top-no-bottom']">
|
|
|
+ <a-layout-header class="m-layout-header">
|
|
|
+ <Header />
|
|
|
+ </a-layout-header>
|
|
|
+ <a-layout class="middleLayout">
|
|
|
+ <a-layout-sider class="m-layout-left"
|
|
|
+ width="180"
|
|
|
+ v-model:collapsed="collapsed"
|
|
|
+ @collapse="collapse"
|
|
|
+ collapsible>
|
|
|
+ <Menu @chooseMenu="chooseMenu"
|
|
|
+ :collapsed="collapsed" />
|
|
|
+ </a-layout-sider>
|
|
|
+ <a-layout-content :style="{ background: '#0E0E0F', flex: 1, }">
|
|
|
+ <!-- <Drawer :title="'挂牌'" :visible="visible"></Drawer> -->
|
|
|
+ <!-- <Main /> -->
|
|
|
+ <router-view />
|
|
|
+ </a-layout-content>
|
|
|
</a-layout>
|
|
|
+ </a-layout>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, ref, provide } from 'vue';
|
|
|
@@ -32,6 +31,7 @@ import Header from './header.vue';
|
|
|
import Menu from './menu.vue';
|
|
|
import Main from './main.vue';
|
|
|
import { OperationTabMenu } from '@/services/go/commonService/interface';
|
|
|
+import { getHasBottom } from '@/common/setup/order/orderData';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'layout-top',
|
|
|
@@ -54,6 +54,7 @@ export default defineComponent({
|
|
|
const show: string[] = [''];
|
|
|
context.emit('chooseMenu', show.includes(code));
|
|
|
}
|
|
|
+ const isBottom = getHasBottom();
|
|
|
// 选中菜单
|
|
|
function chooseMenu(value: OperationTabMenu) {
|
|
|
const matched = route.matched;
|
|
|
@@ -110,15 +111,21 @@ export default defineComponent({
|
|
|
collapsed,
|
|
|
collapse,
|
|
|
chooseMenu,
|
|
|
+ isBottom,
|
|
|
};
|
|
|
},
|
|
|
});
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
+.layout-top-no-bottom {
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
+.layout-top-bottom {
|
|
|
+ height: calc(100vh - 336px);
|
|
|
+}
|
|
|
.layout-top {
|
|
|
.flex;
|
|
|
width: 100%;
|
|
|
- height: calc(100vh - 336px);
|
|
|
flex-direction: column;
|
|
|
.m-layout-header {
|
|
|
width: 100%;
|