|
|
@@ -14,12 +14,41 @@
|
|
|
<template #totalturnover="{ text }">
|
|
|
<span>{{changeUnit(text)}}</span>
|
|
|
</template>
|
|
|
+ <!-- 涨跌 -->
|
|
|
+ <template #change="{ record }">
|
|
|
+ <span>{{quoteChange(record, record.decimalplace)}}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 幅度 -->
|
|
|
+ <template #amplitude="{ record }">
|
|
|
+ <span>{{quoteAmplituOfVibration(record, record.decimalplace)}}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 振幅 -->
|
|
|
+ <template #vibration="{ record }">
|
|
|
+ <span>{{quoteAmplituOfVibration(record, record.decimalplace)}}</span>
|
|
|
+ </template>
|
|
|
<template #index="{ index }">
|
|
|
<span>{{index + 1}}</span>
|
|
|
</template>
|
|
|
+ <!-- 买价 -->
|
|
|
<template #bid="{ text, record }">
|
|
|
<span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
</template>
|
|
|
+ <!-- 卖价 -->
|
|
|
+ <template #ask="{ text, record }">
|
|
|
+ <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 最新价 -->
|
|
|
+ <template #last="{ text, record }">
|
|
|
+ <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 最低价 -->
|
|
|
+ <template #lowest="{ text, record }">
|
|
|
+ <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 最高价 -->
|
|
|
+ <template #highest="{ text, record }">
|
|
|
+ <span :class="handleQuotePriceColor(text, record.presettle)">{{text}}</span>
|
|
|
+ </template>
|
|
|
</a-table>
|
|
|
<!-- 右键 -->
|
|
|
<contextMenu :contextMenu="contextMenu"
|
|
|
@@ -40,7 +69,7 @@ import { QueryOrderQuoteReq } from '@/services/go/wrtrade/interface';
|
|
|
import { queryOrderQuote } from '@/services/go/wrtrade';
|
|
|
import { handleComposeTable } from '@/views/market/spot_trade/setup';
|
|
|
import { ref } from 'vue';
|
|
|
-import { handleSubcriteQuote, handleQuotePriceColor } from '@/common/setup/table/tableQuote';
|
|
|
+import { handleSubcriteQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration } from '@/common/setup/table/tableQuote';
|
|
|
import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
import { getGoodsListByTrade, getQutoGoodsByTradeMode } from '@/services/bus/goods';
|
|
|
import { TradeMode } from '@/common/constants/enumCommon';
|
|
|
@@ -64,7 +93,7 @@ const columnsList = [
|
|
|
{ title: '昨结价', key: 'presettle' },
|
|
|
{ title: '最低价', key: 'lowest' },
|
|
|
{ title: '最高价', key: 'highest' },
|
|
|
- { title: '振幅', key: 'goodscode' }, // (最高价 - 最低价 ) / 最新价 * 100 %
|
|
|
+ { title: '振幅', key: 'vibration' }, // (最高价 - 最低价 ) / 最新价 * 100 %
|
|
|
{ title: '总量', key: 'totalvolume' },
|
|
|
{ title: '现量', key: 'lastvolume' },
|
|
|
{ title: '持仓量', key: 'holdvolume' },
|
|
|
@@ -116,6 +145,9 @@ export default defineComponent({
|
|
|
columns,
|
|
|
changeUnit,
|
|
|
handleQuotePriceColor,
|
|
|
+ quoteChange,
|
|
|
+ quoteAmplitude,
|
|
|
+ quoteAmplituOfVibration,
|
|
|
};
|
|
|
},
|
|
|
});
|