|
@@ -1,67 +1,120 @@
|
|
|
<template>
|
|
<template>
|
|
|
<!--参考行情-->
|
|
<!--参考行情-->
|
|
|
- <div class="topTableHeight">
|
|
|
|
|
- <a-table :columns="columns" :class="['srcollYTable', isBottom ? '' : 'srcollYTableNoBottom', goodsList.length ? 'noPlaceHolder' : 'hasPlaceHolder']" :scroll="{ x: '100%', y: isBottom ? 'calc(100vh - 378px)' : 'calc(100vh - 138px)' }" :pagination="false" :loading="loading" :expandedRowKeys="expandedRowKeys" :customRow="Rowclick" rowKey="goodscode" ref="tableRef" :data-source="goodsList">
|
|
|
|
|
|
|
+ <div class="topTableHeight topTableHeight_379">
|
|
|
|
|
+ <a-table
|
|
|
|
|
+ :columns="columns"
|
|
|
|
|
+ :class="['srcollYTable', isBottom ? '' : 'srcollYTableNoBottom', goodsList.length ? 'noPlaceHolder' : 'hasPlaceHolder']"
|
|
|
|
|
+ :scroll="{ x: '100%', y: isBottom ? 'calc(100vh - 378px)' : 'calc(100vh - 138px)' }"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
+ :customRow="Rowclick"
|
|
|
|
|
+ rowKey="goodscode"
|
|
|
|
|
+ ref="tableRef"
|
|
|
|
|
+ :data-source="goodsList"
|
|
|
|
|
+ >
|
|
|
<template #totalturnover="{ text }">
|
|
<template #totalturnover="{ text }">
|
|
|
<span>{{ changeUnit(text) }}</span>
|
|
<span>{{ changeUnit(text) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <!-- 买量 -->
|
|
|
|
|
+ <template #bidvolume="{ text }">
|
|
|
|
|
+ <span>{{ handleNoneValue(text) }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 卖量 -->
|
|
|
|
|
+ <template #askvolume="{ text }">
|
|
|
|
|
+ <span>{{ handleNoneValue(text) }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 开盘价 -->
|
|
|
|
|
+ <template #opened="{ record, text }">
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
|
|
+ >{{ handleNoneValue(text) }}</span>
|
|
|
|
|
+ </template>
|
|
|
<!-- 涨跌 -->
|
|
<!-- 涨跌 -->
|
|
|
<template #change="{ record }">
|
|
<template #change="{ record }">
|
|
|
- <span>{{ quoteChange(record, record.decimalplace) }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(record.last, record.presettle)"
|
|
|
|
|
+ >{{ quoteChange(record, record.decimalplace) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 幅度 -->
|
|
<!-- 幅度 -->
|
|
|
<template #amplitude="{ record }">
|
|
<template #amplitude="{ record }">
|
|
|
- <span>{{ quoteAmplitude(record, record.decimalplace) }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(record.last, record.presettle)"
|
|
|
|
|
+ >{{ quoteAmplitude(record, record.decimalplace) }}</span>
|
|
|
</template>
|
|
</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>
|
|
|
<template #index="{ index }">
|
|
<template #index="{ index }">
|
|
|
<span>{{ index + 1 }}</span>
|
|
<span>{{ index + 1 }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 买价 -->
|
|
<!-- 买价 -->
|
|
|
<template #bid="{ text, record }">
|
|
<template #bid="{ text, record }">
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
|
|
+ >{{ handleNoneValue(text) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 卖价 -->
|
|
<!-- 卖价 -->
|
|
|
<template #ask="{ text, record }">
|
|
<template #ask="{ text, record }">
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
|
|
+ >{{ handleNoneValue(text) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 最新价 -->
|
|
<!-- 最新价 -->
|
|
|
<template #last="{ text, record }">
|
|
<template #last="{ text, record }">
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
|
|
+ >{{ handleNoneValue(text) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 最低价 -->
|
|
<!-- 最低价 -->
|
|
|
<template #lowest="{ text, record }">
|
|
<template #lowest="{ text, record }">
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
|
|
+ >{{ handleNoneValue(text) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 最高价 -->
|
|
<!-- 最高价 -->
|
|
|
<template #highest="{ text, record }">
|
|
<template #highest="{ text, record }">
|
|
|
- <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
|
|
+ >{{ handleNoneValue(text) }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 昨结价 -->
|
|
|
|
|
+ <template #preclose="{ text, record }">
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="handleQuotePriceColor(text, record.presettle)"
|
|
|
|
|
+ >{{ handleNoneValue(text) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</a-table>
|
|
</a-table>
|
|
|
<!-- 右键 -->
|
|
<!-- 右键 -->
|
|
|
<!-- <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="firstBtn"></contextMenu> -->
|
|
<!-- <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="firstBtn"></contextMenu> -->
|
|
|
- <component :is="componentId" v-if="componentId" :enumName="name" :selectedRow="selectedRow" @cancel="closeComponent"></component>
|
|
|
|
|
|
|
+ <component
|
|
|
|
|
+ :is="componentId"
|
|
|
|
|
+ v-if="componentId"
|
|
|
|
|
+ :enumName="name"
|
|
|
|
|
+ :selectedRow="selectedRow"
|
|
|
|
|
+ @cancel="closeComponent"
|
|
|
|
|
+ ></component>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<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 } 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 { 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 { 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 { 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 { 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 = [
|
|
const columnsList = [
|
|
|
{ title: '序号', key: 'index', width: 80 },
|
|
{ title: '序号', key: 'index', width: 80 },
|
|
@@ -83,8 +136,8 @@ const columnsList = [
|
|
|
{ title: '总量', key: 'totalvolume' },
|
|
{ title: '总量', key: 'totalvolume' },
|
|
|
{ title: '现量', key: 'lastvolume' },
|
|
{ title: '现量', key: 'lastvolume' },
|
|
|
{ title: '持仓量', key: 'holdvolume' },
|
|
{ title: '持仓量', key: 'holdvolume' },
|
|
|
- { title: '日增', key: 'holdincrement' },
|
|
|
|
|
- { title: '金额', key: 'totalturnover' },
|
|
|
|
|
|
|
+ // { title: '日增', key: 'holdincrement' },
|
|
|
|
|
+ // { title: '金额', key: 'totalturnover' },
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -136,9 +189,11 @@ export default defineComponent({
|
|
|
quoteChange,
|
|
quoteChange,
|
|
|
quoteAmplitude,
|
|
quoteAmplitude,
|
|
|
quoteAmplituOfVibration,
|
|
quoteAmplituOfVibration,
|
|
|
|
|
+ handleNoneValue,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="less">
|
|
<style lang="less">
|
|
|
</style>
|
|
</style>
|