|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <!--订单交易 挂牌转让-->
|
|
|
+ <!--参考行情-->
|
|
|
<div class="topTableHeight">
|
|
|
<a-table :columns="columns"
|
|
|
class="srcollYTable"
|
|
|
@@ -14,6 +14,12 @@
|
|
|
<template #totalturnover="{ text }">
|
|
|
<span>{{changeUnit(text)}}</span>
|
|
|
</template>
|
|
|
+ <template #index="{ index }">
|
|
|
+ <span>{{index + 1}}</span>
|
|
|
+ </template>
|
|
|
+ <template #bid="{ text, record }">
|
|
|
+ <span :class="handleQuotePriceColor(text, record.preclose)">{{text}}</span>
|
|
|
+ </template>
|
|
|
</a-table>
|
|
|
<!-- 右键 -->
|
|
|
<contextMenu :contextMenu="contextMenu"
|
|
|
@@ -34,7 +40,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 } from '@/common/setup/table/tableQuote';
|
|
|
+import { handleSubcriteQuote, handleQuotePriceColor } 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';
|
|
|
@@ -43,27 +49,25 @@ import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
import { changeUnit } from '@/utils/qt/common';
|
|
|
|
|
|
const columnsList = [
|
|
|
- { title: '序号', key: 'orderid' },
|
|
|
+ { title: '序号', key: 'index', width: 80 },
|
|
|
{ title: '代码', key: 'goodscode' },
|
|
|
{ title: '名称', key: 'goodsname' },
|
|
|
{ title: '买价', key: 'bid' },
|
|
|
{ title: '买量', key: 'bidvolume' },
|
|
|
{ title: '卖价', key: 'ask' },
|
|
|
{ title: '卖量', key: 'askvolume' },
|
|
|
-
|
|
|
{ title: '最新价', key: 'last' },
|
|
|
-
|
|
|
- // { title: '涨跌', key: 'goodscode' },
|
|
|
- // { title: '幅度', key: 'goodscode' },
|
|
|
- { title: '今开', key: 'opened' },
|
|
|
+ { title: '涨跌', key: 'change' },
|
|
|
+ { title: '幅度', key: 'amplitude' },
|
|
|
+ { title: '开盘价', key: 'opened' },
|
|
|
{ title: '昨收价', key: 'preclose' },
|
|
|
{ title: '最低价', key: 'lowest' },
|
|
|
{ title: '最高价', key: 'highest' },
|
|
|
- // {title: '振幅', key: 'goodscode'},
|
|
|
- // {title: '总量', key: 'goodscode'},
|
|
|
- // {title: '现量', key: 'goodscode'},
|
|
|
+ { title: '振幅', key: 'goodscode' },
|
|
|
+ { title: '总量', key: 'goodscode' },
|
|
|
+ { title: '现量', key: 'goodscode' },
|
|
|
{ title: '持仓量', key: 'holdvolume' },
|
|
|
- // { title: '日增', key: 'goodscode' },
|
|
|
+ { title: '日增', key: 'goodscode' },
|
|
|
{ title: '金额', key: 'totalturnover' },
|
|
|
];
|
|
|
|
|
|
@@ -110,6 +114,7 @@ export default defineComponent({
|
|
|
tableRef,
|
|
|
columns,
|
|
|
changeUnit,
|
|
|
+ handleQuotePriceColor,
|
|
|
};
|
|
|
},
|
|
|
});
|