|
@@ -1,67 +1,65 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!--参考行情-->
|
|
|
|
|
- <div class="topTableHeight">
|
|
|
|
|
- <a-table
|
|
|
|
|
- :columns="columns"
|
|
|
|
|
- class="srcollYTable"
|
|
|
|
|
- :scroll="{ x: '100%', y: 'calc(100vh - 384px)' }"
|
|
|
|
|
- :pagination="false"
|
|
|
|
|
- :loading="loading"
|
|
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
- :customRow="Rowclick"
|
|
|
|
|
- rowKey="goodscode"
|
|
|
|
|
- ref="tableRef"
|
|
|
|
|
- :data-source="goodsList"
|
|
|
|
|
- >
|
|
|
|
|
- <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" @cancel="closeContext" :list="firstBtn"></contextMenu>
|
|
|
|
|
- <component
|
|
|
|
|
- :is="componentId"
|
|
|
|
|
- v-if="componentId"
|
|
|
|
|
- :enumName="name"
|
|
|
|
|
- :selectedRow="selectedRow"
|
|
|
|
|
- @cancel="closeComponent"
|
|
|
|
|
- ></component>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!--参考行情-->
|
|
|
|
|
+ <div class="topTableHeight">
|
|
|
|
|
+ <a-table :columns="columns"
|
|
|
|
|
+ class="srcollYTable"
|
|
|
|
|
+ :scroll="{ x: '100%', y: 'calc(100vh - 384px)' }"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
+ :customRow="Rowclick"
|
|
|
|
|
+ rowKey="goodscode"
|
|
|
|
|
+ ref="tableRef"
|
|
|
|
|
+ :data-source="goodsList">
|
|
|
|
|
+ <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"
|
|
|
|
|
+ @cancel="closeContext"
|
|
|
|
|
+ :list="firstBtn"></contextMenu>
|
|
|
|
|
+ <component :is="componentId"
|
|
|
|
|
+ v-if="componentId"
|
|
|
|
|
+ :enumName="name"
|
|
|
|
|
+ :selectedRow="selectedRow"
|
|
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -71,7 +69,7 @@ import { QueryOrderQuoteReq } from '@/services/go/wrtrade/interface';
|
|
|
import { queryOrderQuote } from '@/services/go/wrtrade';
|
|
import { queryOrderQuote } from '@/services/go/wrtrade';
|
|
|
import { handleComposeTable } from '@/views/market/spot_trade/setup';
|
|
import { handleComposeTable } from '@/views/market/spot_trade/setup';
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
-import { handleSubcriteQuote, 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 { getGoodsListByTrade, getQutoGoodsByTradeMode } from '@/services/bus/goods';
|
|
import { getGoodsListByTrade, getQutoGoodsByTradeMode } from '@/services/bus/goods';
|
|
|
import { TradeMode } from '@/common/constants/enumCommon';
|
|
import { TradeMode } from '@/common/constants/enumCommon';
|
|
@@ -121,7 +119,7 @@ export default defineComponent({
|
|
|
// 行情商品
|
|
// 行情商品
|
|
|
const goodsList = getQutoGoodsByTradeMode(TradeMode.quote99);
|
|
const goodsList = getQutoGoodsByTradeMode(TradeMode.quote99);
|
|
|
// 行情按需订阅
|
|
// 行情按需订阅
|
|
|
- handleSubcriteQuote<QueryQuoteDayRsp>(goodsList);
|
|
|
|
|
|
|
+ handleSubcriteOnDemandQuote<QueryQuoteDayRsp>(goodsList);
|
|
|
// 获取列表数据
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
const queryTableAction = () => {
|
|
|
const param: QueryOrderQuoteReq = {
|
|
const param: QueryOrderQuoteReq = {
|