|
@@ -23,19 +23,19 @@
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
:expandedRowKeys="expandedRowKeys"
|
|
:expandedRowKeys="expandedRowKeys"
|
|
|
:customRow="Rowclick"
|
|
:customRow="Rowclick"
|
|
|
- rowKey="goodscode"
|
|
|
|
|
|
|
+ rowKey="refgoodscode"
|
|
|
ref="tableRef"
|
|
ref="tableRef"
|
|
|
:data-source="goodsList">
|
|
:data-source="goodsList">
|
|
|
- <template #totalturnover="{ text }">
|
|
|
|
|
|
|
+ <!-- <template #totalturnover="{ text }">
|
|
|
<span>{{changeUnit(text)}}</span>
|
|
<span>{{changeUnit(text)}}</span>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
<!-- 涨跌 -->
|
|
<!-- 涨跌 -->
|
|
|
<template #change="{ record }">
|
|
<template #change="{ record }">
|
|
|
- <span>{{quoteChange(record, record.decimalplace)}}</span>
|
|
|
|
|
|
|
+ <span>{{quoteChange_out(record.refgoodscode)}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 幅度 -->
|
|
<!-- 幅度 -->
|
|
|
<template #amplitude="{ record }">
|
|
<template #amplitude="{ record }">
|
|
|
- <span>{{quoteAmplitude(record, record.decimalplace)}}</span>
|
|
|
|
|
|
|
+ <span>{{quoteAmplitude_out(record.refgoodscode)}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 振幅 -->
|
|
<!-- 振幅 -->
|
|
|
<template #vibration="{ record }">
|
|
<template #vibration="{ record }">
|
|
@@ -45,24 +45,44 @@
|
|
|
<span>{{index + 1}}</span>
|
|
<span>{{index + 1}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 买价 -->
|
|
<!-- 买价 -->
|
|
|
- <template #bid="{ text, record }">
|
|
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <!-- <template #bid="{ record }">
|
|
|
|
|
+ <span :class="handleQuotePriceColor_out(record.refgoodscode, 'bid')">
|
|
|
|
|
+ {{getQuoteValue_out(record.refgoodscode, 'bid')}}</span>
|
|
|
|
|
+ </template> -->
|
|
|
<!-- 卖价 -->
|
|
<!-- 卖价 -->
|
|
|
- <template #ask="{ text, record }">
|
|
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <!-- <template #ask="{ record }">
|
|
|
|
|
+ <span :class="handleQuotePriceColor_out(record.refgoodscode, 'ask')">
|
|
|
|
|
+ {{getQuoteValue_out(record.refgoodscode, 'ask')}}</span>
|
|
|
|
|
+ </template> -->
|
|
|
<!-- 最新价 -->
|
|
<!-- 最新价 -->
|
|
|
- <template #last="{ text, record }">
|
|
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
|
|
|
|
+ <template #last="{ record }">
|
|
|
|
|
+ <span :class="handleQuotePriceColor_out(record.refgoodscode, 'last')">
|
|
|
|
|
+ {{getQuoteValue_out(record.refgoodscode, 'last')}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 开盘 -->
|
|
|
|
|
+ <template #opened="{ record }">
|
|
|
|
|
+ <span :class="handleQuotePriceColor_out(record.refgoodscode, 'last')">
|
|
|
|
|
+ {{getQuoteValue_out(record.refgoodscode, 'opened')}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 结算 -->
|
|
|
|
|
+ <template #settle="{ record }">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ {{getQuoteValue_out(record.refgoodscode, 'settle')}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 昨结算 -->
|
|
|
|
|
+ <template #presettle="{ record }">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ {{getQuoteValue_out(record.refgoodscode, 'presettle')}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 最低价 -->
|
|
<!-- 最低价 -->
|
|
|
- <template #lowest="{ text, record }">
|
|
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
|
|
|
|
+ <template #lowest="{record }">
|
|
|
|
|
+ <span :class="handleQuotePriceColor_out(record.refgoodscode, 'lowest')">
|
|
|
|
|
+ {{getQuoteValue_out(record.refgoodscode, 'lowest')}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 最高价 -->
|
|
<!-- 最高价 -->
|
|
|
- <template #highest="{ text, record }">
|
|
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
|
|
|
|
+ <template #highest="{ record }">
|
|
|
|
|
+ <span :class="handleQuotePriceColor_out(record.refgoodscode, 'highest')">
|
|
|
|
|
+ {{getQuoteValue_out(record.refgoodscode, 'highest')}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</a-table>
|
|
</a-table>
|
|
|
<!-- 右键 -->
|
|
<!-- 右键 -->
|
|
@@ -81,10 +101,12 @@ import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
import { contextMenu, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
|
|
import { contextMenu, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
|
|
|
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';
|
|
|
-import { handleQuotePriceColor, handleSubcriteOnDemandQuote, quoteAmplitude, quoteAmplituOfVibration, quoteChange } from '@/common/setup/table/tableQuote';
|
|
|
|
|
|
|
+import { handleQuotePriceColor_out, handleSubcriteOnDemandQuote, quoteAmplitude_out, quoteAmplituOfVibration, quoteChange_out, getQuoteValue_out } from '@/common/setup/table/tableQuote';
|
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
import { RefGoodsList } from './interface';
|
|
import { RefGoodsList } from './interface';
|
|
|
import { columnsList, getBtnList, useSwapList } from './setup';
|
|
import { columnsList, getBtnList, useSwapList } from './setup';
|
|
|
|
|
+import { getAllQuoteDayInfo, getQuoteDayInfoByCode } from '@/services/bus/goods';
|
|
|
|
|
+import { QueryQuoteGoodsListRsp } from '@/services/go/Tjmd/interface';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'spot_trade_order_transaction_swap',
|
|
name: 'spot_trade_order_transaction_swap',
|
|
@@ -105,27 +127,28 @@ export default defineComponent({
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 行情按需订阅
|
|
// 行情按需订阅
|
|
|
- let stopSubcribe = handleSubcriteOnDemandQuote<QueryQuoteDayRsp>(goodsList, 'refgoodscode');
|
|
|
|
|
|
|
+ let stopSubcribe = handleSubcriteOnDemandQuote<QueryQuoteGoodsListRsp>(goodsList, 'refgoodscode');
|
|
|
// 过滤标的合约
|
|
// 过滤标的合约
|
|
|
function goodsChange(value: string) {
|
|
function goodsChange(value: string) {
|
|
|
filterGoodsList(value);
|
|
filterGoodsList(value);
|
|
|
// 停止上次订阅
|
|
// 停止上次订阅
|
|
|
stopSubcribe();
|
|
stopSubcribe();
|
|
|
// 重新发起订阅
|
|
// 重新发起订阅
|
|
|
- stopSubcribe = handleSubcriteOnDemandQuote<QueryQuoteDayRsp>(goodsList, 'refgoodscode');
|
|
|
|
|
|
|
+ stopSubcribe = handleSubcriteOnDemandQuote<QueryQuoteGoodsListRsp>(goodsList, 'refgoodscode');
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
isBottom,
|
|
isBottom,
|
|
|
...handleTableEventAndData<QueryQuoteDayRsp>(param),
|
|
...handleTableEventAndData<QueryQuoteDayRsp>(param),
|
|
|
btnList: getBtnList(true),
|
|
btnList: getBtnList(true),
|
|
|
- handleQuotePriceColor,
|
|
|
|
|
- quoteChange,
|
|
|
|
|
- quoteAmplitude,
|
|
|
|
|
|
|
+ handleQuotePriceColor_out,
|
|
|
|
|
+ quoteChange_out,
|
|
|
|
|
+ quoteAmplitude_out,
|
|
|
quoteAmplituOfVibration,
|
|
quoteAmplituOfVibration,
|
|
|
getRefGoodsList,
|
|
getRefGoodsList,
|
|
|
goodsList,
|
|
goodsList,
|
|
|
loading,
|
|
loading,
|
|
|
goodsChange,
|
|
goodsChange,
|
|
|
|
|
+ getQuoteValue_out,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|