fix:处理中英文完全一样的国际化为一个

This commit is contained in:
zhangyu
2022-06-16 15:58:17 +08:00
parent c5976c83ee
commit e65f37b5b5
159 changed files with 1194 additions and 599 deletions

View File

@@ -232,22 +232,22 @@ export default {
]
},
model: [
{ prop: 'asset', name: this.$t('asset.assets'), active: true }
{ prop: 'asset', name: this.$t('guide.asset'), active: true }
],
dc: {
cabinet: [
{ prop: 'cabinet', name: this.$t('config.dc.cabinets'), active: true },
{ prop: 'asset', name: this.$t('asset.assets'), active: false },
{ prop: 'cabinet', name: this.$t('asset.cabinet'), active: true },
{ prop: 'asset', name: this.$t('guide.asset'), active: false },
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }
],
asset: [
{ prop: 'cabinet', name: this.$t('config.dc.cabinets'), active: false },
{ prop: 'asset', name: this.$t('asset.assets'), active: true },
{ prop: 'cabinet', name: this.$t('asset.cabinet'), active: false },
{ prop: 'asset', name: this.$t('guide.asset'), active: true },
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false }
],
alertMessage: [
{ prop: 'cabinet', name: this.$t('config.dc.cabinets'), active: false },
{ prop: 'asset', name: this.$t('asset.assets'), active: false },
{ prop: 'cabinet', name: this.$t('asset.cabinet'), active: false },
{ prop: 'asset', name: this.$t('guide.asset'), active: false },
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: true }
]
},

View File

