|
|
@@ -11,7 +11,7 @@ import { Chart } from 'hqchart'
|
|
|
import { timerInterceptor } from '@/utils/timer'
|
|
|
import { changeUnit, handleNumberValue, handlePriceColor, parsePercent } from '@/filters'
|
|
|
import { ChartCycleType } from '@/constants/chart'
|
|
|
-import { useFuturesStore } from '@/stores'
|
|
|
+import { useFuturesStore, i18n } from '@/stores'
|
|
|
import { useDataset } from '@/hooks/hqchart/candlestick/dataset'
|
|
|
import { KLineChartContainer, NetworkFilterData, NetworkFilterCallback } from '@/hooks/hqchart/candlestick/types'
|
|
|
import HQChart from '@/components/base/hqchart/index.vue'
|
|
|
@@ -37,6 +37,8 @@ const props = defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const { t } = i18n.global
|
|
|
+
|
|
|
const { cycleType, networkFilter, updateLastData } = useDataset(props.goodsCode, props.cycleType)
|
|
|
const { quoteWatch, getGoodsQuote } = useFuturesStore()
|
|
|
const goods = getGoodsQuote(props.goodsCode)
|
|
|
@@ -148,15 +150,15 @@ const chartOption = {
|
|
|
AryText.push({ Text: FormatTimeString(Time), Color: paint.DateTimeColor })
|
|
|
}
|
|
|
AryText.push(
|
|
|
- { Text: '开:' + handleNumberValue(Open?.toFixed(decimalplace)), Color: paint.GetColor(Open, yclose || Open) },
|
|
|
- { Text: '高:' + handleNumberValue(High?.toFixed(decimalplace)), Color: paint.GetColor(High, yclose || High) },
|
|
|
- { Text: '低:' + handleNumberValue(Low?.toFixed(decimalplace)), Color: paint.GetColor(Low, yclose || Low) },
|
|
|
- { Text: '收:' + handleNumberValue(Close?.toFixed(decimalplace)), Color: paint.GetColor(Close, yclose || Close) }
|
|
|
+ { Text: t('chart.Open') + handleNumberValue(Open?.toFixed(decimalplace)), Color: paint.GetColor(Open, yclose || Open) },
|
|
|
+ { Text: t('chart.High') + handleNumberValue(High?.toFixed(decimalplace)), Color: paint.GetColor(High, yclose || High) },
|
|
|
+ { Text: t('chart.Low') + handleNumberValue(Low?.toFixed(decimalplace)), Color: paint.GetColor(Low, yclose || Low) },
|
|
|
+ { Text: t('chart.Close') + handleNumberValue(Close?.toFixed(decimalplace)), Color: paint.GetColor(Close, yclose || Close) }
|
|
|
)
|
|
|
if (goods.value?.trademode !== 99) {
|
|
|
AryText.push(
|
|
|
- { Text: '量:' + changeUnit(Vol), Color: paint.VolColor },
|
|
|
- { Text: '额:' + changeUnit(Amount), Color: paint.AmountColor }
|
|
|
+ { Text: t('chart.Vol') + changeUnit(Vol), Color: paint.VolColor },
|
|
|
+ { Text: t('chart.Amount') + changeUnit(Amount), Color: paint.AmountColor }
|
|
|
)
|
|
|
}
|
|
|
return {
|