|
|
@@ -69,7 +69,7 @@ import { shallowRef, onMounted, onUnmounted, defineAsyncComponent } from 'vue'
|
|
|
import { parsePercent, handleNumberValue, formatDecimal } from '@/filters'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { getGoodsUnitName } from '@/constants/unit'
|
|
|
-import { useFuturesStore, useGlobalStore } from '@/stores'
|
|
|
+import { useFuturesStore, useGlobalStore, i18n } from '@/stores'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
@@ -78,27 +78,28 @@ const componentMap = new Map<string, unknown>([
|
|
|
|
|
|
const globalStore = useGlobalStore()
|
|
|
const futuresStore = useFuturesStore()
|
|
|
+const { global: { t } } = i18n
|
|
|
|
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent(() => true, false)
|
|
|
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
- { field: 'goodscode', label: '代码' },
|
|
|
- { field: 'goodsname', label: '名称' },
|
|
|
- { field: 'spec', label: '规格' },
|
|
|
- { field: 'bid', label: '买价' },
|
|
|
- { field: 'bidvolume', label: '买量' },
|
|
|
- { field: 'ask', label: '卖价' },
|
|
|
- { field: 'askvolume', label: '卖量' },
|
|
|
- { field: 'last', label: '当前价' },
|
|
|
- { field: 'rise', label: '涨跌' },
|
|
|
- { field: 'change', label: '涨跌幅' },
|
|
|
- { field: 'opened', label: '开盘' },
|
|
|
- { field: 'presettle', label: '昨结' },
|
|
|
- { field: 'highest', label: '最高' },
|
|
|
- { field: 'lowest', label: '最低' },
|
|
|
- { field: 'amplitude', label: '振幅' },
|
|
|
- { field: 'limitup', label: '涨停价' },
|
|
|
- { field: 'limitdown', label: '跌停价' },
|
|
|
+ { field: 'goodscode', label: t('quote.goodscode') },
|
|
|
+ { field: 'goodsname', label: t('quote.goodsname') },
|
|
|
+ { field: 'spec', label: t('quote.spec') },
|
|
|
+ { field: 'bid', label: t('quote.bid') },
|
|
|
+ { field: 'bidvolume', label: t('quote.bidvolume') },
|
|
|
+ { field: 'ask', label: t('quote.ask') },
|
|
|
+ { field: 'askvolume', label: t('quote.askvolume') },
|
|
|
+ { field: 'last', label: t('quote.last') },
|
|
|
+ { field: 'rise', label: t('quote.rise') },
|
|
|
+ { field: 'change', label: t('quote.change') },
|
|
|
+ { field: 'opened', label: t('quote.opened') },
|
|
|
+ { field: 'presettle', label: t('quote.presettle') },
|
|
|
+ { field: 'highest', label: t('quote.highest') },
|
|
|
+ { field: 'lowest', label: t('quote.lowest') },
|
|
|
+ { field: 'amplitude', label: t('quote.amplitude') },
|
|
|
+ { field: 'limitup', label: t('quote.limitup')},
|
|
|
+ { field: 'limitdown', label: t('quote.limitdown') },
|
|
|
])
|
|
|
|
|
|
const onRowClick = (row: Model.GoodsQuote) => {
|