NEZ-2008 fix : 界面 国际化 更改

This commit is contained in:
likexuan
2022-07-12 14:06:14 +08:00
parent 2046d58bff
commit 5d43060453
29 changed files with 52 additions and 52 deletions

View File

@@ -195,7 +195,7 @@ export default {
<div class="partition"></div>
<div class="legend-value legend-value-agent">
<div class="map-asset">
<div class="progress-title">${self.$t('guide.agent')} ${self.$t('config.agent.up')}</div>
<div class="progress-title">${self.$t('overall.agent')} ${self.$t('config.agent.up')}</div>
<div class="success-progress progress-box">
<div class="top-progress" style="width: ${(dcStat.agent.up / (dcStat.agent.up + dcStat.agent.down)) * 100}%"></div>
<div style="width: 100%" class="bottom-progress"></div>
@@ -203,7 +203,7 @@ export default {
<div class="success-progress progress-content">${dcStat.agent.up}</div>
</div>
<div class="map-asset">
<div class="progress-title">${self.$t('guide.agent')} ${self.$t('asset.down')}</div>
<div class="progress-title">${self.$t('overall.agent')} ${self.$t('asset.down')}</div>
<div class="error-progress progress-box">
<div class="top-progress" style="width: ${(dcStat.agent.down / (dcStat.agent.up + dcStat.agent.down)) * 100}%"></div>
<div style="width: 100%" class="bottom-progress"></div>

View File

@@ -17,7 +17,7 @@
</span>
</div>
<!-- body -->
<div class="alert-label-box" v-if="that.auth">
<div class="alert-label-box">
<span :class="that.auth ? 'green-bg' : 'red-bg'" class="active-icon"></span>
<span class="alert-label-value">{{$t('overall.auth')}}</span>
</div>

View File

@@ -151,7 +151,7 @@ export default {
show: true,
width: 180
}, {
label: this.$t('alert.list.labels'),
label: this.$t('project.endpoint.labels2'),
prop: 'labels',
show: true
}, {
@@ -638,7 +638,7 @@ export default {
this.getAlertList()
},
labelsClassName (row) {
if (row.column.label === this.$t('alert.list.labels')) {
if (row.column.label === this.$t('project.endpoint.labels2')) {
return 'alert-message-list-labels'
} else {
return ''

View File

@@ -92,7 +92,7 @@ export default {
show: true
},
{
label: this.$t('project.module.configs'),
label: this.$t('overall.config'),
prop: 'configs',
minWidth: 150,
show: false

View File

@@ -147,11 +147,11 @@ export default {
},
user: {
operationLog: [
{ prop: 'operationLogTab', name: this.$t('config.operationlog.operationlog'), active: true },
{ prop: 'operationLogTab', name: this.$t('profile.operationRecord'), active: true },
{ prop: 'terminalLogTab', name: this.$t('config.terminallog.terminallog'), active: false }
],
terminalLog: [
{ prop: 'operationLogTab', name: this.$t('config.operationlog.operationlog'), active: false },
{ prop: 'operationLogTab', name: this.$t('profile.operationRecord'), active: false },
{ prop: 'terminalLogTab', name: this.$t('config.terminallog.terminallog'), active: true }
]
// module tab
@@ -250,10 +250,10 @@ export default {
const tabs = [
{ prop: 'panelTab', name: this.$t('overall.detail') },
{ prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
{ prop: 'endpointQuery', name: 'Metrics' }
{ prop: 'endpointQuery', name: this.$t('overall.metrics') }
]
if (hasLog) {
tabs.push({ prop: 'log', name: 'Log' })
tabs.push({ prop: 'log', name: this.$t('dashboard.panel.chartForm.typeVal.log.label') })
}
return tabs
}

View File

@@ -24,7 +24,7 @@
</div>
</template>
<template v-if="activeIndex === 1">
<div class="desc-text">{{$t('guide.agentTip')}}</div>
<div class="desc-text">{{$t('overall.agentTip')}}</div>
<div class="guide__btn-group">
<button :class="{'guide__btn--disabled': !hasButton('agent_add')}" class="guide__btn" type="button" @click="jumpAndOpen('agent')">{{$t('overall.createPrometheusServer')}}</button>
<button :class="{'guide__btn--disabled': !hasButton('agent_add')}" class="guide__btn" type="button" @click="downloadAgent">{{$t('guide.downloadAgent')}}</button>
@@ -87,9 +87,9 @@ export default {
},
{
route: '/agent',
title: this.$t('guide.agent'),
title: this.$t('overall.agent'),
icon: 'nz-icon nz-icon-agent',
tip: this.$t('guide.agentTip'),
tip: this.$t('overall.agentTip'),
permissionCode: 'agent_view'
},
{

View File

@@ -110,7 +110,7 @@ export default {
show: true,
width: 180
}, {
label: this.$t('alert.list.labels'),
label: this.$t('project.endpoint.labels2'),
prop: 'labels',
show: true,
NotSet: true,
@@ -161,7 +161,7 @@ export default {
label: 'summary',
disabled: false
}, {
name: this.$t('alert.list.labels'),
name: this.$t('project.endpoint.labels2'),
type: 'input',
label: 'labels',
disabled: false
@@ -230,7 +230,7 @@ export default {
return result
},
labelsClassName (row) {
if (row.column.label == this.$t('alert.list.labels')) {
if (row.column.label == this.$t('project.endpoint.labels2')) {
return 'alert-message-list-labels'
} else {
return ''

View File

@@ -302,7 +302,7 @@ export default {
width: 80,
show: true
}, {
label: this.$t('project.module.configs'),
label: this.$t('overall.config'),
prop: 'configs',
width: 80,
show: true

View File

@@ -26,7 +26,7 @@
</el-select>
</el-form-item>
<!-- ChartTemplate -->
<el-form-item :label="$t('overall.chartTemps')" prop="ChartTemplate">
<el-form-item :label="$t('overall.chartTemp')" prop="ChartTemplate">
<v-selectpage
:data="chartlList"
:tb-columns="ChartSearchShowFields"

View File

@@ -45,7 +45,7 @@
</el-select>
</el-form-item>
<!--email-->
<el-form-item label="E-mail" prop="email">
<el-form-item :label="$t('config.system.email.email')" prop="email">
<el-input id="account-input-email" v-model="editUser.email" maxlength="64" show-word-limit placeholder="" size="small" type="text"></el-input>
</el-form-item>
<!--mobile-->

View File

@@ -57,7 +57,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="Token" prop="token">
<el-form-item label="$t('asset.talon.token')" prop="token">
<el-input maxlength="64" show-word-limit id="prom-box-input-token" v-model="editPromServer.token" class="right-box-row-with-btn" placeholder="" size="small" type="text">
<!-- <i slot="suffix" class="nz-icon nz-icon-refresh" @click="refreshToken"></i>-->
</el-input>

View File

@@ -272,7 +272,7 @@
<el-input type="password" show-word-limit v-model="editAsset.clientPin" size="small"/>
</el-form-item> -->
<div v-if="editAsset.clientEnable === 1" v-show="talonShowTow">
<el-form-item label="Token" prop="clientToken">
<el-form-item label="$t('asset.talon.token')" prop="clientToken">
<el-input v-model="editAsset.clientToken" size="small" maxlength="64"/>
</el-form-item>
<el-form-item :label="$t('asset.port')" prop="clientPort">

View File

@@ -53,7 +53,7 @@
</el-form-item>
</el-form>
<div class="right-box-sub-title">{{ $t("project.module.configs") }}</div>
<div class="right-box-sub-title">{{ $t("overall.config") }}</div>
<div class="right-box-line"></div>
<el-table
@@ -292,7 +292,7 @@ export default {
show: true
},
{
label: this.$t('project.module.configs'),
label: this.$t('overall.config'),
prop: 'configs',
show: true,
width: 150

View File

@@ -223,7 +223,7 @@ export default {
show: true
},
{
label: this.$t('project.module.configs'),
label: this.$t('overall.config'),
prop: 'configs',
show: true
}

View File

@@ -79,7 +79,7 @@
<span>{{$t('dashboard.panel.chartForm.dataConfig')}}</span>
</div>
<el-tabs v-model="editChart.datasource" @tab-click="datasourceChange" type="card">
<el-tab-pane :label="$t('overall.metric')" name="metrics">
<el-tab-pane :label="$t('overall.metrics')" name="metrics">
<chart-config ref="childrenFrommetrics" :type="'metrics'" v-if="editChart.datasource == 'metrics'" :params.sync="editChart" @change="editChartChange"/>
</el-tab-pane>
<el-tab-pane :label="$t('overall.logs')" name="logs">

View File

@@ -26,7 +26,7 @@
</el-select>
</el-form-item>
<!--chartTemp list-->
<el-form-item :label="$t('overall.chartTemp')" prop="pid">
<el-form-item :label="$t('overall.chartTemplate')" prop="pid">
<el-select id="chart-box-group"
v-model="editChartTemp.pid"
class="right-box__select" clearable
@@ -42,7 +42,7 @@
<!-- 选择资产穿梭框 -->
<template v-if="showTransfer">
<div class="form__sub-title">{{editChartTemp.varType === 1 ? 'Asset' : 'Endpoint'}}</div>
<div class="form__sub-title">{{editChartTemp.varType === 1 ? $t('overall.asset') : $t('project.endpoint.endpoint')}}</div>
<nz-transfer ref="transfer"
:from="from"
:page-obj="transfer.pageObj"
@@ -54,7 +54,7 @@
@leftToRight="addAsset"
@rightToLeft="removeAsset"
@search="search">
<template v-slot:title>Selected</template>
<template v-slot:title>{{$t('overall.selected')}}</template>
</nz-transfer>
</template>
</el-form>

View File

@@ -70,7 +70,7 @@
<el-input id="module-box-input-name" v-model="editEndpoint.name" maxlength="64" placeholder="" show-word-limit size="small"></el-input>
</el-form-item>
<!--Enpoint template-->
<div class="right-box-sub-title">{{ $t("project.module.configs") }}
<div class="right-box-sub-title">{{ $t("overall.config") }}
<!-- <el-tooltip effect="light" placement="top">-->
<!-- <div slot="content">-->
<!-- {{$t('project.module.tip.defaultEndpointSet')}}-->
@@ -82,7 +82,7 @@
</div>
<div class="right-box-line"></div>
<!-- ChartTemplate -->
<!-- <el-form-item :label="$t('overall.chartTemps')" prop="ChartTemplate">-->
<!-- <el-form-item :label="$t('overall.chartTemplate')" prop="ChartTemplate">-->
<!-- <v-selectpage-->
<!-- v-model="editEndpoint.chartIds"-->
<!-- :data="chartTempList"-->
@@ -103,7 +103,7 @@
<div class="endpoint-title">
<span class="endpoint-title-content">
<i class="nz-icon nz-icon-arrow-down" :class="metricsShow?'':'is-active'" @click="metricsShow = !metricsShow"></i>
{{$t('overall.metric')}}
{{$t('overall.metrics')}}
</span>
<el-switch v-model="editEndpoint.configs[0].enable" size="small" :active-value="1" :inactive-value="0"></el-switch>
</div>
@@ -247,14 +247,14 @@
</span>
</div>
<div>
<el-form-item :prop="'configs.0.config.relabel_config.' + index + '.action'" class="" :label="'Action'" :rules="[{ required: true, message: $t('validate.required'), trigger: 'change' }]">
<el-form-item :prop="'configs.0.config.relabel_config.' + index + '.action'" class="" :label="$t('project.endpoint.action')" :rules="[{ required: true, message: $t('validate.required'), trigger: 'change' }]">
<el-select v-model="item.action" :id="'action' + index " class="right-box__select " placeholder="" popper-class="right-box-select-top prevent-clickoutside" size="small" @change="actionChange(index)" :rules="[{ required: true, message: $t('validate.required'), trigger: 'change' }]">
<el-option v-for="item2 in actionList" :id="'module-action-'+item2.label" :key="item2.label" :label="item2.label" :value="item2.value"></el-option>
</el-select>
</el-form-item>
<el-form-item
:prop="'configs.0.config.relabel_config.' + index + '.source_labels'"
class="half-form-item" :label="'Source labels'"
class="half-form-item" :label="$t('overall.sourceLabels')"
:rules="[
{ required: item.action === 'replace' || item.action === 'keep' || item.action === 'drop', message: $t('validate.required'), trigger: 'change' },
{ validator: item.action === 'replace' || item.action === 'keep' || item.action === 'drop'? arrLength : requirdRelabel, trigger: 'change' }
@@ -273,7 +273,7 @@
</el-form-item>
<el-form-item
:prop="'configs.0.config.relabel_config.' + index + '.target_label'"
class="half-form-item" :label="'Target label'"
class="half-form-item" :label="$t('overall.targetLabel')"
:rules="[
{ required: item.action === 'replace', message: $t('validate.required'), trigger: 'blur' },
{ pattern: /[a-zA-Z_][a-zA-Z0-9_]*/, message: $t('overall.ASCIIKey') ,trigger: 'blur'}]"
@@ -286,7 +286,7 @@
<div v-show="item.showAllRelabelOption" >
<!--Regex-->
<el-form-item
:label='"Regex"'
:label="$t('dashboard.panel.regex')"
class="half-form-item"
:prop="'configs.0.config.relabel_config.' + index + '.regex'"
:rules="[{ required: true, message: $t('validate.required'), trigger: 'change' }]">
@@ -294,7 +294,7 @@
</el-form-item>
<!--replacement-->
<el-form-item
:label='"Replacement"'
:label='$t("overall.replacement")'
class="half-form-item"
:prop="'configs.0.config.relabel_config.' + index + '.replacement'"
:rules="[{ required: item.action === 'replace' || item.action === 'labelmap', message: $t('validate.required'), trigger: 'change' }]">

View File

@@ -61,7 +61,7 @@
></el-autocomplete>
</el-form-item>
<!-- ChartTemplate -->
<el-form-item :label="$t('overall.chartTemps')" prop="ChartTemplate">
<el-form-item :label="$t('overall.chartTemplate')" prop="ChartTemplate">
<v-selectpage
:data="chartTempList"
:tb-columns="ChartSearchShowFields"
@@ -83,7 +83,7 @@
<div class="endpoint-title">
<span class="endpoint-title-content">
<i class="nz-icon nz-icon-arrow-down" :class="metricsShow?'':'is-active'" @click="metricsShow = !metricsShow"></i>
{{$t('overall.metric')}}
{{$t('overall.metrics')}}
</span>
<el-switch v-model="editModule.configs[0].enable" size="small" :active-value="1" :inactive-value="0"></el-switch>
</div>

View File

@@ -218,7 +218,7 @@
<el-radio-group v-model="editPanel.param.report.range.unit" size="small">
<el-radio-button label="day">{{ $t("dashboard.panel.prevDay") }}</el-radio-button>
<el-radio-button label="week">{{ $t("dashboard.panel.prevWeek") }}</el-radio-button>
<el-radio-button label="month">{{ $t("config.menus.parent") }}</el-radio-button>
<el-radio-button label="month">{{ $t("dashboard.panel.lastMonth") }}</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item

View File

@@ -198,7 +198,7 @@ export default {
width: 180,
sortable: 'custom'
}, {
label: this.$t('alert.list.labels'),
label: this.$t('project.endpoint.labels2'),
prop: 'labels',
show: true,
NotSet: true,
@@ -500,7 +500,7 @@ export default {
return num > 9 ? num : '0' + num
},
labelsClassName (row) {
if (row.column.label == this.$t('alert.list.labels')) {
if (row.column.label == this.$t('project.endpoint.labels2')) {
return 'alert-message-list-labels'
} else if (row.column.label == this.$t('overall.state')) {
if (row.row.state == 1) {

View File

@@ -259,12 +259,12 @@ export default {
sortable: 'custom'
},
{
label: this.$t('project.module.module'),
label: this.$t('overall.module'),
prop: 'module',
show: true
},
{
label: this.$t('project.module.configs'),
label: this.$t('overall.config'),
prop: 'configs',
minWidth: 150,
show: false

View File

@@ -135,13 +135,13 @@ export default {
sortable: 'custom',
minWidth: 80
}, {
label: this.$t('project.module.module'),
label: this.$t('overall.module'),
prop: 'moduleNum',
show: true,
width: 120,
sortable: 'custom'
}, {
label: this.$t('project.endpoint.endpoint'),
label: this.$t('asset.endpoint'),
prop: 'endpointNum',
show: true,
width: 120,

View File

@@ -115,7 +115,7 @@ export default {
prop: 'endpoint',
show: true
}, {
label: this.$t('alert.list.labels'),
label: this.$t('project.endpoint.labels2'),
prop: 'labels',
NotSet: true,
show: true

View File

@@ -11,7 +11,7 @@
:search-msg="searchMsg">
<template v-slot:top-tool-left>
<div class="profile-right__tabs-title">
<div class="profile-right__tabs-active" :class="{'is-active': profileShowLabel === 1}" @click="tabsActive">{{$t('profile.operationRecord')}}</div>
<div class="profile-right__tabs-active" :class="{'is-active': profileShowLabel === 1}" @click="tabsActive">{{$t('config.operationlog.operationlog')}}</div>
<div class="profile-right__tabs-active" style="margin-left: 10px" :class="{'is-active': profileShowLabel === 3}" @click="tabsActiveThree">{{$t('system.apikey.apiKey')}}</div>
<div class="profile-right__tabs-active" style="margin-left: 10px" :class="{'is-active': profileShowLabel === 2}" @click="tabsActiveTow">{{$t('profile.changePassword')}}</div>
</div>

View File

@@ -385,7 +385,7 @@ export default {
},
{
value: 'Logs',
label: this.$t('overall.logs'),
label: this.$t('dashboard.panel.chartForm.typeVal.log.label'),
icon: 'nz-icon nz-icon-logs'
}
],

View File

@@ -652,7 +652,7 @@ export default {
{ name: vm.$t('config.agent.up'), value: data.agent.up ? data.agent.up : 0 },
{ name: vm.$t('asset.down'), value: data.agent.down ? data.agent.down : 0 }
]
prometheusOption.title.text = vm.$t('guide.agent')
prometheusOption.title.text = vm.$t('overall.agent')
prometheusOption.legend.data = [vm.$t('config.agent.up'), vm.$t('asset.down')]
tooltipEndpointChart && tooltipEndpointChart.setOption(endpointOption, true)
tooltipPrometheusChart && tooltipPrometheusChart.setOption(prometheusOption, true)

View File

@@ -98,7 +98,7 @@
</el-button>
</div>
</div>
<div class="tools-header-title">{{$t('project.module.configs')}}</div>
<div class="tools-header-title">{{$t('overall.config')}}</div>
</div>
</template>

View File

@@ -102,7 +102,7 @@
</el-button>
</div>
</div>
<div class="tools-header-title">{{$t('project.module.configs')}}</div>
<div class="tools-header-title">{{$t('overall.config')}}</div>
</div>
</template>
<template v-slot:default>

File diff suppressed because one or more lines are too long