diff --git a/nezha-fronted/src/components/chart/chart/options/chartTimeSeries.js b/nezha-fronted/src/components/chart/chart/options/chartTimeSeries.js index 32f251521..1b6ec6cac 100644 --- a/nezha-fronted/src/components/chart/chart/options/chartTimeSeries.js +++ b/nezha-fronted/src/components/chart/chart/options/chartTimeSeries.js @@ -12,8 +12,8 @@ export const chartTimeSeriesLineOption = { toolbox: { show: false, top: '0', - right: '18', - showTitle: false, + right: '36', + showTitle: true, feature: { dataZoom: { yAxisIndex: false, @@ -51,7 +51,7 @@ export const chartTimeSeriesLineOption = { grid: { left: 20, right: 35, - top: 35, + top: 42, bottom: 15, containLabel: true }, diff --git a/nezha-fronted/src/components/chart/chart/tools.js b/nezha-fronted/src/components/chart/chart/tools.js index d91b5baf0..0ed08daf7 100644 --- a/nezha-fronted/src/components/chart/chart/tools.js +++ b/nezha-fronted/src/components/chart/chart/tools.js @@ -2,6 +2,7 @@ import { chartType } from '@/components/common/js/constants' import chartBarOption from './options/chartBar' import chartPieOption from './options/chartPie' import lodash from 'lodash' +import i18n from '@/components/common/i18n' import { chartTimeSeriesLineOption, chartTimeSeriesScatterOption, @@ -14,6 +15,11 @@ import { randomcolor } from '@/components/common/js/radomcolor/randomcolor' export function getOption (type) { let chartOption = null + chartTimeSeriesAreaOption.toolbox.feature.dataZoom.title = { + zoom: i18n.t('overall.toolBox.zoom'), + back: i18n.t('overall.toolBox.back') + } + chartTimeSeriesAreaOption.toolbox.feature.myStack.title = i18n.t('overall.toolBox.stack') switch (type) { case chartType.area: { chartOption = lodash.cloneDeep(chartTimeSeriesAreaOption) diff --git a/nezha-fronted/src/components/common/searchBox/searchBoxInfo.js b/nezha-fronted/src/components/common/searchBox/searchBoxInfo.js index 96b7a22f6..1a2f4aaef 100644 --- a/nezha-fronted/src/components/common/searchBox/searchBoxInfo.js +++ b/nezha-fronted/src/components/common/searchBox/searchBoxInfo.js @@ -326,49 +326,49 @@ export default { issueState: [ { value: 1, - label: this.$t('issue.open') + label: i18n.t('issue.open') }, { value: 2, - label: this.$t('issue.hasBeenAssigned') + label: i18n.t('issue.hasBeenAssigned') }, { value: 3, - label: this.$t('issue.beingProcessed') + label: i18n.t('issue.beingProcessed') }, { value: 4, - label: this.$t('issue.hangUp') + label: i18n.t('issue.hangUp') }, { value: 5, - label: this.$t('issue.resolved') + label: i18n.t('issue.resolved') }, { value: 6, - label: this.$t('overall.close') + label: i18n.t('overall.close') }, { value: 7, - label: this.$t('overall.cancel') + label: i18n.t('overall.cancel') } ], silenceState: [ { value: 1, - label: this.$t('silence.active') + label: i18n.t('silence.active') }, { value: 2, - label: this.$t('silence.pending') + label: i18n.t('silence.pending') }, { value: 3, - label: this.$t('silence.expired') + label: i18n.t('silence.expired') } ], priority: [ { value: 1, - label: this.$t('dashboard.panel.chartForm.high') + label: i18n.t('dashboard.panel.chartForm.high') }, { value: 2, - label: this.$t('issue.middle') + label: i18n.t('issue.middle') }, { value: 3, - label: this.$t('issue.low') + label: i18n.t('issue.low') } ] } diff --git a/nezha-fronted/src/components/common/searchSelectInfo.js b/nezha-fronted/src/components/common/searchSelectInfo.js index 8898e49b1..d384f19e9 100644 --- a/nezha-fronted/src/components/common/searchSelectInfo.js +++ b/nezha-fronted/src/components/common/searchSelectInfo.js @@ -331,49 +331,49 @@ export default { issueState: [ { value: 1, - label: this.$t('issue.open') + label: i18n.t('issue.open') }, { value: 2, - label: this.$t('issue.hasBeenAssigned') + label: i18n.t('issue.hasBeenAssigned') }, { value: 3, - label: this.$t('issue.beingProcessed') + label: i18n.t('issue.beingProcessed') }, { value: 4, - label: this.$t('issue.hangUp') + label: i18n.t('issue.hangUp') }, { value: 5, - label: this.$t('issue.resolved') + label: i18n.t('issue.resolved') }, { value: 6, - label: this.$t('overall.close') + label: i18n.t('overall.close') }, { value: 7, - label: this.$t('overall.cancel') + label: i18n.t('overall.cancel') } ], silenceState: [ { value: 1, - label: this.$t('silence.active') + label: i18n.t('silence.active') }, { value: 2, - label: this.$t('silence.pending') + label: i18n.t('silence.pending') }, { value: 3, - label: this.$t('silence.expired') + label: i18n.t('silence.expired') } ], priority: [ { value: 1, - label: this.$t('dashboard.panel.chartForm.high') + label: i18n.t('dashboard.panel.chartForm.high') }, { value: 2, - label: this.$t('issue.middle') + label: i18n.t('issue.middle') }, { value: 3, - label: this.$t('issue.low') + label: i18n.t('issue.low') } ] }