|
|
@@ -29,20 +29,22 @@
|
|
|
<span :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
|
|
|
</template>
|
|
|
<!-- 涨跌 -->
|
|
|
- <template #change="{ record, text }">
|
|
|
+ <template #change="{ record }">
|
|
|
<span
|
|
|
- :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
+ :class="handleQuotePriceColor(record.last, record.presettle)"
|
|
|
>{{ quoteChange(record, record.decimalplace) }}</span>
|
|
|
</template>
|
|
|
<!-- 幅度 -->
|
|
|
- <template #amplitude="{ record, text }">
|
|
|
+ <template #amplitude="{ record }">
|
|
|
<span
|
|
|
- :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
+ :class="handleQuotePriceColor(record.last, record.presettle)"
|
|
|
>{{ quoteAmplitude(record, record.decimalplace) }}</span>
|
|
|
</template>
|
|
|
<!-- 振幅 -->
|
|
|
- <template #vibration="{ record }">
|
|
|
- <span>{{ quoteAmplituOfVibration(record, record.decimalplace) }}</span>
|
|
|
+ <template #vibration="{ record, text }">
|
|
|
+ <span
|
|
|
+ :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
+ >{{ quoteAmplituOfVibration(record, record.decimalplace) }}</span>
|
|
|
</template>
|
|
|
<template #index="{ index }">
|
|
|
<span>{{ index + 1 }}</span>
|
|
|
@@ -67,6 +69,10 @@
|
|
|
<template #highest="{ text, record }">
|
|
|
<span :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
|
|
|
</template>
|
|
|
+ <!-- 昨结价 -->
|
|
|
+ <template #preclose="{ text, record }">
|
|
|
+ <span :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
|
|
|
+ </template>
|
|
|
</a-table>
|
|
|
<!-- 右键 -->
|
|
|
<!-- <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="firstBtn"></contextMenu> -->
|
|
|
@@ -81,20 +87,20 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import { queryTableList, BtnList, contextMenu, defineAsyncComponent, defineComponent, ModalEnum, ComposeTableParam } from '@/common/export/commonTable';
|
|
|
-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 { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration, handleNoneValue } from '@/common/setup/table/tableQuote';
|
|
|
-import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
-import { getGoodsListByTrade, getQutoGoodsByTradeMode } from '@/services/bus/goods';
|
|
|
+import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
import { TradeMode } from '@/common/constants/enumCommon';
|
|
|
+import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
+import { ComposeTableParam, contextMenu, defineAsyncComponent, defineComponent, queryTableList } from '@/common/export/commonTable';
|
|
|
import { handleTableColums } from '@/common/setup/table/clolumn';
|
|
|
+import { handleNoneValue, handleQuotePriceColor, handleSubcriteOnDemandQuote, quoteAmplitude, quoteAmplituOfVibration, quoteChange } from '@/common/setup/table/tableQuote';
|
|
|
+import { getQutoGoodsByTradeMode } from '@/services/bus/goods';
|
|
|
+import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
+import { queryOrderQuote } from '@/services/go/wrtrade';
|
|
|
+import { QueryOrderQuoteReq } from '@/services/go/wrtrade/interface';
|
|
|
import { changeUnit } from '@/utils/qt/common';
|
|
|
-import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
+import { handleComposeTable } from '@/views/market/spot_trade/setup';
|
|
|
+import { ref } from 'vue';
|
|
|
|
|
|
const columnsList = [
|
|
|
{ title: '序号', key: 'index', width: 80 },
|
|
|
@@ -173,6 +179,7 @@ export default defineComponent({
|
|
|
};
|
|
|
},
|
|
|
});
|
|
|
+
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
</style>
|