|
@@ -2,7 +2,7 @@
|
|
|
<!--订单交易 挂牌转让-->
|
|
<!--订单交易 挂牌转让-->
|
|
|
<div class="topTableHeight">
|
|
<div class="topTableHeight">
|
|
|
<a-table :columns="columns"
|
|
<a-table :columns="columns"
|
|
|
- :class="['srcollYTable', isBottom ? 'secondTabTable' : 'secondTabTableNoBottom', getQuoteList().length ? 'noPlaceHolder' : 'hasPlaceHolder']"
|
|
|
|
|
|
|
+ :class="['srcollYTable', isBottom ? 'secondTabTable' : 'secondTabTableNoBottom', goodsList.length ? 'noPlaceHolder' : 'hasPlaceHolder']"
|
|
|
:scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 407px)' : 'calc(100vh - 167px)' }"
|
|
:scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 407px)' : 'calc(100vh - 167px)' }"
|
|
|
:pagination="false"
|
|
:pagination="false"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
@@ -10,7 +10,7 @@
|
|
|
:customRow="Rowclick"
|
|
:customRow="Rowclick"
|
|
|
rowKey="goodscode"
|
|
rowKey="goodscode"
|
|
|
ref="tableRef"
|
|
ref="tableRef"
|
|
|
- :data-source="getQuoteList()">
|
|
|
|
|
|
|
+ :data-source="goodsList">
|
|
|
<template #totalturnover="{ text }">
|
|
<template #totalturnover="{ text }">
|
|
|
<span>{{changeUnit(text)}}</span>
|
|
<span>{{changeUnit(text)}}</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -57,7 +57,6 @@
|
|
|
<component :is="componentId"
|
|
<component :is="componentId"
|
|
|
v-if="componentId"
|
|
v-if="componentId"
|
|
|
:selectedRow="selectedRow"
|
|
:selectedRow="selectedRow"
|
|
|
- :deliverGoods="findDeilverGoodsByGoodsCode(selectedRow.goodscode)"
|
|
|
|
|
@cancel="closeComponent"></component>
|
|
@cancel="closeComponent"></component>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -70,7 +69,6 @@ import { handleDeliveryRelation } from '../setup';
|
|
|
|
|
|
|
|
import { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration } from '@/common/setup/table/tableQuote';
|
|
import { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration } from '@/common/setup/table/tableQuote';
|
|
|
import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
-import { columnsList } from '../setup';
|
|
|
|
|
|
|
|
|
|
import { handleTableEventAndData } from '@/common/setup/table/compose';
|
|
import { handleTableEventAndData } from '@/common/setup/table/compose';
|
|
|
import { TableParam } from '@/common/setup/table/interface';
|
|
import { TableParam } from '@/common/setup/table/interface';
|
|
@@ -78,6 +76,10 @@ import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
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 { useSwapList, columnsList } from './setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'spot_trade_order_transaction_swap',
|
|
name: 'spot_trade_order_transaction_swap',
|
|
@@ -89,7 +91,9 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const isBottom = getShowBottomValue();
|
|
const isBottom = getShowBottomValue();
|
|
|
- const loading = ref<boolean>(false);
|
|
|
|
|
|
|
+ const { loading, goodsList } = useSwapList();
|
|
|
|
|
+
|
|
|
|
|
+ // const loading = ref<boolean>(false);
|
|
|
const param: TableParam = {
|
|
const param: TableParam = {
|
|
|
columnsList,
|
|
columnsList,
|
|
|
queryFn: () => {},
|
|
queryFn: () => {},
|
|
@@ -100,21 +104,18 @@ export default defineComponent({
|
|
|
{ lable: '详情', code: 'Detail', className: 'btnDeafault' },
|
|
{ lable: '详情', code: 'Detail', className: 'btnDeafault' },
|
|
|
{ lable: '买卖大厅', code: 'BuyAndSell', className: 'btnDeafault' },
|
|
{ lable: '买卖大厅', code: 'BuyAndSell', className: 'btnDeafault' },
|
|
|
];
|
|
];
|
|
|
- const { deliverGoods, getQuoteList, goodsList, findDeilverGoodsByGoodsCode } = handleDeliveryRelation([1, 3]);
|
|
|
|
|
|
|
+ // const { deliverGoods, getQuoteList, goodsList, findDeilverGoodsByGoodsCode } = handleDeliveryRelation([1, 3]);
|
|
|
// 行情按需订阅
|
|
// 行情按需订阅
|
|
|
- handleSubcriteOnDemandQuote<QueryDeliveryRelationRsp>(deliverGoods);
|
|
|
|
|
|
|
+ handleSubcriteOnDemandQuote<QueryQuoteDayRsp>(goodsList);
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
isBottom,
|
|
isBottom,
|
|
|
...handleTableEventAndData<QueryQuoteDayRsp>(param),
|
|
...handleTableEventAndData<QueryQuoteDayRsp>(param),
|
|
|
- deliverGoods,
|
|
|
|
|
btnList,
|
|
btnList,
|
|
|
handleQuotePriceColor,
|
|
handleQuotePriceColor,
|
|
|
quoteChange,
|
|
quoteChange,
|
|
|
quoteAmplitude,
|
|
quoteAmplitude,
|
|
|
quoteAmplituOfVibration,
|
|
quoteAmplituOfVibration,
|
|
|
- getQuoteList,
|
|
|
|
|
- findDeilverGoodsByGoodsCode,
|
|
|
|
|
goodsList,
|
|
goodsList,
|
|
|
loading,
|
|
loading,
|
|
|
};
|
|
};
|