1
0
mirror of https://github.com/jumpserver/lina.git synced 2025-05-12 01:58:51 +00:00

Fixed: Secret Key

This commit is contained in:
zhaojisen 2025-03-14 14:46:29 +08:00 committed by ZhaoJiSen
parent 3198517b75
commit 9262ce56d1
3 changed files with 15 additions and 7 deletions
src
layout/components/GenericListDrawerPage
views
assets/Asset/AssetDetail
profile/AccessKey

View File

@ -31,6 +31,11 @@ export default {
},
data() {
return {}
},
methods: {
reloadTable() {
this.$refs.ListTable.reloadTable()
}
}
}
</script>

View File

@ -1,6 +1,6 @@
<template>
<TwoCol>
<BaseList :columns-show="columnsShow" :url="url" />
<BaseList :columns-show="columnsShow" :columns-meta="columnsMeta" :url="url" />
</TwoCol>
</template>
@ -29,9 +29,13 @@ export default {
'id', 'user', 'asset', 'account',
'date_start', 'duration'
]
},
columnsMeta: {
id: {
width: '80px'
}
}
}
}
}
</script>

View File

@ -1,7 +1,8 @@
<template>
<div>
<GenericListPage
ref="GenericListTable"
ref="GenericListPage"
:create-drawer="createDrawer"
:header-actions="headerActions"
:help-tip="helpMessage"
:table-config="tableConfig"
@ -23,6 +24,7 @@ export default {
data() {
const ajaxUrl = '/api/v1/authentication/access-keys/'
return {
createDrawer: () => import('@/views/profile/AccessKey/CreateUpdate'),
mfaUrl: '',
mfaDialogVisible: false,
helpMessage: this.$t('ApiKeyList'),
@ -117,11 +119,8 @@ export default {
this.reloadTable()
},
reloadTable() {
this.$refs.GenericListTable.reloadTable()
this.$refs.GenericListPage.reloadTable()
}
}
}
</script>
<style scoped>
</style>