mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
Merge branch 'v4' of github.com:jumpserver/lina into v4
This commit is contained in:
@@ -37,7 +37,7 @@ export const accountFieldsMeta = (vm) => {
|
||||
on_invalid: {
|
||||
rules: [Required],
|
||||
label: vm.$t('AccountPolicy'),
|
||||
helpText: vm.$t('BulkCreateStrategy'),
|
||||
helpText: vm.$t('AccountPolicyHelpText'),
|
||||
hidden: () => {
|
||||
return vm.platform || vm.asset
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ export default {
|
||||
}.bind(this)
|
||||
},
|
||||
{
|
||||
name: 'ClearSecret',
|
||||
name: 'BatchClearSecret',
|
||||
title: this.$t('ClearSecret'),
|
||||
type: 'primary',
|
||||
icon: 'clean',
|
||||
@@ -380,13 +380,13 @@ export default {
|
||||
{ account_ids: ids }).then(() => {
|
||||
this.$message.success(this.$tc('ClearSuccessMsg'))
|
||||
}).catch(err => {
|
||||
this.$message.error(this.$tc('BulkClearErrorMsg' + ' ' + err))
|
||||
this.$message.error(this.$tc('BatchClearErrorMsg' + ' ' + err))
|
||||
})
|
||||
}.bind(this)
|
||||
},
|
||||
{
|
||||
name: 'actionUpdateSelected',
|
||||
title: this.$t('AccountBatchUpdate'),
|
||||
name: 'BatchUpdate',
|
||||
title: this.$t('BatchUpdate'),
|
||||
icon: 'batch-update',
|
||||
can: ({ selectedRows }) => {
|
||||
return selectedRows.length > 0 &&
|
||||
|
||||
@@ -68,7 +68,7 @@ export default {
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: 'UnlockSelected',
|
||||
title: this.$t('BulkUnblock'),
|
||||
title: this.$t('BatchUnblock'),
|
||||
type: 'primary',
|
||||
can: ({ selectedRows }) => {
|
||||
return selectedRows.length > 0
|
||||
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
return {
|
||||
defaultMoreActions: [
|
||||
{
|
||||
title: this.$t('DeleteSelected'),
|
||||
title: this.$t('BatchDelete'),
|
||||
name: 'actionDeleteSelected',
|
||||
has: this.hasBulkDelete,
|
||||
icon: 'fa fa-trash-o',
|
||||
|
||||
@@ -255,7 +255,7 @@ export default [
|
||||
name: 'DomainDetail',
|
||||
component: () => import('@/views/assets/Domain/DomainDetail'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('DomainDetail') }
|
||||
meta: { title: i18n.t('Detail') }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -72,11 +72,11 @@ export default {
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'bulk-Transfer',
|
||||
name: 'BulkTransfer',
|
||||
path: 'batch-Transfer',
|
||||
name: 'BatchTransfer',
|
||||
component: () => import('@/views/ops/File/index'),
|
||||
meta: {
|
||||
title: i18n.t('BulkTransfer'),
|
||||
title: i18n.t('BatchTransfer'),
|
||||
permissions: ['rbac.view_filemanager']
|
||||
}
|
||||
},
|
||||
|
||||
@@ -47,6 +47,9 @@ export default {
|
||||
return row.timedelta.toFixed(2) + 's'
|
||||
}
|
||||
},
|
||||
is_success: {
|
||||
width: '90px'
|
||||
},
|
||||
actions: {
|
||||
formatterArgs: {
|
||||
hasDelete: false,
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
return {
|
||||
quickActions: [
|
||||
{
|
||||
title: this.$t('ManualExecutePlan'),
|
||||
title: this.$t('ManualExecution'),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$t('Execute')
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
return {
|
||||
quickActions: [
|
||||
{
|
||||
title: this.$t('ManualExecutePlan'),
|
||||
title: this.$t('ManualExecution'),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$t('Execute'),
|
||||
|
||||
@@ -71,9 +71,6 @@ export default {
|
||||
present: {
|
||||
width: '100px'
|
||||
},
|
||||
address_last_login: {
|
||||
width: '120px'
|
||||
},
|
||||
date_updated: {
|
||||
formatter: function(row, col, cell) {
|
||||
return toSafeLocalDateStr(row.date_updated)
|
||||
@@ -129,8 +126,8 @@ export default {
|
||||
},
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: 'SyncSelected',
|
||||
title: this.$t('SyncSelected'),
|
||||
name: 'BatchSync',
|
||||
title: this.$t('BatchSync'),
|
||||
type: 'primary',
|
||||
icon: 'fa fa-exchange',
|
||||
can: ({ selectedRows }) => {
|
||||
@@ -146,13 +143,13 @@ export default {
|
||||
).then(() => {
|
||||
this.$message.success(this.$tc('SyncSuccessMsg'))
|
||||
}).catch(err => {
|
||||
this.$message.error(this.$tc('BulkSyncErrorMsg' + ' ' + err))
|
||||
this.$message.error(this.$tc('BatchSyncErrorMsg' + ' ' + err))
|
||||
})
|
||||
}.bind(this)
|
||||
},
|
||||
{
|
||||
name: 'BulkSyncDelete',
|
||||
title: this.$t('BulkSyncDelete'),
|
||||
name: 'BatchSyncDelete',
|
||||
title: this.$t('BatchSyncDelete'),
|
||||
type: 'primary',
|
||||
icon: 'fa fa-exchange',
|
||||
can: ({ selectedRows }) => {
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
return {
|
||||
quickActions: [
|
||||
{
|
||||
title: this.$t('ManualExecutePlan'),
|
||||
title: this.$t('ManualExecution'),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$t('Execute'),
|
||||
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
],
|
||||
quickActions: [
|
||||
{
|
||||
title: this.$t('BulkVerify'),
|
||||
title: this.$t('BatchTest'),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$tc('Test')
|
||||
|
||||
@@ -57,7 +57,7 @@ export default {
|
||||
{ required: false }
|
||||
],
|
||||
label: this.$t('Platform'),
|
||||
helpText: this.$t('BulkUpdatePlatformHelpText')
|
||||
helpText: this.$t('BatchUpdatePlatformHelpText')
|
||||
},
|
||||
nodes: {
|
||||
...meta.nodes,
|
||||
|
||||
@@ -104,12 +104,12 @@ export const ACCOUNT_PROVIDER_ATTRS_MAP = {
|
||||
},
|
||||
[qingcloud_private]: {
|
||||
name: qingcloud_private,
|
||||
title: i18n.t('QingyunPrivatecloud'),
|
||||
title: i18n.t('QingYunPrivateCloud'),
|
||||
attrs: ['access_key_id', 'access_key_secret', 'api_endpoint']
|
||||
},
|
||||
[huaweicloud_private]: {
|
||||
name: huaweicloud_private,
|
||||
title: i18n.t('HuaweiPrivatecloud'),
|
||||
title: i18n.t('HuaweiPrivateCloud'),
|
||||
attrs: ['sc_username', 'sc_password', 'domain_name', 'oc_username', 'oc_password', 'api_endpoint']
|
||||
},
|
||||
[openstack]: {
|
||||
|
||||
@@ -27,7 +27,7 @@ export default {
|
||||
activeMenu: 'Detail',
|
||||
submenu: [
|
||||
{
|
||||
title: this.$t('DomainDetail'),
|
||||
title: this.$t('Detail'),
|
||||
name: 'Detail'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
multiple
|
||||
>
|
||||
<i class="el-icon-upload" />
|
||||
<div class="el-upload__text" style="margin-bottom: 10px">
|
||||
<div class="el-upload__text" style="margin-bottom: 10px;padding: 0 5px 0 5px ">
|
||||
{{ $t('DragUploadFileInfo') }}
|
||||
</div>
|
||||
<span>
|
||||
@@ -123,7 +123,7 @@ import { formatFileSize } from '@/utils/common'
|
||||
import store from '@/store'
|
||||
|
||||
export default {
|
||||
name: 'BulkTransfer',
|
||||
name: 'BatchTransfer',
|
||||
components: {
|
||||
TreeTable,
|
||||
Page,
|
||||
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: 'OfflineSelected',
|
||||
title: this.$t('BulkOffline'),
|
||||
title: this.$t('BatchOffline'),
|
||||
type: 'danger',
|
||||
icon: 'clean',
|
||||
can: ({ selectedRows }) => {
|
||||
|
||||
@@ -35,7 +35,7 @@ export default {
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: 'SyncSelected',
|
||||
title: this.$t('BulkDeploy'),
|
||||
title: this.$t('BatchDeployment'),
|
||||
type: 'primary',
|
||||
can: ({ selectedRows }) => {
|
||||
return selectedRows.length > 0
|
||||
|
||||
Reference in New Issue
Block a user