fix:国际化替换

This commit is contained in:
zhangyu
2022-06-23 16:58:18 +08:00
parent 8d8654a13a
commit 37377e63ed
14 changed files with 14 additions and 14 deletions

View File

@@ -109,7 +109,7 @@ export default {
show: true, show: true,
width: 150 width: 150
}, { }, {
label: this.$t('overall.enable'), label: this.$t('overall.enabled'),
prop: 'status', prop: 'status',
show: true, show: true,
width: 100 width: 100

View File

@@ -3,7 +3,7 @@
<div class="input-box"> <div class="input-box">
<div class="input-box-item" style="display: none;"> <div class="input-box-item" style="display: none;">
<el-input v-model="lnglat" @blur="setLatlng" @change="setLatlng"> <el-input v-model="lnglat" @blur="setLatlng" @change="setLatlng">
<template slot="prepend" v-if="showZoom">{{$t('config.dc.lnglat')}}</template> <template slot="prepend" v-if="showZoom">{{$t('config.system.basic.lnglat')}}</template>
</el-input> </el-input>
</div> </div>
<div class="input-box-item" v-if="showZoom"> <div class="input-box-item" v-if="showZoom">

View File

@@ -2,7 +2,7 @@
<div v-clickoutside="{obj:endpoint,func:clickOutside}" :class="{'right-box-add-endpoint-snmp': currentModule.type && currentModule.type.toLowerCase() == 'snmp'}" class="right-box right-box-add-endpoint"> <div v-clickoutside="{obj:endpoint,func:clickOutside}" :class="{'right-box-add-endpoint-snmp': currentModule.type && currentModule.type.toLowerCase() == 'snmp'}" class="right-box right-box-add-endpoint">
<div class="right-box__header"> <div class="right-box__header">
<!-- begin--标题--> <!-- begin--标题-->
<div class="header__title">{{$t("overall.createEndpoint")}}</div> <div class="header__title">{{$t("config.system.basic.lnglatll.createEndpoint")}}</div>
<!-- end--标题--> <!-- end--标题-->
<div class="header__operation"> <div class="header__operation">
<span v-cancel="{obj: object, func: esc}"><i class="nz-icon nz-icon-close"></i></span> <span v-cancel="{obj: object, func: esc}"><i class="nz-icon nz-icon-close"></i></span>

View File

@@ -127,7 +127,7 @@
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('overall.enable')" :label="$t('overall.enabled')"
prop="status" prop="status"
class="form-item__switch" class="form-item__switch"
> >

View File

@@ -184,7 +184,7 @@ export default {
roles: [], roles: [],
mfaLevelList: [ mfaLevelList: [
{ value: 0, label: this.$t('profile.close') }, { value: 0, label: this.$t('profile.close') },
{ value: 1, label: this.$t('overall.enable') }, { value: 1, label: this.$t('overall.enabled') },
{ value: 2, label: this.$t('config.user.forceEnable') } { value: 2, label: this.$t('config.user.forceEnable') }
], ],
languageList: [ languageList: [

View File

@@ -27,7 +27,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('config.dc.lnglat')" prop="lnglat"> <el-form-item :label="$t('config.system.basic.lnglat')" prop="lnglat">
<div style="display: flex"> <div style="display: flex">
<el-input v-model="editDc.lnglat" maxlength="256" placeholder="" size="small" style="width: calc(100% - 50px);margin-right: 20px;"></el-input> <el-input v-model="editDc.lnglat" maxlength="256" placeholder="" size="small" style="width: calc(100% - 50px);margin-right: 20px;"></el-input>
<latlng-picker <latlng-picker

View File

@@ -715,7 +715,7 @@ export default {
{ name: this.$t('project.endpoint.authTypeToken'), value: 2 } { name: this.$t('project.endpoint.authTypeToken'), value: 2 }
], ],
endpointStateList: [ endpointStateList: [
{ name: this.$t('overall.enable'), value: 1 }, { name: this.$t('overall.enabled'), value: 1 },
{ name: this.$t('profile.close'), value: 0 } { name: this.$t('profile.close'), value: 0 }
], ],
configsCopyValue: '', configsCopyValue: '',

View File

@@ -146,7 +146,7 @@
</nz-tooltip> </nz-tooltip>
</template> </template>
<template v-else-if="item.prop === 'enabled'"> <template v-else-if="item.prop === 'enabled'">
<span v-if="scope.row[item.prop] === 1">{{$t('overall.enable')}}</span> <span v-if="scope.row[item.prop] === 1">{{$t('overall.enabled')}}</span>
<span v-else>{{$t('profile.close')}}</span> <span v-else>{{$t('profile.close')}}</span>
</template> </template>
<span v-else-if="item.prop === 'id'" :id="'globalSearch' + scope.row.id">{{scope.row[item.prop]}}</span> <span v-else-if="item.prop === 'id'" :id="'globalSearch' + scope.row.id">{{scope.row[item.prop]}}</span>

View File

@@ -72,7 +72,7 @@ export default {
customTableTitle: [ customTableTitle: [
{ label: this.$t('alert.config.schedEnable'), prop: 'schedule' }, { label: this.$t('alert.config.schedEnable'), prop: 'schedule' },
{ label: this.$t('backup.backupRetention'), prop: 'retention' }, { label: this.$t('backup.backupRetention'), prop: 'retention' },
{ label: this.$t('overall.enable'), prop: 'state' } { label: this.$t('overall.enabled'), prop: 'state' }
], ],
customTableTitle2: [ customTableTitle2: [
{ label: this.$t('config.assetLabel.date'), prop: 'time', minwidth: 228 }, { label: this.$t('config.assetLabel.date'), prop: 'time', minwidth: 228 },

View File

@@ -60,7 +60,7 @@
<el-form-item :label="$t('config.system.basic.mapConfig')" class="basic-lnglat" prop="lnglat"> <el-form-item :label="$t('config.system.basic.mapConfig')" class="basic-lnglat" prop="lnglat">
<div style="display: flex"> <div style="display: flex">
<el-input v-model="basic.lnglat" maxlength="256" placeholder="" style="width: calc(100% - 50px); padding-right: 50px;"> <el-input v-model="basic.lnglat" maxlength="256" placeholder="" style="width: calc(100% - 50px); padding-right: 50px;">
<template slot="prepend">{{$t('config.dc.lnglat')}}</template> <template slot="prepend">{{$t('config.system.basic.lnglat')}}</template>
</el-input> </el-input>
<latlng-picker ref="latlngPicker" :init-data="basic.lnglat" :show-zoom="true" @lnglatChange="lnglatChange"></latlng-picker> <latlng-picker ref="latlngPicker" :init-data="basic.lnglat" :show-zoom="true" @lnglatChange="lnglatChange"></latlng-picker>
</div> </div>

View File

@@ -70,7 +70,7 @@
<template slot="append"><span >{{$t('config.system.basic.day')}}</span></template> <template slot="append"><span >{{$t('config.system.basic.day')}}</span></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('config.system.monitor.logs_storage_type')" prop="logs_storage_type"> <el-form-item :label="$t('config.system.monitor.metrics_storage_type')" prop="logs_storage_type">
<el-select v-model="monitor.logs_storage_type" popper-class="right-box-select-top right-public-box-dropdown-top"> <el-select v-model="monitor.logs_storage_type" popper-class="right-box-select-top right-public-box-dropdown-top">
<el-option :label="$t('config.system.monitor.local')" value="1"></el-option> <el-option :label="$t('config.system.monitor.local')" value="1"></el-option>
<el-option :label="$t('config.system.monitor.s3')" value="2"></el-option> <el-option :label="$t('config.system.monitor.s3')" value="2"></el-option>

View File

@@ -50,7 +50,7 @@
</div> </div>
<div class="profile-left__button table-operation-items"> <div class="profile-left__button table-operation-items">
<button @click="profileEnable" class="footer__btn" v-if="mfaEnable != '1' && mfaLevel == 0"> <button @click="profileEnable" class="footer__btn" v-if="mfaEnable != '1' && mfaLevel == 0">
<span>{{$t('overall.enable')}}</span> <span>{{$t('overall.enabled')}}</span>
</button> </button>
<button @click="profileDisable" class="footer__btn footer__btn--light" :class="{'footer__btn--disabled': mfaEnable == 1 || mfaLevel == 2}" v-if="mfaEnable == '1' || mfaLevel > 0" :disabled="mfaEnable == 1 || mfaLevel == 2 "> <button @click="profileDisable" class="footer__btn footer__btn--light" :class="{'footer__btn--disabled': mfaEnable == 1 || mfaLevel == 2}" v-if="mfaEnable == '1' || mfaLevel > 0" :disabled="mfaEnable == 1 || mfaLevel == 2 ">
<span>{{$t('profile.close')}}</span> <span>{{$t('profile.close')}}</span>

View File

@@ -149,7 +149,7 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('setup.system.federation')" prop="prometheusFederationEnabled" key="sysprometheusFederationEnabled" > <el-form-item :label="$t('setup.system.federation')" prop="prometheusFederationEnabled" key="sysprometheusFederationEnabled" >
<el-select v-model="system.prometheusFederationEnabled" :placeholder="$t('el.select.placeholder')" style="width: 100%" > <el-select v-model="system.prometheusFederationEnabled" :placeholder="$t('el.select.placeholder')" style="width: 100%" >
<el-option :label="$t('overall.enable')" :value="1"></el-option> <el-option :label="$t('overall.enabled')" :value="1"></el-option>
<el-option :label="$t('overall.unavailable')" :value="0"></el-option> <el-option :label="$t('overall.unavailable')" :value="0"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>

View File

@@ -56,7 +56,7 @@
<el-form-item :label="$t('config.system.basic.mapConfig')" class="basic-lnglat" prop="lnglat"> <el-form-item :label="$t('config.system.basic.mapConfig')" class="basic-lnglat" prop="lnglat">
<div style="display: flex"> <div style="display: flex">
<el-input v-model="basic.lnglat" maxlength="256" placeholder="" style="width: calc(100% - 50px); padding-right: 50px;"> <el-input v-model="basic.lnglat" maxlength="256" placeholder="" style="width: calc(100% - 50px); padding-right: 50px;">
<template slot="prepend">{{$t('config.dc.lnglat')}}</template> <template slot="prepend">{{$t('config.system.basic.lnglat')}}</template>
</el-input> </el-input>
<latlng-picker ref="latlngPicker" :init-data="basic.lnglat" :show-zoom="true" @lnglatChange="lnglatChange"></latlng-picker> <latlng-picker ref="latlngPicker" :init-data="basic.lnglat" :show-zoom="true" @lnglatChange="lnglatChange"></latlng-picker>
</div> </div>