Handy_Cao 2 лет назад
Родитель
Сommit
700509ec88

+ 2 - 1
src/packages/mobile/views/swap/list/Index.vue

@@ -73,11 +73,12 @@ const { dataList, run } = useRequest(queryQuoteGoodsList, {
 })
 
 const tableList = computed(() => {
-    return dataList.value.map(({ refgoodsid, goodsid, goodscode, goodsname, refgoodsname }) => {
+    return dataList.value.map(({ refgoodsid, refgoodscode, goodsid, 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 {
             goodsid,
+            refgoodscode,
             refgoodsid,
             goodscode,
             goodsname,

+ 3 - 2
src/packages/pc/views/market/trade/swap/index.vue

@@ -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,