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

View File

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

View File

@@ -1,5 +1,5 @@
<template> <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> <keep-alive>
<component :is="config.activeMenu" :object="execution" /> <component :is="config.activeMenu" :object="execution" />
</keep-alive> </keep-alive>
@@ -8,7 +8,7 @@
<script> <script>
import { GenericDetailPage } from '@/layout/components' import { GenericDetailPage } from '@/layout/components'
import AccountBackupPlanExecutionInfo from './AccountBackupPlanExecutionInfo' import AccountBackupPlanExecutionInfo from './AccountBackupExecutionInfo.vue'
export default { export default {
components: { components: {

View File

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

View File

@@ -4,6 +4,7 @@
<script> <script>
import { TabPage } from '@/layout/components' import { TabPage } from '@/layout/components'
export default { export default {
name: 'Index', name: 'Index',
components: { components: {
@@ -18,13 +19,13 @@ export default {
title: this.$t('accounts.AccountBackup.AccountBackup'), title: this.$t('accounts.AccountBackup.AccountBackup'),
name: 'AccountBackupPlanList', name: 'AccountBackupPlanList',
hidden: !this.$hasPerm('accounts.view_accountbackupautomation'), 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'), title: this.$t('accounts.AccountBackup.ExecutionList'),
name: 'AccountBackupPlanExecutionList', name: 'AccountBackupPlanExecutionList',
hidden: !this.$hasPerm('accounts.view_accountbackupexecution'), 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'], encryptedFields: ['secret'],
fields: [ fields: [
[this.$t('common.Basic'), ['name']], [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', 'accounts', 'secret_strategy', 'secret_type', 'secret',
'password_rules', 'ssh_key_change_strategy', 'password_rules', 'ssh_key_change_strategy', 'ssh_key',
'ssh_key', 'passphrase' 'passphrase'
] ]
], ],
[this.$t('xpack.Timer'), ['is_periodic', 'crontab', 'interval']], [this.$t('xpack.Timer'), ['is_periodic', 'crontab', 'interval']],