|
|
@@ -1,6 +1,6 @@
|
|
|
<!-- 交易市场 - 掉期市场 -->
|
|
|
<template>
|
|
|
- <app-table :data="tableList" v-model:columns="tableColumns" @row-click="onRowClick" showIndex>
|
|
|
+ <app-table :data="tableList" v-model:columns="tableColumns" @row-click="onRowClick" @ showIndex>
|
|
|
<!-- 当前价 -->
|
|
|
<template #last="{ row }">
|
|
|
<span :class="row.lastColor">{{ row.last }}</span>
|
|
|
@@ -66,11 +66,12 @@ const { dataList, run } = useRequest(queryQuoteGoodsList, {
|
|
|
})
|
|
|
|
|
|
const tableList = computed(() => {
|
|
|
- return dataList.value.map(({ refgoodsid, goodsid, goodscode, goodsname, refgoodsname }) => {
|
|
|
+ return dataList.value.map(({ refgoodsid, goodsid, goodscode, refgoodscode, 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 {
|
|
|
goodsid,
|
|
|
+ refgoodscode,
|
|
|
refgoodsid,
|
|
|
goodscode,
|
|
|
goodsname,
|