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

View File

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

View File

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

View File

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