|
|
@@ -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: '今开' },
|