mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
perf: update accout check
This commit is contained in:
@@ -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
|
||||||
|
@@ -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: {
|
||||||
|
@@ -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')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user