|
|
@@ -4,7 +4,7 @@
|
|
|
<app-navbar title="掉期贸易" :show-back-button="showBackButton" />
|
|
|
</template>
|
|
|
<app-list :columns="columns" :data-list="tableList" @row-click="rowClick">
|
|
|
- <!-- 商品/标的 -->
|
|
|
+ <!-- 商品/代码 -->
|
|
|
<template #goodsname="{ row }">
|
|
|
<span>{{ row.goodsname }}</span>
|
|
|
<span class="text-small">{{ row.goodscode }}</span>
|
|
|
@@ -73,14 +73,14 @@ const { dataList, run } = useRequest(queryQuoteGoodsList, {
|
|
|
})
|
|
|
|
|
|
const tableList = computed(() => {
|
|
|
- return dataList.value.map(({ refgoodsid,refgoodscode, goodscode, goodsname }) => {
|
|
|
+ return dataList.value.map(({ refgoodsid, goodscode, goodsname, refgoodsname }) => {
|
|
|
const quote = futuresStore.getGoodsQuote(refgoodsid)
|
|
|
const { lastColor, openedColor, lowestColor, highestColor, last = 0, presettle = 0, rise = 0, change, amplitude, highest = 0, lowest = 0, opened = 0, decimalplace } = quote.value ?? {}
|
|
|
return {
|
|
|
refgoodsid,
|
|
|
- refgoodscode,
|
|
|
goodscode,
|
|
|
goodsname,
|
|
|
+ refgoodsname,
|
|
|
lastColor,
|
|
|
openedColor,
|
|
|
lowestColor,
|
|
|
@@ -98,8 +98,8 @@ const tableList = computed(() => {
|
|
|
})
|
|
|
|
|
|
const columns: Model.TableColumn[] = [
|
|
|
- { prop: 'goodsname', label: '商品/合约' },
|
|
|
- { prop: 'refgoodscode', label: '标的' },
|
|
|
+ { prop: 'goodsname', label: '商品/代码' },
|
|
|
+ { prop: 'refgoodsname', label: '标的合约' },
|
|
|
{ prop: 'last', label: '当前价' },
|
|
|
{ prop: 'rise', label: '涨跌' },
|
|
|
{ prop: 'change', label: '幅度' },
|