diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index be962ab13..b1744eb6d 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -169,32 +169,32 @@ export default { panel: [ { prop: 'panelTab', name: this.$t('overall.detail'), active: true }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }, - { prop: 'endpointTab', name: 'Endpoint', active: false }, - { prop: 'log', name: 'Log', active: false } + { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false }, + { prop: 'log', name: this.$t('overall.logs'), active: false } ], alertMessage: [ { prop: 'panelTab', name: this.$t('overall.detail'), active: false }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: true }, - { prop: 'endpointTab', name: 'Endpoint', active: false }, - { prop: 'log', name: 'Log', active: false } + { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false }, + { prop: 'log', name: this.$t('overall.logs'), active: false } ], endpoint: [ { prop: 'panelTab', name: this.$t('overall.detail'), active: false }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }, - { prop: 'endpointTab', name: 'Endpoint', active: true }, - { prop: 'log', name: 'Log', active: false } + { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: true }, + { prop: 'log', name: this.$t('overall.logs'), active: false } ], log: [ { prop: 'panelTab', name: this.$t('overall.detail'), active: false }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }, - { prop: 'endpointTab', name: 'Endpoint', active: false }, - { prop: 'log', name: 'Log', active: true } + { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false }, + { prop: 'log', name: this.$t('overall.logs'), active: true } ], alertMessageSub: [ { prop: 'panelTab', name: this.$t('overall.detail'), active: false }, { prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }, - { prop: 'endpointTab', name: 'Endpoint', active: false }, - { prop: 'log', name: 'Log', active: false }, + { prop: 'endpointTab', name: this.$t('asset.endpoint'), active: false }, + { prop: 'log', name: this.$t('overall.logs'), active: false }, { prop: 'assetSubTab', name: this.$t('overall.assetSubTab'), active: true } ] }, @@ -209,8 +209,8 @@ export default { endpointTabTitle: [ { prop: 'panelTab', name: this.$t('overall.detail') }, { prop: 'endpointAlertMessage', name: this.$t('overall.alert') }, - { prop: 'Metrics', name: 'Metrics' }, - { prop: 'log', name: 'Log' } + { prop: 'Metrics', name: this.$t('project.metrics.metrics') }, + { prop: 'log', name: this.$t('overall.logs') } ] }, chartTemp: { @@ -261,10 +261,10 @@ export default { const tabs = [ { prop: 'panelTab', name: this.$t('overall.detail') }, { prop: 'endpointAlertMessage', name: this.$t('overall.alert') }, - { prop: 'Metrics', name: 'Metrics' } + { prop: 'Metrics', name: this.$t('project.metrics.metrics') } ] if (hasLog) { - tabs.push({ prop: 'log', name: 'Log' }) + tabs.push({ prop: 'log', name: this.$t('overall.logs') }) } return tabs } diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue index 04934b38a..a2562b11b 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -450,7 +450,7 @@
- Add thresholds + {{$t('overall.addThresholds')}}
@@ -486,13 +486,13 @@
-
Title
+
{{$t('project.topology.title')}}
-
Unit
+
{{$t('dashboard.panel.chartForm.unit')}}
-
Display
+
{{$t('dashboard.panel.chartForm.display')}}
@@ -514,7 +514,7 @@
- Add Colums + {{$t('overall.addColumns')}}
@@ -583,7 +583,7 @@ @@ -645,13 +645,13 @@
-
Columns
+
{{$t('dashboard.panel.chartForm.columns')}}
-
Display
+
{{$t('dashboard.panel.chartForm.display')}}
@@ -661,7 +661,7 @@
- Add valueMapping + {{$t('overall.addMapping')}}
diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index 1abf0914f..4f2e04439 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -69,16 +69,16 @@ {{$t('dashboard.panel.chartForm.dataConfig')}} - + - + - + - + diff --git a/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js b/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js index 461ca8aca..c93307da9 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js +++ b/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js @@ -48,13 +48,13 @@ export default { ], mappingTypeList: [ { - label: 'Value', + label: this.$t('overall.value'), value: 'value' }, { - label: 'Range', + label: this.$t('dashboard.panel.chartForm.valMapping.range'), value: 'range' }, { - label: 'Regx', + label: this.$t('dashboard.panel.chartForm.valMapping.regx'), value: 'regx' } ], diff --git a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue index 00c18d399..0902feca2 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/systemChartConfig.vue @@ -372,7 +372,54 @@ + + +
+ {{$t('dashboard.panel.chartForm.threshold')}} + +
+ + + + + + + + + +
+ {{$t('overall.addThresholds')}} +
+
+
+
@@ -403,13 +450,13 @@
-
Title
+
{{$t('project.topology.title')}}
-
Unit
+
{{$t('dashboard.panel.chartForm.unit')}}
-
Display
+
{{$t('dashboard.panel.chartForm.display')}}
@@ -431,7 +478,7 @@
- Add Colums + {{$t('overall.addColumns')}}
@@ -500,7 +547,7 @@ @@ -562,13 +609,13 @@
-
Columns
+
{{$t('dashboard.panel.chartForm.columns')}}
-
Display
+
{{$t('dashboard.panel.chartForm.display')}}
@@ -578,7 +625,7 @@
- Add valueMapping + {{$t('overall.addMapping')}}
diff --git a/nezha-fronted/src/components/common/searchSelectInfo.vue b/nezha-fronted/src/components/common/searchSelectInfo.vue index b30c9d3d9..a2942c145 100644 --- a/nezha-fronted/src/components/common/searchSelectInfo.vue +++ b/nezha-fronted/src/components/common/searchSelectInfo.vue @@ -18,7 +18,7 @@ const searchSelectInfo = { // value: 传给后台的值;label:显示给用 promType: [ // promServer类型 { value: 1, - label: 'Global' + label: i18n.t('overall.global') }, { value: 2, @@ -54,22 +54,22 @@ const searchSelectInfo = { // value: 传给后台的值;label:显示给用 endpointState: [ { value: 1, - label: 'UP' + label: i18n.t('config.agent.up') }, { value: 0, - label: 'DOWN' + label: i18n.t('config.agent.down') }, { value: 2, - label: 'SUSPENDED' + label: i18n.t('cconfig.dc.suspended') } ], promState: [ { value: 1, - label: 'UP' + label: i18n.t('config.agent.up') }, { value: '0,-1', - label: 'DOWN' + label: i18n.t('config.agent.down') } ], pingStatus: [ @@ -240,17 +240,17 @@ const searchSelectInfo = { // value: 传给后台的值;label:显示给用 searchMetrics: [ { id: 1, - name: 'Metrics', + name: i18n.t('project.metrics.metrics'), searchType: 'alertTypes' }, { id: 2, - name: 'Logs', + name: i18n.t('overall.logs'), searchType: 'alertTypes' }, { id: 3, - name: 'SNMP trap', + name: i18n.t('overall.SNMPTrap'), searchType: 'alertTypes' } ] diff --git a/nezha-fronted/src/components/common/table/asset/assetTable.vue b/nezha-fronted/src/components/common/table/asset/assetTable.vue index ef24dcb66..34974c744 100644 --- a/nezha-fronted/src/components/common/table/asset/assetTable.vue +++ b/nezha-fronted/src/components/common/table/asset/assetTable.vue @@ -274,12 +274,12 @@ export default { minWidth: 110, sortable: 'custom' }, { - label: 'SN', + label: this.$t('asset.sn'), prop: 'sn', show: true, minWidth: 110 }, { - label: 'Talon', + label: this.$t('asset.talon'), // prop: 'clientState', prop: 'talon', show: true,