|
@@ -1,11 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<!-- 订单交易 -->
|
|
<!-- 订单交易 -->
|
|
|
- <div class="topTableHeight40">
|
|
|
|
|
- <router-view></router-view>
|
|
|
|
|
- <ThridMenu :list="tabList"
|
|
|
|
|
- :selectedKey="index"
|
|
|
|
|
- @selectMenu="changeTab" />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <router-view></router-view>
|
|
|
|
|
+ <ThridMenu :list="tabList" :selectedKey="index" @selectMenu="changeTab" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -16,22 +12,22 @@ import { handleMartketThirdRouter } from '@/common/setup/matket/router';
|
|
|
import { sessionStorageUtil } from '@/utils/storage';
|
|
import { sessionStorageUtil } from '@/utils/storage';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
- name: EnumRouterName.spot_trade_order_transaction,
|
|
|
|
|
- components: {
|
|
|
|
|
- ThridMenu,
|
|
|
|
|
- },
|
|
|
|
|
- setup() {
|
|
|
|
|
- const { index, tabList, changeTab } = handleMartketThirdRouter(EnumRouterName.spot_trade_order_transaction);
|
|
|
|
|
|
|
+ name: EnumRouterName.spot_trade_order_transaction,
|
|
|
|
|
+ components: {
|
|
|
|
|
+ ThridMenu,
|
|
|
|
|
+ },
|
|
|
|
|
+ setup() {
|
|
|
|
|
+ const { index, tabList, changeTab } = handleMartketThirdRouter(EnumRouterName.spot_trade_order_transaction);
|
|
|
|
|
|
|
|
- const swap = sessionStorageUtil.getItem('transaction_swap');
|
|
|
|
|
- if (!swap) {
|
|
|
|
|
- index.value = '2';
|
|
|
|
|
- changeTab(0, { lable: '商品掉期', code: 'spot_trade_order_transaction_swap' });
|
|
|
|
|
- sessionStorageUtil.setItem('transaction_swap', '2');
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ const swap = sessionStorageUtil.getItem('transaction_swap');
|
|
|
|
|
+ if (!swap) {
|
|
|
|
|
+ index.value = '2';
|
|
|
|
|
+ changeTab(0, { lable: '商品掉期', code: 'spot_trade_order_transaction_swap' });
|
|
|
|
|
+ sessionStorageUtil.setItem('transaction_swap', '2');
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- return { index, tabList, changeTab };
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ return { index, tabList, changeTab };
|
|
|
|
|
+ },
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="less">
|
|
<style lang="less">
|