Merge pull request #2905 from jumpserver/pr@dev@change_file_name

perf: 修改账号备份
This commit is contained in:
老广
2023-03-13 18:29:17 +08:00
committed by GitHub
12 changed files with 20 additions and 19 deletions

View File

@@ -307,7 +307,7 @@ export default [
children: [
{
path: '',
component: () => import('@/views/accounts/AccountBackupPlan/index.vue'),
component: () => import('@/views/accounts/AccountBackup/index.vue'),
name: 'AccountBackupList',
meta: {
title: i18n.t('accounts.AccountBackup.AccountBackup'),
@@ -316,7 +316,7 @@ export default [
},
{
path: 'create',
component: () => import('@/views/accounts/AccountBackupPlan/AccountBackupPlanCreateUpdate.vue'),
component: () => import('@/views/accounts/AccountBackup/AccountBackupCreateUpdate.vue'),
name: 'AccountBackupPlanCreate',
meta: {
title: i18n.t('accounts.AccountBackup.AccountBackupCreate'),
@@ -326,7 +326,7 @@ export default [
},
{
path: ':id/update',
component: () => import('@/views/accounts/AccountBackupPlan/AccountBackupPlanCreateUpdate.vue'),
component: () => import('@/views/accounts/AccountBackup/AccountBackupCreateUpdate.vue'),
name: 'AccountBackupPlanUpdate',
meta: {
title: i18n.t('accounts.AccountBackup.AccountBackupUpdate'),
@@ -336,21 +336,21 @@ export default [
},
{
path: ':id',
component: () => import('@/views/accounts/AccountBackupPlan/AccountBackupPlanDetail/index.vue'),
component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/index.vue'),
name: 'AccountBackupPlanDetail',
meta: { title: i18n.t('accounts.AccountBackup.AccountBackup') },
hidden: true
},
{
path: 'executions',
component: () => import('@/views/accounts/AccountBackupPlan/AccountBackupPlanDetail/AccountBackupPlanExecution/AccountBackupPlanExecutionList.vue'),
component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue'),
name: 'AccountBackupPlanExecutionList',
meta: { title: i18n.t('accounts.AccountBackup.ExecutionDetail') },
hidden: true
},
{
path: 'executions/:id',
component: () => import('@/views/accounts/AccountBackupPlan/AccountBackupPlanDetail/AccountBackupPlanExecution/AccountBackupPlanExecutionDetail/index.vue'),
component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionDetail/index.vue'),
name: 'AccountBackupPlanExecutionDetail',
meta: { title: i18n.t('accounts.AccountBackup.ExecutionDetail') },
hidden: true

View File

@@ -4,7 +4,7 @@
<script>
import { GenericCreateUpdatePage } from '@/layout/components'
import getChangeSecretFields from '@/views/accounts/AccountBackupPlan/fields'
import getChangeSecretFields from '@/views/accounts/AccountBackup/fields'
export default {
name: 'AccountBackupPlanUpdate',

View File

@@ -1,5 +1,5 @@
<template>
<GenericDetailPage :object.sync="execution" :active-menu.sync="config.activeMenu" v-bind="config" v-on="$listeners">
<GenericDetailPage :active-menu.sync="config.activeMenu" :object.sync="execution" v-bind="config" v-on="$listeners">
<keep-alive>
<component :is="config.activeMenu" :object="execution" />
</keep-alive>
@@ -8,7 +8,7 @@
<script>
import { GenericDetailPage } from '@/layout/components'
import AccountBackupPlanExecutionInfo from './AccountBackupPlanExecutionInfo'
import AccountBackupPlanExecutionInfo from './AccountBackupExecutionInfo.vue'
export default {
components: {

View File

@@ -1,5 +1,5 @@
<template>
<GenericDetailPage :object.sync="plan" :active-menu.sync="config.activeMenu" v-bind="config">
<GenericDetailPage :active-menu.sync="config.activeMenu" :object.sync="plan" v-bind="config">
<keep-alive>
<component :is="config.activeMenu" :object="plan" />
</keep-alive>
@@ -8,8 +8,8 @@
<script>
import { GenericDetailPage } from '@/layout/components'
import AccountBackupPlanInfo from './AccountBackupPlanInfo'
import AccountBackupPlanExecutionList from './AccountBackupPlanExecution/AccountBackupPlanExecutionList'
import AccountBackupPlanInfo from './AccountBackupInfo.vue'
import AccountBackupPlanExecutionList from './AccountBackupExecution/AccountBackupExecutionList.vue'
export default {
components: {

View File

@@ -4,6 +4,7 @@
<script>
import { TabPage } from '@/layout/components'
export default {
name: 'Index',
components: {
@@ -18,13 +19,13 @@ export default {
title: this.$t('accounts.AccountBackup.AccountBackup'),
name: 'AccountBackupPlanList',
hidden: !this.$hasPerm('accounts.view_accountbackupautomation'),
component: () => import('@/views/accounts/AccountBackupPlan/AccountBackupPlanList.vue')
component: () => import('@/views/accounts/AccountBackup/AccountBackupList.vue')
},
{
title: this.$t('accounts.AccountBackup.ExecutionList'),
name: 'AccountBackupPlanExecutionList',
hidden: !this.$hasPerm('accounts.view_accountbackupexecution'),
component: () => import('@/views/accounts/AccountBackupPlan/AccountBackupPlanDetail/AccountBackupPlanExecution/AccountBackupPlanExecutionList.vue')
component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue')
}
]
}

View File

@@ -28,13 +28,13 @@ export default {
encryptedFields: ['secret'],
fields: [
[this.$t('common.Basic'), ['name']],
[this.$t('xpack.Asset'), ['accounts', 'assets', 'nodes']],
[this.$t('xpack.Asset'), ['assets', 'nodes']],
[
this.$t('accounts.AccountChangeSecret.SecretKeyStrategy'),
this.$t('assets.Account'),
[
'secret_strategy', 'secret_type', 'secret',
'password_rules', 'ssh_key_change_strategy',
'ssh_key', 'passphrase'
'accounts', 'secret_strategy', 'secret_type', 'secret',
'password_rules', 'ssh_key_change_strategy', 'ssh_key',
'passphrase'
]
],
[this.$t('xpack.Timer'), ['is_periodic', 'crontab', 'interval']],