NEZ-2497 fix : charts 图标缺少 title 提示

This commit is contained in:
likexuan
2023-01-06 14:02:48 +08:00
parent fb0e7f2482
commit 073dd77bdd
4 changed files with 35 additions and 29 deletions

View File

@@ -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
},

View File

@@ -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)

View File

@@ -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')
}
]
}

View File

@@ -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')
}
]
}