mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: 统一修改一些翻译
This commit is contained in:
@@ -54,7 +54,7 @@ export default {
|
||||
title: {
|
||||
type: String,
|
||||
default: function() {
|
||||
return this.$tc('common.ViewSecret')
|
||||
return this.$tc('ViewSecret')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -219,6 +219,7 @@ export default {
|
||||
pointer-events: auto;
|
||||
color: #fff;
|
||||
background-color: #FFFFFF;
|
||||
opacity: 0.9;
|
||||
box-shadow: 0 0 8px 4px #00000014;
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
<script type="text/jsx">
|
||||
import TreeTable from '../../Table/TreeTable/index.vue'
|
||||
import { DetailFormatter } from '@/components/Table/TableFormatters'
|
||||
import { AccountInfoFormatter } from '@/components/Table/TableFormatters'
|
||||
import { AccountInfoFormatter, DetailFormatter } from '@/components/Table/TableFormatters'
|
||||
import { connectivityMeta } from '@/components/Apps/AccountListTable/const'
|
||||
|
||||
export default {
|
||||
@@ -76,7 +75,7 @@ export default {
|
||||
has: false
|
||||
},
|
||||
view_account: {
|
||||
label: this.$t('assets.Account'),
|
||||
label: this.$t('Account'),
|
||||
formatter: AccountInfoFormatter,
|
||||
width: '100px'
|
||||
},
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<krry-box
|
||||
ref="hasSelect"
|
||||
:data-show-list="checkedData"
|
||||
:filter-placeholder="filterPlaceholder[1] || $tc('common.Search')"
|
||||
:filter-placeholder="filterPlaceholder[1] || $tc('Search')"
|
||||
:filterable="filterable"
|
||||
:highlight-color="highlightColor"
|
||||
:is-highlight="isHighlight"
|
||||
@@ -56,7 +56,7 @@
|
||||
:page-size="pageSize"
|
||||
:page-texts="pageTexts"
|
||||
:show-clear-btn="showClearBtn"
|
||||
:title="boxTitle[1] || $tc('common.Selected')"
|
||||
:title="boxTitle[1] || $tc('Selected')"
|
||||
@check-district="hasCheckSelect"
|
||||
@search-word="searchWord"
|
||||
@check-disable="checkDisable"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<span>{{ account.name }}({{ account.username }})</span>
|
||||
</div>
|
||||
</div>
|
||||
<el-button slot="reference" size="mini" type="primary">{{ $t('common.View') }}</el-button>
|
||||
<el-button slot="reference" size="mini" type="primary">{{ $t('View') }}</el-button>
|
||||
</el-popover>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -49,10 +49,10 @@ export default {
|
||||
methods: {
|
||||
onChange(val) {
|
||||
this.$axios.patch(this.patchUrl, this.patchData).then(res => {
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
this.$message.success(this.$t('updateSuccessMsg'))
|
||||
}).catch(err => {
|
||||
this.value = !val
|
||||
this.$message.error(this.$t('common.updateErrorMsg' + ' ' + err))
|
||||
this.$message.error(this.$t('updateErrorMsg' + ' ' + err))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ export default {
|
||||
}
|
||||
},
|
||||
{
|
||||
tip: this.$tc('common.Export'),
|
||||
tip: this.$tc('Export'),
|
||||
icon: 'download',
|
||||
callback: () => {
|
||||
this.xterm.selectAll()
|
||||
|
||||
@@ -30,7 +30,6 @@ import VueCookie from 'vue-cookie'
|
||||
import VueLogger from 'vuejs-logger'
|
||||
import loggerOptions from './utils/logger'
|
||||
import ECharts from 'vue-echarts'
|
||||
import service from '@/utils/request'
|
||||
import request from '@/utils/request'
|
||||
import { message } from '@/utils/message'
|
||||
import xss from '@/utils/xss'
|
||||
@@ -71,7 +70,7 @@ Vue.use(VueLogger, loggerOptions)
|
||||
|
||||
Vue.component('echarts', ECharts)
|
||||
|
||||
Vue.prototype.$axios = service
|
||||
Vue.prototype.$axios = request
|
||||
|
||||
window._ = require('lodash')
|
||||
// Vue.set(Vue.prototype, '_', _)
|
||||
|
||||
@@ -31,7 +31,7 @@ export default [
|
||||
name: 'TaskLog',
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('route.CeleryTaskLog'),
|
||||
title: i18n.t('CeleryTaskLog'),
|
||||
permissions: []
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// 重置message,防止重复点击重复弹出message弹框
|
||||
import { Message as elMessage } from 'element-ui'
|
||||
import { toSentenceCase } from '@/utils/common'
|
||||
|
||||
let messageDom = null
|
||||
const message = (options) => {
|
||||
@@ -13,6 +14,7 @@ typeArray.forEach(type => {
|
||||
message[type] = options => {
|
||||
if (typeof options === 'string') options = { message: options }
|
||||
options.type = type
|
||||
options.message = toSentenceCase(options.message)
|
||||
return message(options)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -93,7 +93,7 @@ export default {
|
||||
extraActions: [
|
||||
{
|
||||
name: 'View',
|
||||
title: this.$t('common.View'),
|
||||
title: this.$t('View'),
|
||||
type: 'primary',
|
||||
callback: ({ row }) => {
|
||||
// debugger
|
||||
@@ -137,26 +137,26 @@ export default {
|
||||
exclude: ['id', 'status'],
|
||||
options: [
|
||||
{
|
||||
label: this.$t('accounts.AccountChangeSecret.Asset'),
|
||||
label: this.$t('Asset'),
|
||||
value: 'asset_name'
|
||||
},
|
||||
{
|
||||
label: this.$t('accounts.Accounts'),
|
||||
label: this.$t('Accounts'),
|
||||
value: 'account_username'
|
||||
},
|
||||
{
|
||||
value: 'status',
|
||||
label: this.$t('common.Status'),
|
||||
label: this.$t('Status'),
|
||||
type: 'choice',
|
||||
children: [
|
||||
{
|
||||
default: true,
|
||||
value: 'success',
|
||||
label: this.$t('common.Success')
|
||||
label: this.$t('Success')
|
||||
},
|
||||
{
|
||||
value: 'failed',
|
||||
label: this.$t('common.Failed')
|
||||
label: this.$t('Failed')
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -165,7 +165,7 @@ export default {
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: 'BatchRetry',
|
||||
title: this.$t('accounts.AccountChangeSecret.BatchRetry'),
|
||||
title: this.$t('BatchRetry'),
|
||||
type: 'primary',
|
||||
fa: 'fa-retweet',
|
||||
can: ({ selectedRows }) => {
|
||||
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
exclude: ['asset'],
|
||||
options: [
|
||||
{
|
||||
label: this.$t('dashboard.AssetName'),
|
||||
label: this.$t('AssetName'),
|
||||
value: 'asset_name'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -93,7 +93,7 @@ export default {
|
||||
extraActions: [
|
||||
{
|
||||
name: 'View',
|
||||
title: this.$t('common.View'),
|
||||
title: this.$t('View'),
|
||||
type: 'primary',
|
||||
callback: ({ row }) => {
|
||||
// debugger
|
||||
@@ -137,26 +137,26 @@ export default {
|
||||
exclude: ['id', 'status'],
|
||||
options: [
|
||||
{
|
||||
label: this.$t('accounts.AccountChangeSecret.Asset'),
|
||||
label: this.$t('Asset'),
|
||||
value: 'asset_name'
|
||||
},
|
||||
{
|
||||
label: this.$t('accounts.Accounts'),
|
||||
label: this.$t('Accounts'),
|
||||
value: 'account_username'
|
||||
},
|
||||
{
|
||||
value: 'status',
|
||||
label: this.$t('common.Status'),
|
||||
label: this.$t('Status'),
|
||||
type: 'choice',
|
||||
children: [
|
||||
{
|
||||
default: true,
|
||||
value: 'success',
|
||||
label: this.$t('common.Success')
|
||||
label: this.$t('Success')
|
||||
},
|
||||
{
|
||||
value: 'failed',
|
||||
label: this.$t('common.Failed')
|
||||
label: this.$t('Failed')
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -165,7 +165,7 @@ export default {
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: 'BatchRetry',
|
||||
title: this.$t('accounts.AccountChangeSecret.BatchRetry'),
|
||||
title: this.$t('BatchRetry'),
|
||||
type: 'primary',
|
||||
fa: 'fa-retweet',
|
||||
can: ({ selectedRows }) => {
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
fieldsMeta['db_name']['rules'] = [rules.Required]
|
||||
}
|
||||
if (platform === 'oracle') {
|
||||
fieldsMeta['db_name']['helpText'] = this.$t('assets.OracleDBNameHelpText')
|
||||
fieldsMeta['db_name']['helpText'] = this.$t('OracleDBNameHelpText')
|
||||
}
|
||||
return fieldsMeta
|
||||
}
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
<div>
|
||||
<GenericListTable ref="regionTable" :header-actions="headerActions" :table-config="tableConfig" />
|
||||
<Dialog
|
||||
:title="$tc('assets.TestConnection')"
|
||||
:visible.sync="visible"
|
||||
:confirm-title="$tc('assets.TestConnection')"
|
||||
:loading-status="testLoading"
|
||||
:title="$tc('assets.TestConnection')"
|
||||
:visible.sync="visible"
|
||||
width="50"
|
||||
@close="handleCancel()"
|
||||
@cancel="handleCancel()"
|
||||
@close="handleCancel()"
|
||||
@confirm="handleConfirm()"
|
||||
>
|
||||
<el-form ref="regionForm" label-width="auto" :model="account">
|
||||
<el-form ref="regionForm" :model="account" label-width="auto">
|
||||
<el-form-item :label="$tc('xpack.Cloud.Region')" :rules="regionRules" prop="region">
|
||||
<Select2 ref="regionSelect" v-model="account.region" v-bind="select2" />
|
||||
</el-form-item>
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
<script type="text/jsx">
|
||||
import {
|
||||
ACCOUNT_PROVIDER_ATTRS_MAP, aliyun, aws_china, aws_international, azure, azure_international, baiducloud,
|
||||
ctyun_private, fc, gcp, huaweicloud, huaweicloud_private, jdcloud, kingsoftcloud, lan, nutanix, openstack, zstack,
|
||||
qcloud, qcloud_lighthouse, qingcloud_private, ucloud, vmware, scp, apsara_stack, volcengine
|
||||
ACCOUNT_PROVIDER_ATTRS_MAP, aliyun, apsara_stack, aws_china, aws_international, azure, azure_international,
|
||||
baiducloud, ctyun_private, fc, gcp, huaweicloud, huaweicloud_private, jdcloud, kingsoftcloud, lan, nutanix, openstack,
|
||||
qcloud, qcloud_lighthouse, qingcloud_private, scp, ucloud, vmware, volcengine, zstack
|
||||
} from '../const'
|
||||
import rules from '@/components/Form/DataForm/rules'
|
||||
import { Select2 } from '@/components/Form/FormFields'
|
||||
@@ -227,7 +227,7 @@ export default {
|
||||
methods: {
|
||||
valid(status) {
|
||||
if (status !== 200) {
|
||||
this.$message.error(this.$t('xpack.Cloud.AccountTestConnectionError'))
|
||||
this.$message.error(this.$t('AccountTestConnectionError'))
|
||||
return 200
|
||||
}
|
||||
return status
|
||||
|
||||
@@ -96,7 +96,7 @@ export const ACCOUNT_PROVIDER_ATTRS_MAP = {
|
||||
},
|
||||
[volcengine]: {
|
||||
name: volcengine,
|
||||
title: i18n.t('xpack.Cloud.Volcengine'),
|
||||
title: i18n.t('Volcengine'),
|
||||
attrs: ['access_key_id', 'access_key_secret']
|
||||
},
|
||||
[vmware]: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<BaseList ref="AssetBaseList" v-bind="tableConfig" />
|
||||
<AddAssetDialog :setting="AddAssetSetting" :object="object" @close="handleAddAssetDialogClose" />
|
||||
<AddAssetDialog :object="object" :setting="AddAssetSetting" @close="handleAddAssetDialogClose" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
extraActions: [
|
||||
{
|
||||
name: 'AddAsset',
|
||||
title: this.$t('common.Add'),
|
||||
title: this.$t('Add'),
|
||||
type: 'primary',
|
||||
callback: function() {
|
||||
this.AddAssetSetting.AddAssetDialogVisible = true
|
||||
@@ -55,8 +55,8 @@ export default {
|
||||
},
|
||||
addExtraMoreActions: [
|
||||
{
|
||||
name: this.$t('common.BatchRemoval'),
|
||||
title: this.$t('common.BatchRemoval'),
|
||||
name: this.$t('BatchRemoval'),
|
||||
title: this.$t('BatchRemoval'),
|
||||
type: 'primary',
|
||||
icon: 'fa fa-minus',
|
||||
can({ selectedRows }) {
|
||||
@@ -71,7 +71,7 @@ export default {
|
||||
{
|
||||
order: 10,
|
||||
name: 'RemoveAsset',
|
||||
title: this.$t('assets.Remove'),
|
||||
title: this.$t('Remove'),
|
||||
callback: function(row) {
|
||||
this.removeAsset(row)
|
||||
}.bind(this)
|
||||
@@ -98,7 +98,7 @@ export default {
|
||||
domain: null
|
||||
}
|
||||
})
|
||||
msg = patch_data.length + ' ' + this.$t('common.rows')
|
||||
msg = patch_data.length + ' ' + this.$t('rows')
|
||||
} else {
|
||||
patch_data = [{
|
||||
id: rows.row.id,
|
||||
@@ -106,12 +106,12 @@ export default {
|
||||
}]
|
||||
msg = rows.row.name
|
||||
}
|
||||
this.$confirm(this.$t('common.removeWarningMsg') + ' ' + msg + ' ?', {
|
||||
this.$confirm(this.$t('removeWarningMsg') + ' ' + msg + ' ?', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$axios.patch(`/api/v1/assets/assets/`, patch_data).then(() => {
|
||||
this.reloadTable()
|
||||
this.$message.success(this.$t('common.RemoveSuccessMsg'))
|
||||
this.$message.success(this.$t('RemoveSuccessMsg'))
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
:port="port"
|
||||
:visible.sync="visible"
|
||||
/>
|
||||
<AddGatewayDialog :setting="AddGatewaySetting" :object="object" @close="handleAddGatewayDialogClose" />
|
||||
<AddGatewayDialog :object="object" :setting="AddGatewaySetting" @close="handleAddGatewayDialogClose" />
|
||||
</el-col>
|
||||
</div>
|
||||
</template>
|
||||
@@ -107,7 +107,7 @@ export default {
|
||||
name: 'RemoveGateWay',
|
||||
order: 10,
|
||||
can: this.$hasPerm('assets.test_assetconnectivity') && !this.$store.getters.currentOrgIsRoot,
|
||||
title: this.$t('assets.Remove'),
|
||||
title: this.$t('Remove'),
|
||||
callback: function(val) {
|
||||
this.removeGateway(val)
|
||||
}.bind(this)
|
||||
@@ -149,8 +149,8 @@ export default {
|
||||
hasSearch: true,
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: this.$t('common.BatchRemoval'),
|
||||
title: this.$t('common.BatchRemoval'),
|
||||
name: this.$t('BatchRemoval'),
|
||||
title: this.$t('BatchRemoval'),
|
||||
type: 'primary',
|
||||
icon: 'fa fa-minus',
|
||||
can({ selectedRows }) {
|
||||
@@ -172,7 +172,7 @@ export default {
|
||||
extraActions: [
|
||||
{
|
||||
name: 'GatewayAdd',
|
||||
title: this.$t('common.Add'),
|
||||
title: this.$t('Add'),
|
||||
callback: function() {
|
||||
this.AddGatewaySetting.AddGatewayDialogVisible = true
|
||||
}.bind(this)
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
domain: null
|
||||
}
|
||||
})
|
||||
msg = patch_data.length + ' ' + this.$t('common.rows')
|
||||
msg = patch_data.length + ' ' + this.$t('rows')
|
||||
} else {
|
||||
patch_data = [{
|
||||
id: rows.row.id,
|
||||
@@ -209,12 +209,12 @@ export default {
|
||||
}]
|
||||
msg = rows.row.name
|
||||
}
|
||||
this.$confirm(this.$t('common.removeWarningMsg') + ' ' + msg + ' ?', {
|
||||
this.$confirm(this.$t('RemoveWarningMsg') + ' ' + msg + ' ?', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$axios.patch(`/api/v1/assets/gateways/`, patch_data).then(() => {
|
||||
this.reloadTable()
|
||||
this.$message.success(this.$t('common.RemoveSuccessMsg'))
|
||||
this.$message.success(this.$t('RemoveSuccessMsg'))
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<Dialog
|
||||
v-if="setting.AddAssetDialogVisible"
|
||||
:title="$tc('assets.AddAssetInDomain')"
|
||||
:visible.sync="setting.AddAssetDialogVisible"
|
||||
:destroy-on-close="true"
|
||||
:show-cancel="false"
|
||||
:show-confirm="false"
|
||||
custom-class="asset-select-dialog"
|
||||
width="50vw"
|
||||
top="15vh"
|
||||
:title="$tc('assets.AddAssetInDomain')"
|
||||
:visible.sync="setting.AddAssetDialogVisible"
|
||||
after
|
||||
:destroy-on-close="true"
|
||||
custom-class="asset-select-dialog"
|
||||
top="15vh"
|
||||
width="50vw"
|
||||
>
|
||||
<GenericCreateUpdateForm
|
||||
v-bind="formConfig"
|
||||
@@ -50,7 +50,7 @@ export default {
|
||||
hasReset: false,
|
||||
hasSaveContinue: false,
|
||||
needGetObjectDetail: false,
|
||||
createSuccessMsg: this.$t('common.AddSuccessMsg'),
|
||||
createSuccessMsg: this.$t('AddSuccessMsg'),
|
||||
updateSuccessNextRoute: {
|
||||
name: 'DomainDetail',
|
||||
params: { id: this.$route.params.id }
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
assets: {
|
||||
type: 'assetSelect',
|
||||
component: AssetSelect,
|
||||
label: this.$t('assets.Assets'),
|
||||
label: this.$t('Assets'),
|
||||
el: {
|
||||
value: [],
|
||||
baseUrl: '/api/v1/assets/assets/?domain_enabled=true',
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<Dialog
|
||||
v-if="setting.AddGatewayDialogVisible"
|
||||
:title="$tc('assets.AddGatewayInDomain')"
|
||||
:visible.sync="setting.AddGatewayDialogVisible"
|
||||
:destroy-on-close="true"
|
||||
:show-cancel="false"
|
||||
:show-confirm="false"
|
||||
custom-class="asset-select-dialog"
|
||||
width="50vw"
|
||||
top="15vh"
|
||||
:title="$tc('assets.AddGatewayInDomain')"
|
||||
:visible.sync="setting.AddGatewayDialogVisible"
|
||||
after
|
||||
:destroy-on-close="true"
|
||||
custom-class="asset-select-dialog"
|
||||
top="15vh"
|
||||
width="50vw"
|
||||
>
|
||||
<GenericCreateUpdateForm
|
||||
v-bind="formConfig"
|
||||
@@ -50,7 +50,7 @@ export default {
|
||||
hasReset: false,
|
||||
hasSaveContinue: false,
|
||||
needGetObjectDetail: false,
|
||||
createSuccessMsg: this.$t('common.AddSuccessMsg'),
|
||||
createSuccessMsg: this.$t('AddSuccessMsg'),
|
||||
updateSuccessNextRoute: {
|
||||
name: 'DomainDetail',
|
||||
params: { id: this.$route.params.id }
|
||||
@@ -59,7 +59,7 @@ export default {
|
||||
fieldsMeta: {
|
||||
gateways: {
|
||||
component: ObjectSelect2,
|
||||
label: this.$t('assets.Gateway'),
|
||||
label: this.$t('Gateway'),
|
||||
el: {
|
||||
multiple: true,
|
||||
clearable: true,
|
||||
|
||||
@@ -112,10 +112,10 @@ export default {
|
||||
},
|
||||
stop: {
|
||||
type: 'button',
|
||||
name: this.$t('common.Stop'),
|
||||
name: this.$t('Stop'),
|
||||
align: 'left',
|
||||
icon: 'fa fa-stop',
|
||||
tip: this.$t('ops.StopJob'),
|
||||
tip: this.$t('StopJob'),
|
||||
disabled: true,
|
||||
el: {
|
||||
type: 'danger'
|
||||
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
label: this.getLabel('slack'),
|
||||
disabled: this.isDisabled('slack'),
|
||||
showTip: this.isDisabled('slack'),
|
||||
tip: this.$t('users.UnbindHelpText')
|
||||
tip: this.$t('UnbindHelpText')
|
||||
},
|
||||
has: this.$store.getters.publicSettings.AUTH_SLACK,
|
||||
callbacks: {
|
||||
|
||||
@@ -93,7 +93,7 @@ export default {
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('common.Uninstall'),
|
||||
title: this.$t('Uninstall'),
|
||||
callback: function({ row }) {
|
||||
this.$axios.post(
|
||||
`/api/v1/terminal/applet-host-deployments/uninstall/`,
|
||||
@@ -130,10 +130,10 @@ export default {
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('assets.OnlyInitialDeploy'),
|
||||
title: this.$t('OnlyInitialDeploy'),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$t('common.Deploy')
|
||||
label: this.$t('Deploy')
|
||||
},
|
||||
callbacks: {
|
||||
click: function() {
|
||||
|
||||
@@ -48,7 +48,7 @@ export default {
|
||||
hasDetailInMsg: false,
|
||||
moreButtons: [
|
||||
{
|
||||
title: this.$t('common.Test'),
|
||||
title: this.$t('Test'),
|
||||
loading: false,
|
||||
callback: function(value, form, btn) {
|
||||
btn.loading = true
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
encryptedFields: this.encryptedFields,
|
||||
fields: [
|
||||
[
|
||||
this.$t('common.BasicInfo'),
|
||||
this.$t('BasicInfo'),
|
||||
this.formFields
|
||||
]
|
||||
],
|
||||
|
||||
@@ -180,7 +180,7 @@ export default {
|
||||
this.$message.success(data.msg)
|
||||
this.$refs.listTable.reloadTable()
|
||||
} else {
|
||||
this.$message.error(data.msg) || this.$t('common.imExport.ImportFail')
|
||||
this.$message.error(data.msg) || this.$t('ImportFail')
|
||||
}
|
||||
this.dialogLdapUserImportLoginStatus = false
|
||||
this.dialogLdapUserImportAllLoginStatus = false
|
||||
|
||||
@@ -107,7 +107,7 @@ export default {
|
||||
},
|
||||
enabled: {
|
||||
width: '80px',
|
||||
label: `${this.$t('common.Enable')}/${this.$t('common.Disable')}`,
|
||||
label: `${this.$t('Enable')}/${this.$t('Disable')}`,
|
||||
formatter: SwitchFormatter,
|
||||
formatterArgs: {
|
||||
isDisplay(row) {
|
||||
|
||||
@@ -146,7 +146,7 @@ export default {
|
||||
},
|
||||
{
|
||||
value: 'title',
|
||||
label: this.$t('tickets.title')
|
||||
label: this.$t('title')
|
||||
},
|
||||
{
|
||||
value: 'type',
|
||||
@@ -173,7 +173,7 @@ export default {
|
||||
},
|
||||
{
|
||||
value: 'applicant_username_name',
|
||||
label: this.$t('tickets.Applicant')
|
||||
label: this.$t('Applicant')
|
||||
},
|
||||
{
|
||||
value: 'relevant_asset',
|
||||
|
||||
@@ -227,7 +227,7 @@ export default {
|
||||
store.getters.publicSettings['SECURITY_MFA_AUTH'] === 2
|
||||
if (store.getters.publicSettings['SECURITY_MFA_AUTH'] === 1 || adminUserIsNeed) {
|
||||
this.fieldsMeta['mfa_level'].disabled = true
|
||||
this.fieldsMeta['mfa_level'].helpText = this.$t('users.GlobalDisableMfaMsg')
|
||||
this.fieldsMeta['mfa_level'].helpText = this.$t('GlobalDisableMfaMsg')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ export default {
|
||||
'id', 'name', 'username', 'email', 'phone',
|
||||
'system_roles', 'org_roles',
|
||||
{
|
||||
key: this.$t('users.OrgsAndRoles'),
|
||||
key: this.$t('OrgsAndRoles'),
|
||||
has: this.$store.getters.currentOrgIsRoot,
|
||||
formatter: (item, val) => {
|
||||
const doms = []
|
||||
|
||||
Reference in New Issue
Block a user