perf: update accout check

This commit is contained in:
ibuler
2024-11-01 19:06:39 +08:00
parent a1bc8ac5bc
commit 322d12f27f
9 changed files with 16 additions and 9 deletions

View File

@@ -73,7 +73,7 @@ export default [
}, },
{ {
path: 'executions/:id', path: 'executions/:id',
component: () => import('@/views/accounts/AccountDiscover/TaskDetail/ExecutionDetail/index.vue'), component: () => import('@/views/accounts/AccountDiscover/ExecutionDetail/index.vue'),
name: 'AccountDiscoverExecutionDetail', name: 'AccountDiscoverExecutionDetail',
hidden: true, hidden: true,
meta: { meta: {
@@ -210,7 +210,6 @@ export default [
path: ':id', path: ':id',
component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/index.vue'), component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/index.vue'),
name: 'AccountBackupDetail', name: 'AccountBackupDetail',
// activeMenu: '/console/accounts/automations',
meta: { meta: {
title: i18n.t('AccountBackupDetail'), title: i18n.t('AccountBackupDetail'),
activeMenu: '/console/accounts/automations' activeMenu: '/console/accounts/automations'
@@ -219,14 +218,14 @@ export default [
}, },
{ {
path: 'executions', path: 'executions',
component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue'), component: () => import('@/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionList.vue'),
name: 'AccountBackupExecutionList', name: 'AccountBackupExecutionList',
meta: { title: i18n.t('ExecutionDetail') }, meta: { title: i18n.t('ExecutionDetail') },
hidden: true hidden: true
}, },
{ {
path: 'executions/:id', path: 'executions/:id',
component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionDetail/index.vue'), component: () => import('@/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionDetail/index.vue'),
name: 'AccountBackupExecutionDetail', name: 'AccountBackupExecutionDetail',
meta: { title: i18n.t('ExecutionDetail') }, meta: { title: i18n.t('ExecutionDetail') },
hidden: true hidden: true

View File

@@ -9,7 +9,8 @@
<script> <script>
import { GenericDetailPage } from '@/layout/components' import { GenericDetailPage } from '@/layout/components'
import AccountBackupInfo from './AccountBackupInfo.vue' import AccountBackupInfo from './AccountBackupInfo.vue'
import AccountBackupExecutionList from './AccountBackupExecution/AccountBackupExecutionList.vue' import AccountBackupExecutionList
from '@/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionList.vue'
export default { export default {
components: { components: {

View File

@@ -25,7 +25,7 @@ export default {
title: this.$t('ExecutionList'), title: this.$t('ExecutionList'),
name: 'AccountBackupExecutionList', name: 'AccountBackupExecutionList',
hidden: !this.$hasPerm('accounts.view_accountbackupexecution'), hidden: !this.$hasPerm('accounts.view_accountbackupexecution'),
component: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue') component: () => import('@/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionList.vue')
} }
] ]
} }

View File

@@ -54,12 +54,14 @@ export const gatherAccountTableConfig = (vm, url) => {
hasTree: true, hasTree: true,
columns: [ columns: [
'asset', 'username', 'date_last_login', 'asset', 'username', 'date_last_login',
'address_last_login', 'present', 'date_updated', 'status' 'address_last_login', 'present',
'remote_present', 'status',
'date_updated'
], ],
columnsShow: { columnsShow: {
default: [ default: [
'username', 'asset', 'address_last_login', 'username', 'asset', 'address_last_login',
'date_last_login', 'present', 'status' 'date_last_login', 'present', 'remote_present', 'status'
] ]
}, },
columnsMeta: { columnsMeta: {
@@ -80,7 +82,12 @@ export const gatherAccountTableConfig = (vm, url) => {
showOverflowTooltip: true showOverflowTooltip: true
}, },
present: { present: {
width: '160px' label: '已同步',
width: '120px'
},
remote_present: {
label: '远端存在',
width: '120px'
}, },
date_updated: { date_updated: {
formatter: function(row, col, cell) { formatter: function(row, col, cell) {