@@ -121,7 +121,7 @@ export default {
label: 'addr',
disabled: false
}, {
name: this.$t('asset.state'),
name: this.$t('overall.state'),
type: 'input',
label: 'state',
disabled: false

View File

@@ -3,7 +3,7 @@
<div class="sub-top-tools">
<div class="sub-list-tabs" v-if="from===fromRoute.module">
<div class="sub-list-tab-title">{{obj.name}}</div>
<div @click="changeTab('endpoint')" class="sub-list-tab" id="endpoint-tab-change-endpoint">{{$t("asset.modules")}}</div>
<div @click="changeTab('endpoint')" class="sub-list-tab" id="endpoint-tab-change-endpoint">{{$t("overall.endpoint")}}</div>
<div class="sub-list-tab sub-list-tab-active" >{{$t("asset.alerts")}}</div>
</div>
<div class="sub-list-tabs" v-else>
@@ -14,7 +14,7 @@
</div><div :id="from+'-change-panelordetail'"
@click="changeTab(from == $CONSTANTS.fromRoute.asset || from == $CONSTANTS.fromRoute.rule || from == $CONSTANTS.fromRoute.endpoint? 'panel' : 'detail')" class="sub-list-tab">{{$t("overall.detail")}}</div><div
class="sub-list-tab sub-list-tab-active">{{$t("asset.alerts")}}</div><div v-if="from == $CONSTANTS.fromRoute.asset" :id="from+'-change-modules'"
@click="changeTab('endpoint')" class="sub-list-tab" v-has="'asset_endpoint_view'">{{$t("asset.modules")}}</div>
@click="changeTab('endpoint')" class="sub-list-tab" v-has="'asset_endpoint_view'">{{$t("overall.endpoint")}}</div>
<div @click="changeTab('endpointQuery')" class="sub-list-tab" v-has="'project_endpoint_query_chart_view'" v-if="from == $CONSTANTS.fromRoute.endpoint" :id="from+'-change-endpoint'">{{$t("overall.query")}}</div>
</div>
<div class="top-tool-right">
@@ -168,16 +168,16 @@ export default {
prop: 'description',
show: true
}, {
label: this.$t('alert.list.state'),
label: this.$t('overall.state'),
prop: 'state',
show: true,
width: 100
}, {
label: this.$t('alert.startAt'),
label: this.$t('overall.startTime'),
prop: 'startAt',
show: true
}, {
label: this.$t('alert.endAt'),
label: this.$t('overall.endTime'),
prop: 'endAt',
show: true
}, {
@@ -231,14 +231,14 @@ export default {
disabled: false
}, {
id: 12,
name: this.$t('alert.list.state'),
name: this.$t('overall.state'),
type: 'select',
label: 'alertMessageState',
disabled: false
},
{
id: 26,
name: this.$t('alert.list.id'),
name: this.$t('asset.id'),
type: 'id',
label: 'id',
disabled: false

View File

@@ -203,7 +203,7 @@ export default {
searchLabelList: [
{
id: 26,
name: this.$t('alert.list.id'),
name: this.$t('asset.id'),
type: 'input',
label: 'ids',
disabled: false

View File

@@ -104,7 +104,7 @@ export default {
label: 'manageIp',
disabled: false
}, {
name: this.$t('asset.state'),
name: this.$t('overall.state'),
type: 'assetState',
label: 'assetState',
id: 'stateIds',

View File

@@ -104,7 +104,7 @@ export default {
label: 'manageIp',
disabled: false
}, {
name: this.$t('asset.state'),
name: this.$t('overall.state'),
type: 'assetState',
label: 'assetState',
id: 'stateIds',

View File

@@ -80,7 +80,7 @@
:min-width="1000"
column-key="element"
:show-overflow-tooltip="true"
:label="$t('project.endpoint.element')">
:label="$t('dashboard.panel.chartForm.element')">
<template v-slot="scope">
<el-popover trigger="hover" placement="right" v-if="typeof scope.row.metricTip != 'undefined' && scope.row.metricTip != null">
<div>
@@ -100,7 +100,7 @@
:resizable="false"
prop="value"
column-key="value"
:label="$t('project.endpoint.value')"
:label="$t('overall.value')"
min-width="180">
</pl-table-column>
</pl-table>

View File

@@ -5,11 +5,11 @@
<div class="sub-list-tab-title">{{obj.host}}</div>
<div class="sub-list-tab" @click="changeTab('panel')" id="endpoint-tab-change-panel">{{$t("overall.detail")}}</div>
<div @click="changeTab('alertMessage')" class="sub-list-tab" v-has="'asset_alerts_view'" id="endpoint-tab-change-alertmsg">{{$t("asset.alerts")}}</div>
<div class="sub-list-tab sub-list-tab-active">{{$t("asset.modules")}}</div>
<div class="sub-list-tab sub-list-tab-active">{{$t("overall.endpoint")}}</div>
</div>
<div class="sub-list-tabs" v-if="from===fromRoute.module">
<div class="sub-list-tab-title">{{obj.name}}</div>
<div class="sub-list-tab sub-list-tab-active">{{$t("asset.modules")}}</div>
<div class="sub-list-tab sub-list-tab-active">{{$t("overall.endpoint")}}</div>
<div @click="changeTab('alertMessage')" class="sub-list-tab" id="endpoint-tab-change-alertmsg">{{$t("asset.alerts")}}</div>
</div>
<div class="top-tool-right">
@@ -206,7 +206,7 @@ export default {
show: true,
width: '120'
}, {
label: this.$t('project.endpoint.asset'),
label: this.$t('guide.asset'),
prop: 'asset',
show: true,
minWidth: '400'
@@ -216,7 +216,7 @@ export default {
show: true,
width: 120
}, {
label: this.$t('project.endpoint.port'),
label: this.$t('asset.port'),
prop: 'port',
show: true,
width: '120'
@@ -226,7 +226,7 @@ export default {
show: false,
width: 120
}, {
label: this.$t('project.endpoint.labels'),
label: this.$t('alert.list.labels'),
prop: 'labels',
show: true,
width: 200
@@ -236,17 +236,17 @@ export default {
show: true,
width: 200
}, {
label: this.$t('project.endpoint.path'),
label: this.$t('config.terminallog.path'),
prop: 'path',
show: true,
width: 200
}, {
label: this.$t('alert.list.state'),
label: this.$t('overall.state'),
prop: 'state',
show: true,
width: '80'
}, {
label: this.$t('project.endpoint.alerts'),
label: this.$t('overall.alert'),
prop: 'alerts',
show: true,
width: 180
@@ -283,7 +283,7 @@ export default {
disabled: false
}, {
id: 33,
name: this.$t('asset.state'),
name: this.$t('overall.state'),
// name: this.$t('asset.asset'),
type: 'select',
label: 'endpointState',
@@ -499,7 +499,7 @@ export default {
this.getTableData()
},
messageStyle (e) {
if (e.column.label == 'Alerts' || e.column.label == this.$t('project.endpoint.alerts')) {
if (e.column.label == 'Alerts' || e.column.label == this.$t('overall.alert')) {
if (e.row.alertNum > 0) {
return 'danger'
} else {

View File

@@ -65,7 +65,7 @@ export default {
searchLabelList: [
{
id: 11,
name: this.$t('config.operationlog.type'),
name: this.$t('overall.type'),
type: 'input',
label: 'type',
disabled: false
@@ -77,7 +77,7 @@ export default {
disabled: false
}, {
id: 13,
name: this.$t('config.operationlog.operation'),
name: this.$t('overall.option'),
type: 'selectString',
label: 'operation',
readonly: true,

View File

@@ -235,7 +235,7 @@ export default {
}).then(() => {
this.$put('/terminal/kill', { uuid: this.obj.uuid }).then(res => {
if (res.code === 200) {
this.$message.success(this.$t('config.terminallog.success'))
this.$message.success(this.$t('overall.result.success'))
this.$emit('exit')
} else {
this.$message.error(this.$t('config.terminallog.killErrorTip'))

View File

@@ -102,14 +102,14 @@ export default {
disabled: false
}, {
id: 16,
name: this.$t('config.terminallog.protocol'),
name: this.$t('webshell.protocol'),
type: 'selectString',
label: 'protocol',
readonly: true,
disabled: false
}, {
id: 17,
name: this.$t('config.terminallog.status'),
name: this.$t('overall.state'),
type: 'terminalStatus',
label: 'state',
readonly: true,
@@ -164,7 +164,7 @@ export default {
}).then(() => {
this.$put('/terminal/kill', { uuid: record.uuid }).then(res => {
if (res.code === 200) {
this.$message.success(this.$t('config.terminallog.success'))
this.$message.success(this.$t('overall.result.success'))
this.bottomBox.showSubList = false
this.getTableData()
} else {