fix:修改国际化
This commit is contained in:
@@ -147,8 +147,8 @@ export const asset = {
|
||||
telnet: 2
|
||||
},
|
||||
authTypeOptions: [
|
||||
{ value: 1, label: 'Username' },
|
||||
{ value: 2, label: 'Key' }
|
||||
{ value: 1, label: i18n.t('asset.password') },
|
||||
{ value: 2, label: i18n.t('asset.publicKey') }
|
||||
],
|
||||
authTypeData: {
|
||||
username: 1,
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 第三级:Auth type = username | key -->
|
||||
<el-form-item :label="$t('asset.username')" prop="authUsername">
|
||||
<el-form-item :label="$t('asset.userName')" prop="authUsername">
|
||||
<el-input v-model="editData.authUsername" size="small"/>
|
||||
</el-form-item>
|
||||
<template v-if="editData.authType === assetConstants.authTypeData.key">
|
||||
@@ -51,7 +51,7 @@
|
||||
<!-- 第二级:Protocol type = TELNET -->
|
||||
<template v-if="editData.authProtocol === assetConstants.authProtocolData.telnet">
|
||||
<div class="form__sub-title">TELNET</div>
|
||||
<el-form-item :label="$t('asset.username')" prop="authUsername">
|
||||
<el-form-item :label="$t('asset.userName')" prop="authUsername">
|
||||
<el-input v-model="editData.authUsername" size="small"/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('asset.pin')" prop="authPin">
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
<template v-if="editAsset.type && editAsset.type.authProtocol === assetConstants.authProtocolData.ssh">
|
||||
<div class="form__sub-title">SSH</div>
|
||||
<el-form-item :label="$t('asset.authType')" prop="authType">
|
||||
<el-select v-model="editAsset.authType" class="right-box__select" :placeholder="$t('el.select.placeholder')" popper-class="right-box-select-top prevent-clickoutside" size="small" value-key="value">
|
||||
<el-select v-model="editAsset.authType" class="right-box__select" :placeholder="$t('el.select.placeholder')" popper-class="right-box-select-top prevent-clickoutside" size="small" value-key="value" clearable>
|
||||
<el-option v-for="type in assetConstants.authTypeOptions" :key="type.value" :label="type.label" :value="type.value"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
fixed="right">
|
||||
<div slot="header" class="table-operation-title">{{$t('overall.option')}}</div>
|
||||
<div slot-scope="scope" class="table-operation-items">
|
||||
<button class="table-operation-item" v-has="'i18n_edit'" @click="tableOperation(['edit', scope.row])"><i class="nz-icon nz-icon-edit"></i></button>
|
||||
<button class="table-operation-item" @click="tableOperation(['edit', scope.row])"><i class="nz-icon nz-icon-edit"></i></button>
|
||||
<el-dropdown size="medium" v-has="['i18n_delete']" trigger="click" @command="tableOperation">
|
||||
<div class="table-operation-item table-operation-item--more">
|
||||
<i class="nz-icon nz-icon-more3"></i>
|
||||
|
||||
Reference in New Issue
Block a user