fix: 去除 重复国际化

This commit is contained in:
zhangyu
2022-06-21 14:17:46 +08:00
parent 0a6aa58ad3
commit a874bfa87b
35 changed files with 52 additions and 62 deletions

View File

@@ -198,7 +198,7 @@
<el-option v-for="item in authProtocol" :id="'dc-principal-op-'+item.value" :key="item.value" :label="item.name" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item :label='$t("webshell.authType")' prop="authType" @change="authTypeChange" >
<el-form-item :label='$t("asset.authType")' prop="authType" @change="authTypeChange" >
<el-select value-key="id" popper-class="config-dropdown w260 right-box-select-top right-public-box-dropdown-top" v-model="customConnect.authType" :disabled="customConnect.authProtocol === 2" placeholder="" size="small" id="webshell-box-input-protocol">
<el-option v-for="item in authType" :id="'dc-principal-op-'+item.value" :key="item.value" :label="item.name" :value="item.value"></el-option>
</el-select>
@@ -322,7 +322,7 @@ export default {
uploadFile: { file: '', path: '', uuid: '' },
uploadFileList: [],
uploadResult: null,
downloadBox: { showDownload: false, title: this.$t('webshell.downloadTitle') },
downloadBox: { showDownload: false, title: this.$t('overall.download') },
downloadFile: { path: '', uuid: '' },
downloadFileList: [],
downloadResult: null,

View File

@@ -22,7 +22,7 @@
<div class="top-tool-search">
<search-input :default-item="'alertMessageState'" :default-value="defaultSearchValue" :searchMsg="searchMsg" @search="search" position="alert-bottom"></search-input>
</div>
<button :title="$t('overall.exportExcelLower')" @click="importBox.show = true" type="button" v-has="['rule_alerts_export', 'project_endpoint_alerts_export', 'asset_alerts_export']"
<button :title="$t('overall.exportExcel')" @click="importBox.show = true" type="button" v-has="['rule_alerts_export', 'project_endpoint_alerts_export', 'asset_alerts_export']"
class="nz-btn nz-btn-size-normal nz-btn-style-light margin-l-20" id="alert-list-export">
<i class="nz-icon nz-icon-download1"></i>
</button>
@@ -49,7 +49,7 @@
<el-dialog :visible.sync="importBox.show" :title="importBox.title" :modal-append-to-body='false' :show-close="true" width="300px" @close="importBox.show = false" class="nz-dialog">
<div class="upload-body">
<button @click="exportCur" class="el-button el-button--default el-button--small">
<span>{{$t('overall.exportCur')}}</span>
<span>{{$t('overall.current')}}</span>
</button>
<button @click="exportAll" class="el-button el-button--default el-button--small">
<span>{{$t('overall.exportAll')}}</span>

View File

@@ -77,7 +77,7 @@ export default {
prop: 'location',
show: true
}, {
label: this.$t('config.dc.cabinetNum'),
label: this.$t('asset.cabinet'),
prop: 'cabinetNum',
show: true,
minWidth: 100,

View File

@@ -42,7 +42,7 @@
<div v-if="importBox.type == 2">
<div class="upload-body">
<button @click="exportCur" class="el-button el-button--default el-button--small" :id="id+'-xlsx-export-current'">
<span>{{$t('overall.exportCur')}}</span>
<span>{{$t('overall.current')}}</span>
</button>
<button @click="exportAll" class="el-button el-button--default el-button--small" :id="id+'-xlsx-export-all'">
<span>{{$t('overall.exportAll')}}</span>

View File

@@ -228,7 +228,7 @@ export const statisticsList = [
export const alignList = [
{ value: 'left', label: i18n.t('dashboard.panel.chartForm.alignList.left') },
{ value: 'center', label: i18n.t('dashboard.panel.chartForm.alignList.center') },
{ value: 'center', label: i18n.t('project.topology.center') },
{ value: 'right', label: i18n.t('dashboard.panel.chartForm.alignList.right') }
]

View File

@@ -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.system.basic.lnglat')}}</template>
<template slot="prepend" v-if="showZoom">{{$t('config.dc.lnglat')}}</template>
</el-input>
</div>
<div class="input-box-item" v-if="showZoom">

View File

@@ -69,7 +69,7 @@
size="small"
class="el-date-range-picker__editor"
:disabled="rangeState.selecting"
:placeholder="t('el.datepicker.endTime')"
:placeholder="t('overall.endTime')"
:value="maxVisibleTime"
:readonly="!minDate"
@focus="minDate && (maxTimePickerVisible = true)"

View File

@@ -24,7 +24,7 @@
</div>
</div>
<div class="el-time-range-picker__cell">
<div class="el-time-range-picker__header">{{ t('el.datepicker.endTime') }}</div>
<div class="el-time-range-picker__header">{{ t('overall.endTime') }}</div>
<div
:class="{ 'has-seconds': showSeconds, 'is-arrow': arrowControl }"
class="el-time-range-picker__body el-time-panel__content">

View File

@@ -80,7 +80,7 @@ export default {
guideList: [
{
route: '/dc',
title: this.$t('guide.dc'),
title: this.$t('asset.dc'),
icon: 'nz-icon nz-icon-datacenter1',
tip: this.$t('guide.dcTip'),
permissionCode: 'dc_view'

View File

@@ -374,17 +374,7 @@ const canvasOptions = {
autoExpandDistance: 0,
minScale: 0.2,
scaleKey: -1,
keydown (e) {
console.log(e)
// if (e.target.className === 'cm-content cm-lineWrapping' && e.keyCode === 8) {
// if (e & e.stopPropagation) {
// e.stopPropagation() // iie 6, 7, 8
// } else {
// window.event.cancleBubble = true
// }
// return false
// }
}
keydown: 1
}
export default {
name: 'topologyL5',

View File

@@ -183,7 +183,7 @@ export default {
},
roles: [],
mfaLevelList: [
{ value: 0, label: this.$t('project.endpoint.disable') },
{ value: 0, label: this.$t('profile.close') },
{ value: 1, label: this.$t('asset.talon.enable') },
{ value: 2, label: this.$t('config.user.forceEnable') }
],

View File

@@ -13,7 +13,7 @@
<el-input maxlength="64" show-word-limit v-model="apiKeyBox.name" size="small" type="text"></el-input>
</el-form-item>
<el-form-item
:label="$t('profile.apiKey.box.expiredAt')"
:label="$t('config.system.apiKey.expireAt')"
class="start_at"
>
<my-date-picker

View File

@@ -306,7 +306,7 @@
</el-form-item>
<!-- text -->
<el-form-item
:label="$t('dashboard.panel.chartForm.display')"
:label="$t('config.assetLabel.display')"
class="form-item--half-width"
prop="param.nullType"
v-if="isShowText(chartConfig.type)"
@@ -517,7 +517,7 @@
</el-row>
<el-row class="thresholds-item" v-show="item.show" :key="2">
<div>
<div class='mapping-display'>{{$t('dashboard.panel.chartForm.display')}}</div>
<div class='mapping-display'>{{$t('config.assetLabel.display')}}</div>
</div>
<el-form-item :prop="'param.columns.' + index + '.display'" :rules="{ required: true, message: $t('validate.required'), trigger: 'blur'}" class="thresholds-from-item">
<el-input v-model="item.display" style="margin-right: 10px" size="small" @change="change('columns',index)"/>
@@ -666,7 +666,7 @@
<el-input v-model="item.column" style="margin-right: 10px" :placeholder="$t('placeholder.chart.column')" size="small" @change="change('valueMapping', index)"/>
</el-form-item>
<div>
<div class='mapping-display'>{{$t('dashboard.panel.chartForm.display')}}</div>
<div class='mapping-display'>{{$t('config.assetLabel.display')}}</div>
</div>
<el-form-item :prop="'param.valueMapping.' + index + '.display'" :rules="{ required: true, message: $t('validate.required'), trigger: 'blur'}" class="thresholds-from-item">
<el-input v-model="item.display" style="margin-right: 10px" :placeholder="$t('placeholder.chart.display')" size="small" @change="change('valueMapping', index)" class="mapping-display-input">

View File

@@ -290,7 +290,7 @@
<div class="form-items--half-width-group">
<!-- text -->
<el-form-item
:label="$t('dashboard.panel.chartForm.display')"
:label="$t('config.assetLabel.display')"
class="form-item--half-width"
prop="param.nullType"
v-if="isShowText(chartConfig.type)"
@@ -479,7 +479,7 @@
</el-row>
<el-row class="thresholds-item" v-show="item.show" :key="2">
<div>
<div class='mapping-display'>{{$t('dashboard.panel.chartForm.display')}}</div>
<div class='mapping-display'>{{$t('config.assetLabel.display')}}</div>
</div>
<el-form-item :prop="'param.columns.' + index + '.display'" :rules="{ required: true, message: $t('validate.required'), trigger: 'blur'}" class="thresholds-from-item">
<el-input v-model="item.display" style="margin-right: 10px" size="small" @change="change('columns',index)"/>
@@ -628,7 +628,7 @@
<el-input v-model="item.column" style="margin-right: 10px" :placeholder="$t('placeholder.chart.column')" size="small" @change="change('valueMapping', index)"/>
</el-form-item>
<div>
<div class='mapping-display'>{{$t('dashboard.panel.chartForm.display')}}</div>
<div class='mapping-display'>{{$t('config.assetLabel.display')}}</div>
</div>
<el-form-item :prop="'param.valueMapping.' + index + '.display'" :rules="{ required: true, message: $t('validate.required'), trigger: 'blur'}" class="thresholds-from-item">
<el-input v-model="item.display" style="margin-right: 10px" :placeholder="$t('placeholder.chart.display')" size="small" @change="change('valueMapping', index)" class="mapping-display-input">

View File

@@ -173,7 +173,7 @@
<div v-show="showAllBasicOption" >
<!--scrape_interval-->
<el-form-item :label='$t("project.endpoint.scrape_interval")' class="half-form-item" prop="scrape_interval">
<el-input id="module-box-input-scrape_interval" v-model.number="editEndpoint.configs[0].config.scrape_interval" :placeholder='$t("project.endpoint.scrape_interval_placeholder")' size="small">
<el-input id="module-box-input-scrape_interval" v-model.number="editEndpoint.configs[0].config.scrape_interval" :placeholder='$t("alert.config.inrPlaceholder")' size="small">
<template slot="append">s</template>
</el-input>
</el-form-item>
@@ -716,7 +716,7 @@ export default {
],
endpointStateList: [
{ name: this.$t('asset.talon.enable'), value: 1 },
{ name: this.$t('project.endpoint.disable'), value: 0 }
{ name: this.$t('profile.close'), value: 0 }
],
configsCopyValue: '',
pipelineOption: [

View File

@@ -153,7 +153,7 @@
<div v-show="showAllBasicOption" >
<!--scrape_interval-->
<el-form-item :label='$t("project.endpoint.scrape_interval")' class="half-form-item" prop="configs.0.config.scrape_interval">
<el-input id="module-box-input-scrape_interval" v-model.number="editModule.configs[0].config.scrape_interval" :placeholder='$t("project.endpoint.scrape_interval_placeholder")' size="small">
<el-input id="module-box-input-scrape_interval" v-model.number="editModule.configs[0].config.scrape_interval" :placeholder='$t("alert.config.inrPlaceholder")' size="small">
<template slot="append">s</template>
</el-input>
</el-form-item>

View File

@@ -15,7 +15,7 @@
<el-form-item :label="$t('profile.username')" prop="username">
<el-input maxlength="64" show-word-limit v-model="editProfile.username" disabled size="small" type="text"></el-input>
</el-form-item>
<el-form-item :label="$t('profile.email')" prop="email">
<el-form-item :label="$t('config.system.email.email')" prop="email">
<el-input maxlength="64" show-word-limit v-model="editProfile.email" size="small" type="text"></el-input>
</el-form-item>
<el-form-item :label="$t('profile.mobile')" prop="mobile">

View File

@@ -1,7 +1,7 @@
<template>
<div v-clickoutside="{obj: editCabinet, func: esc}" class="right-box right-setting-box-cabinet">
<div class="right-box__header">
<div class="header__title">{{editCabinet.id ? $t('config.cabinet.editCabinet') : $t('config.cabinet.createCabinet')}}</div>
<div class="header__title">{{editCabinet.id ? $t('config.dc.editCabinet') : $t('config.cabinet.createCabinet')}}</div>
<div class="header__operation">
<span v-cancel="{obj: editCabinet, func: esc}"><i class="nz-icon nz-icon-close"></i></span>
</div>

View File

@@ -114,7 +114,7 @@ const searchSelectInfo = { // value: 传给后台的值label显示给用
},
{
value: 'delete',
label: i18n.t('config.operationlog.operations.delete')
label: i18n.t('overall.delete')
},
{
value: 'reset',

View File

@@ -97,7 +97,7 @@
OK
</div>
<div v-else-if="scope.row['clientState']===0">
<div class="active-icon gray-bg inline-block"></div> {{ $t('project.endpoint.disable') }}
<div class="active-icon gray-bg inline-block"></div> {{ $t('profile.close') }}
</div>
<div v-else-if="scope.row['clientState']===2">
<div class="active-icon red-bg inline-block"></div> {{ $t('asset.connectionTimedOut') }}

View File

@@ -160,7 +160,7 @@ export default {
prop: 'location',
show: true
}, {
label: this.$t('config.dc.cabinetNum'),
label: this.$t('asset.cabinet'),
prop: 'cabinetNum',
show: true,
minWidth: 110,

View File

@@ -147,7 +147,7 @@
</template>
<template v-else-if="item.prop === 'enabled'">
<span v-if="scope.row[item.prop] === 1">{{$t('asset.talon.enable')}}</span>
<span v-else>{{$t('project.endpoint.disable')}}</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>
<span v-else>{{scope.row[item.prop] ? scope.row[item.prop] : ''}}</span>

View File

@@ -132,7 +132,7 @@ export default {
prop: 'health',
show: true
}, {
label: this.$t('config.scrapeEndpoint.error'),
label: this.$t('ERROR'),
prop: 'lastError',
show: true
}

View File

@@ -19,7 +19,7 @@
<i class="nz-icon nz-icon-funnel"></i>
</button>
<pick-time v-model="searchTime" sign="message" :default-pick="10" :refresh-data-func="getTableData" :show-empty="true" :use-chart-unit="false" :use-refresh="false"></pick-time>
<button id="roles-add" v-has="'alertMessage_view'" :title="$t('overall.exportExcelLower')" class="top-tool-btn margin-r-10"
<button id="roles-add" v-has="'alertMessage_view'" :title="$t('overall.exportExcel')" class="top-tool-btn margin-r-10"
type="button" @click="showExportDialog">
<i class="nz-icon-download1 nz-icon"></i>
</button>

View File

@@ -89,7 +89,7 @@
class="el-button el-button--default el-button--small"
@click="exportCur"
>
<span>{{ $t("overall.exportCur") }}</span>
<span>{{ $t("overall.current") }}</span>
</button>
<button
id="alert-msg-exportall"

View File

@@ -2,7 +2,7 @@
<div class="system">
<div class="system-config-form basicForm">
<el-form :model="basic" label-width="180px" size="small" ref="basicForm" :rules="basicRules" :validate-on-rule-change="false">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form-item :label="$t('config.system.basic.systemName')" prop="system_name">
<el-input v-model="basic.system_name"></el-input>
</el-form-item>
@@ -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.system.basic.lnglat')}}</template>
<template slot="prepend">{{$t('config.dc.lnglat')}}</template>
</el-input>
<latlng-picker ref="latlngPicker" :init-data="basic.lnglat" :show-zoom="true" @lnglatChange="lnglatChange"></latlng-picker>
</div>

View File

@@ -1,7 +1,7 @@
<template>
<div class="system">
<div class="system-config-form">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="email" label-width="180px" size="small" ref="emailForm" :rules="email.email_enable=='on'?emailRules:{}" :validate-on-rule-change="false">
<el-form-item :label="$t('config.system.email.enable')" prop="email_enable">
<el-checkbox v-model="email.email_enable" true-label="on" false-label="off" @change="switchChange('emailForm')" id="system-email-email_enable"></el-checkbox>

View File

@@ -1,7 +1,7 @@
<template>
<div class="system">
<div class="system-config-form">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="ldap" label-width="180px" size="small" ref="ldapForm" :rules="ldap.ldap_enable == 'on'?ldapRules:{}" :validate-on-rule-change="false">
<el-form-item :label="$t('config.system.ldap.active')" prop="ldap_enable">
<el-checkbox v-model="ldap.ldap_enable" true-label='on' false-label='off' @change="switchChange('ldapForm')" id="system-ldap-ldap_enable"></el-checkbox>

View File

@@ -1,7 +1,7 @@
<template>
<div class="system">
<div class="system-config-form basicForm">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="monitor" label-width="180px" size="small" ref="monitorForm" :rules="monitorRules" :validate-on-rule-change="false">
<el-form-item :label="$t('config.system.monitor.prometheusFederation')" prop="prometheus_federation_enabled">
<el-checkbox v-model="monitor.prometheus_federation_enabled" true-label="1" false-label="0" id="system-monitor-prometheus_federation_enabled"></el-checkbox>
@@ -82,7 +82,7 @@
<el-input v-model="monitor.logs_storage_s3_endpoint" id="monitor-logs_storage_s3_endpoint">
</el-input>
</el-form-item>
<el-form-item :label="$t('config.system.monitor.logs_storage_s3_bucket')" prop="logs_storage_s3_bucket" :rules=" [ { required: monitor.logs_storage_type == 2, message: this.$t('validate.required'), trigger: 'blur' }]">
<el-form-item :label="$t('config.system.monitor.metrics_storage_s3_bucket')" prop="logs_storage_s3_bucket" :rules=" [ { required: monitor.logs_storage_type == 2, message: this.$t('validate.required'), trigger: 'blur' }]">
<el-input v-model="monitor.logs_storage_s3_bucket" id="monitor-logs_storage_s3_bucket">
</el-input>
</el-form-item>

View File

@@ -32,7 +32,7 @@
</div>
<button id="asset-edit-cancel" class="profile-left__btn" @click="profileBox">
<span><i class="nz-icon nz-icon-edit"></i></span>
<span>{{$t('profile.edit')}}</span>
<span>{{$t('profile.editProfile')}}</span>
</button>
<div v-for="item in tableProfile" :key="item.id" class="profile-left__center">
<span style="margin:0 18px 0 0"><i :class="item.icon"></i></span>
@@ -194,7 +194,7 @@ export default {
icon: 'nz-icon nz-icon-role profile-role'
}, {
id: 2,
label: this.$t('profile.email'),
label: this.$t('config.system.email.email'),
prop: '',
icon: 'nz-icon nz-icon-email profile-email'
}, {

View File

@@ -4,7 +4,7 @@
<el-tab-pane v-if="systemHasTab('system_basic_view')" :label="$t('config.system.basic.basic')" name="basic">
<div class="system-config-form basicForm" v-if="switchTab === 'basic'">
<el-form :model="basic" label-width="180px" size="small" ref="basicForm" :rules="basicRules" :validate-on-rule-change="false">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form-item :label="$t('config.system.basic.language')" prop="language">
<el-select id="account-input-language"
class="right-box__select"
@@ -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.system.basic.lnglat')}}</template>
<template slot="prepend">{{$t('config.dc.lnglat')}}</template>
</el-input>
<latlng-picker ref="latlngPicker" :init-data="basic.lnglat" :show-zoom="true" @lnglatChange="lnglatChange"></latlng-picker>
</div>
@@ -119,7 +119,7 @@
</el-tab-pane>
<el-tab-pane v-if="systemHasTab('system_monitor_view')" :label="$t('config.system.monitor.monitor')" name="monitor">
<div class="system-config-form basicForm" v-if="switchTab === 'monitor'">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="monitor" label-width="180px" size="small" ref="monitorForm" :rules="monitorRules" :validate-on-rule-change="false">
<el-form-item :label="$t('config.system.monitor.prometheusFederation')" prop="prometheus_federation_enabled">
<el-checkbox v-model="monitor.prometheus_federation_enabled" true-label="1" false-label="0" id="system-monitor-prometheus_federation_enabled"></el-checkbox>
@@ -201,7 +201,7 @@
<el-input v-model="monitor.logs_storage_s3_endpoint" id="monitor-logs_storage_s3_endpoint">
</el-input>
</el-form-item>
<el-form-item :label="$t('config.system.monitor.logs_storage_s3_bucket')" prop="logs_storage_s3_bucket" :rules=" [ { required: monitor.logs_storage_type == 2, message: this.$t('validate.required'), trigger: 'blur' }]">
<el-form-item :label="$t('config.system.monitor.metrics_storage_s3_bucket')" prop="logs_storage_s3_bucket" :rules=" [ { required: monitor.logs_storage_type == 2, message: this.$t('validate.required'), trigger: 'blur' }]">
<el-input v-model="monitor.logs_storage_s3_bucket" id="monitor-logs_storage_s3_bucket">
</el-input>
</el-form-item>
@@ -231,7 +231,7 @@
</el-tab-pane>
<el-tab-pane v-if="systemHasTab('system_email_view')" :label="$t('config.system.email.email')" name="email" >
<div class="system-config-form" v-if="switchTab === 'email'">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="email" label-width="180px" size="small" ref="emailForm" :rules="email.email_enable=='on'?emailRules:{}" :validate-on-rule-change="false">
<el-form-item :label="$t('config.system.email.enable')" prop="email_enable">
<el-checkbox v-model="email.email_enable" true-label="on" false-label="off" @change="switchChange('emailForm')" id="system-email-email_enable"></el-checkbox>
@@ -279,7 +279,7 @@
</el-tab-pane>
<el-tab-pane v-if="systemHasTab('system_terminal_view')" :label="$t('config.system.terminal.terminal')" name="terminal">
<div class="system-config-form terminal" v-if="switchTab === 'terminal'">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="terminal" label-width="180px" size="small" ref="terminalForm" :rules="terminalRules">
<!-- <el-form-item :label="$t('config.system.ldap.timeout')" prop="terminal_timeout">-->
<!-- <el-input v-model="terminal.terminal_timeout" controls-position="right" :min="1" id="system-terminal-max_terminal_num">-->
@@ -305,7 +305,7 @@
</el-tab-pane>
<el-tab-pane v-if="systemHasTab('system_ldap_view')" :label="$t('config.system.ldap.ldap')" name="ldap">
<div class="system-config-form" v-if="switchTab === 'ldap'">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="ldap" label-width="180px" size="small" ref="ldapForm" :rules="ldap.ldap_enable == 'on'?ldapRules:{}" :validate-on-rule-change="false">
<el-form-item :label="$t('config.system.ldap.active')" prop="ldap_enable">
<el-checkbox v-model="ldap.ldap_enable" true-label='on' false-label='off' @change="switchChange('ldapForm')" id="system-ldap-ldap_enable"></el-checkbox>
@@ -356,7 +356,7 @@
</el-tab-pane>
<el-tab-pane v-if="systemHasTab('system_reset_view')" :label="$t('config.overall.reset')" name="reset">
<div class="system-config-form" v-if="switchTab === 'reset'">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="reset" label-width="180px" size="small" ref="resetForm" :rules="resetRules" :validate-on-rule-change="false" class="reset-form">
<el-form-item prop="type" :label="$t('overall.type')">
<el-select v-model="reset.type" :placeholder="$t('el.select.placeholder')" multiple popper-class="right-box-select-top right-public-box-dropdown-top">

View File

@@ -67,7 +67,7 @@
:show-close="true" width="300px" @close="closeDialog" class="nz-dialog">
<div class="upload-body">
<button @click="exportCur" class="el-button el-button--default el-button--small" id="alert-msg-exportcur">
<span>{{$t('overall.exportCur')}}</span>
<span>{{$t('overall.current')}}</span>
</button>
<button @click="exportAll" class="el-button el-button--default el-button--small" id="alert-msg-exportall">
<span>{{$t('overall.exportAll')}}</span>

View File

@@ -1,7 +1,7 @@
<template>
<div class="system">
<div class="system-config-form terminal">
<div class="system-title">{{$t('config.system.basic.title')}}</div>
<div class="system-title">{{$t('overall.basicInfo')}}</div>
<el-form :model="terminal" label-width="180px" size="small" ref="terminalForm" :rules="terminalRules">
<!-- <el-form-item :label="$t('config.system.ldap.timeout')" prop="terminal_timeout">-->
<!-- <el-input v-model="terminal.terminal_timeout" controls-position="right" :min="1" id="system-terminal-max_terminal_num">-->

View File

@@ -24,7 +24,7 @@
<div class="tools-header-center">
<el-form size="small" ref="ruleForm" :model="ruleForm" :rules="formRules" label-position="right" label-width="150px">
<el-form-item style="margin-bottom:10px" :label="$t('ping.dcs')">
<el-form-item style="margin-bottom:10px" :label="$t('config.dc.dc')">
<!-- <el-select v-model="checked" multiple @change="checkedChange" >-->
<!-- <el-option-->
<!-- :key="item.id"-->

View File

@@ -23,7 +23,7 @@
<div class="tools-header-center">
<el-form size="small" ref="ruleForm" :model="ruleForm" :rules="formRules" label-position="right" label-width="150px">
<el-form-item style="margin-bottom:10px" :label="$t('ping.dcs')">
<el-form-item style="margin-bottom:10px" :label="$t('config.dc.dc')">
<!-- <el-select v-model="checked" multiple @change="checkedChange" >-->
<!-- <el-option-->
<!-- :key="item.id"-->