Handy_Cao 2 years ago
parent
commit
4abc473e86

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

@@ -73,13 +73,14 @@ const { dataList, run } = useRequest(queryQuoteGoodsList, {
 })
 
 const tableList = computed(() => {
-    return dataList.value.map(({ refgoodsid, 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,
             goodscode,
             goodsname,
+            refgoodsname,
             lastColor,
             openedColor,
             lowestColor,
@@ -98,6 +99,7 @@ const tableList = computed(() => {
 
 const columns: Model.TableColumn[] = [
     { prop: 'goodsname', label: '商品/标的' },
+    { prop: 'refgoodsname', label: '标的合约' },
     { prop: 'last', label: '当前价' },
     { prop: 'rise', label: '涨跌' },
     { prop: 'change', label: '幅度' },

+ 6 - 4
src/packages/pc/views/market/trade/swap/index.vue

@@ -66,13 +66,14 @@ const { dataList, run } = useRequest(queryQuoteGoodsList, {
 })
 
 const tableList = computed(() => {
-    return dataList.value.map(({ refgoodsid, 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,
             goodscode,
             goodsname,
+            refgoodsname,
             lastColor,
             openedColor,
             lowestColor,
@@ -90,9 +91,10 @@ const tableList = computed(() => {
 })
 
 const tableColumns = shallowRef<Model.TableColumn[]>([
-    { prop: 'goodscode', label: '商品代码' },
-    { prop: 'goodsname', label: '商品' },
-    { prop: 'last', label: '最新价' },
+    { prop: 'goodscode', label: '代码' },
+    { prop: 'goodsname', label: '名称' },
+    { prop: 'refgoodsname', label: '标的合约' },
+    { prop: 'last', label: '当前价' },
     { prop: 'rise', label: '涨跌' },
     { prop: 'change', label: '涨跌幅' },
     { prop: 'opened', label: '今开' },