|
@@ -51,47 +51,41 @@
|
|
|
:selectedKey="index"
|
|
:selectedKey="index"
|
|
|
@selectMenu="changeTab" />
|
|
@selectMenu="changeTab" />
|
|
|
<!-- 右键 -->
|
|
<!-- 右键 -->
|
|
|
- <!-- <contextMenu :contextMenu="contextMenu"
|
|
|
|
|
|
|
+ <contextMenu :contextMenu="contextMenu"
|
|
|
@cancel="closeContext"
|
|
@cancel="closeContext"
|
|
|
- :list="btnList"></contextMenu>
|
|
|
|
|
|
|
+ :list="buttons"></contextMenu>
|
|
|
<component :is="componentId"
|
|
<component :is="componentId"
|
|
|
v-if="componentId"
|
|
v-if="componentId"
|
|
|
:selectedRow="selectedRow"
|
|
:selectedRow="selectedRow"
|
|
|
- @cancel="closeComponent"></component> -->
|
|
|
|
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { contextMenu, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
|
|
|
|
|
-
|
|
|
|
|
-import { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration } from '@/common/setup/table/tableQuote';
|
|
|
|
|
-import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
|
|
-
|
|
|
|
|
-import { handleTableEventAndData } from '@/common/setup/table/compose';
|
|
|
|
|
-import { TableParam } from '@/common/setup/table/interface';
|
|
|
|
|
-import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
|
|
|
|
+import { TabList } from '@/common/components/description/interface';
|
|
|
|
|
+import ThridMenu from '@/common/components/thirdMenu/index.vue';
|
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
|
|
+import { handleModalComponent } from '@/common/setup/asyncComponent';
|
|
|
|
|
+import { handleQuotePriceColor, handleSubcriteOnDemandQuote, quoteAmplitude, quoteAmplituOfVibration, quoteChange } from '@/common/setup/table/tableQuote';
|
|
|
|
|
+import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
-import { useQueryData } from '@/common/setup/request';
|
|
|
|
|
-import { QueryQuoteGoodsListReq } from '@/services/go/Tjmd/interface';
|
|
|
|
|
-import { queryQuoteGoodsList } from '@/services/go/Tjmd';
|
|
|
|
|
-import APP from '@/services';
|
|
|
|
|
-import { getGoodsList } from '@/services/bus/goods';
|
|
|
|
|
-import { Goods } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
|
|
import { getColumnsList, useExternalexchange } from './setup';
|
|
import { getColumnsList, useExternalexchange } from './setup';
|
|
|
-import ThridMenu from '@/common/components/thirdMenu/index.vue';
|
|
|
|
|
-import { Externalexchange } from '@/services/go/useInfo/interface';
|
|
|
|
|
-import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
|
|
-import { TabList } from '@/common/components/description/interface';
|
|
|
|
|
|
|
+import { getTableButton } from '@/common/setup/table/button';
|
|
|
|
|
+import { contextMenu, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
|
|
|
|
|
+import { handleContextMenu } from '@/common/components/contextMenu/setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'spot_trade_order_transaction_swap',
|
|
name: 'spot_trade_order_transaction_swap',
|
|
|
components: {
|
|
components: {
|
|
|
ThridMenu,
|
|
ThridMenu,
|
|
|
|
|
+ contextMenu,
|
|
|
|
|
+ trade: defineAsyncComponent(() => import('./compoments/futures-trade/index.vue')),
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const isBottom = getShowBottomValue();
|
|
const isBottom = getShowBottomValue();
|
|
|
-
|
|
|
|
|
|
|
+ const selectedRow = ref<QueryQuoteDayRsp>();
|
|
|
|
|
+ const buttons = getTableButton();
|
|
|
|
|
+ console.log('buttons', buttons);
|
|
|
const { index, loading, tabList, tableList, hanldeQuoteData } = useExternalexchange();
|
|
const { index, loading, tabList, tableList, hanldeQuoteData } = useExternalexchange();
|
|
|
// 行情按需订阅
|
|
// 行情按需订阅
|
|
|
let stopSubcribe = handleSubcriteOnDemandQuote<QueryQuoteDayRsp>(tableList);
|
|
let stopSubcribe = handleSubcriteOnDemandQuote<QueryQuoteDayRsp>(tableList);
|
|
@@ -103,7 +97,6 @@ export default defineComponent({
|
|
|
// 重新发起订阅
|
|
// 重新发起订阅
|
|
|
stopSubcribe = handleSubcriteOnDemandQuote<QueryQuoteDayRsp>(tableList);
|
|
stopSubcribe = handleSubcriteOnDemandQuote<QueryQuoteDayRsp>(tableList);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
return {
|
|
return {
|
|
|
index,
|
|
index,
|
|
|
loading,
|
|
loading,
|
|
@@ -111,15 +104,14 @@ export default defineComponent({
|
|
|
changeTab,
|
|
changeTab,
|
|
|
tableList,
|
|
tableList,
|
|
|
isBottom,
|
|
isBottom,
|
|
|
- // ...handleTableEventAndData<Goods>(param),
|
|
|
|
|
handleQuotePriceColor,
|
|
handleQuotePriceColor,
|
|
|
quoteChange,
|
|
quoteChange,
|
|
|
quoteAmplitude,
|
|
quoteAmplitude,
|
|
|
quoteAmplituOfVibration,
|
|
quoteAmplituOfVibration,
|
|
|
- // goodsList,
|
|
|
|
|
getColumnsList,
|
|
getColumnsList,
|
|
|
- // loading,
|
|
|
|
|
- // goodsChange,
|
|
|
|
|
|
|
+ buttons,
|
|
|
|
|
+ ...handleModalComponent(() => {}, selectedRow),
|
|
|
|
|
+ ...handleContextMenu(),
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|