fix:国际化替换
This commit is contained in:
@@ -109,7 +109,7 @@ export default {
|
||||
show: true,
|
||||
width: 150
|
||||
}, {
|
||||
label: this.$t('overall.enable'),
|
||||
label: this.$t('overall.enabled'),
|
||||
prop: 'status',
|
||||
show: true,
|
||||
width: 100
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="input-box">
|
||||
<div class="input-box-item" style="display: none;">
|
||||
<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>
|
||||
</div>
|
||||
<div class="input-box-item" v-if="showZoom">
|
||||
|
||||
@@ -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 class="right-box__header">
|
||||
<!-- begin--标题-->
|
||||
<div class="header__title">{{$t("overall.createEndpoint")}}</div>
|
||||
<div class="header__title">{{$t("config.system.basic.lnglatll.createEndpoint")}}</div>
|
||||
<!-- end--标题-->
|
||||
<div class="header__operation">
|
||||
<span v-cancel="{obj: object, func: esc}"><i class="nz-icon nz-icon-close"></i></span>
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
:label="$t('overall.enable')"
|
||||
:label="$t('overall.enabled')"
|
||||
prop="status"
|
||||
class="form-item__switch"
|
||||
>
|
||||
|
||||
@@ -184,7 +184,7 @@ export default {
|
||||
roles: [],
|
||||
mfaLevelList: [
|
||||
{ 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') }
|
||||
],
|
||||
languageList: [
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</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">
|
||||
<el-input v-model="editDc.lnglat" maxlength="256" placeholder="" size="small" style="width: calc(100% - 50px);margin-right: 20px;"></el-input>
|
||||
<latlng-picker
|
||||
|
||||
@@ -715,7 +715,7 @@ export default {
|
||||
{ name: this.$t('project.endpoint.authTypeToken'), value: 2 }
|
||||
],
|
||||
endpointStateList: [
|
||||
{ name: this.$t('overall.enable'), value: 1 },
|
||||
{ name: this.$t('overall.enabled'), value: 1 },
|
||||
{ name: this.$t('profile.close'), value: 0 }
|
||||
],
|
||||
configsCopyValue: '',
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
</nz-tooltip>
|
||||
</template>
|
||||
<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>
|
||||
</template>
|
||||
<span v-else-if="item.prop === 'id'" :id="'globalSearch' + scope.row.id">{{scope.row[item.prop]}}</span>
|
||||
|
||||
@@ -72,7 +72,7 @@ export default {
|
||||
customTableTitle: [
|
||||
{ label: this.$t('alert.config.schedEnable'), prop: 'schedule' },
|
||||
{ label: this.$t('backup.backupRetention'), prop: 'retention' },
|
||||
{ label: this.$t('overall.enable'), prop: 'state' }
|
||||
{ label: this.$t('overall.enabled'), prop: 'state' }
|
||||
],
|
||||
customTableTitle2: [
|
||||
{ label: this.$t('config.assetLabel.date'), prop: 'time', minwidth: 228 },
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<el-form-item :label="$t('config.system.basic.mapConfig')" class="basic-lnglat" prop="lnglat">
|
||||
<div style="display: flex">
|
||||
<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>
|
||||
<latlng-picker ref="latlngPicker" :init-data="basic.lnglat" :show-zoom="true" @lnglatChange="lnglatChange"></latlng-picker>
|
||||
</div>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<template slot="append"><span >{{$t('config.system.basic.day')}}</span></template>
|
||||
</el-input>
|
||||
</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-option :label="$t('config.system.monitor.local')" value="1"></el-option>
|
||||
<el-option :label="$t('config.system.monitor.s3')" value="2"></el-option>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
<div class="profile-left__button table-operation-items">
|
||||
<button @click="profileEnable" class="footer__btn" v-if="mfaEnable != '1' && mfaLevel == 0">
|
||||
<span>{{$t('overall.enable')}}</span>
|
||||
<span>{{$t('overall.enabled')}}</span>
|
||||
</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 ">
|
||||
<span>{{$t('profile.close')}}</span>
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
</el-form-item>
|
||||
<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-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-select>
|
||||
</el-form-item>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<el-form-item :label="$t('config.system.basic.mapConfig')" class="basic-lnglat" prop="lnglat">
|
||||
<div style="display: flex">
|
||||
<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>
|
||||
<latlng-picker ref="latlngPicker" :init-data="basic.lnglat" :show-zoom="true" @lnglatChange="lnglatChange"></latlng-picker>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user