|
|
@@ -1,25 +1,24 @@
|
|
|
<template>
|
|
|
- <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="160"
|
|
|
- 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="160"
|
|
|
+ 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';
|
|
|
@@ -33,6 +32,7 @@ import Menu from './menu.vue';
|
|
|
import Main from './main.vue';
|
|
|
import { OperationTabMenu } from '@/services/go/commonService/interface';
|
|
|
import { getHasBottom } from '@/common/setup/order/orderData';
|
|
|
+import { isOemByEnum, OemType } from '@/common/config/projectName';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'layout-top',
|
|
|
@@ -71,9 +71,14 @@ export default defineComponent({
|
|
|
if (temp === 'home') {
|
|
|
// 第一次进入项目
|
|
|
if (value?.children.length) {
|
|
|
+ let tempIndex = 0;
|
|
|
+ // 天津麦顿 第一次进入 默认是 订单交易 商品掉期
|
|
|
+ if (isOemByEnum(OemType.tian_jing_mai_dun)) {
|
|
|
+ tempIndex = 2;
|
|
|
+ }
|
|
|
// 默认第一个tab页
|
|
|
- name = value.children[0].code;
|
|
|
- index.value = ['0'];
|
|
|
+ name = value.children[tempIndex].code;
|
|
|
+ index.value = [tempIndex.toString()];
|
|
|
} else {
|
|
|
router.push({ name: '404' });
|
|
|
return;
|