From bd935e9dc24741112dc77a9fa297ffafddfb90c5 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 26 Apr 2022 22:22:18 +0800 Subject: [PATCH] stash it --- src/router/console/assets.js | 2 +- src/views/assets/Host/HostList.vue | 107 +++++++++++++++++++++ src/views/assets/Platform/PlatformList.vue | 6 +- 3 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 src/views/assets/Host/HostList.vue diff --git a/src/router/console/assets.js b/src/router/console/assets.js index 7c63b288a..d5e8f3120 100644 --- a/src/router/console/assets.js +++ b/src/router/console/assets.js @@ -54,7 +54,7 @@ export default [ { path: '', name: 'HostList', - component: () => import('@/views/assets/Asset/AssetList.vue'), + component: () => import('@/views/assets/Host/HostList.vue'), meta: { title: i18n.t('route.HostList') } }, { diff --git a/src/views/assets/Host/HostList.vue b/src/views/assets/Host/HostList.vue new file mode 100644 index 000000000..f0e5a4193 --- /dev/null +++ b/src/views/assets/Host/HostList.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/views/assets/Platform/PlatformList.vue b/src/views/assets/Platform/PlatformList.vue index 3d1bdb538..eac9dffad 100644 --- a/src/views/assets/Platform/PlatformList.vue +++ b/src/views/assets/Platform/PlatformList.vue @@ -14,9 +14,13 @@ export default { tableConfig: { url: '/api/v1/assets/platforms/', columns: [ - 'name', 'base', + 'name', 'category', 'type', 'comment', 'actions' ], + columnsShow: { + min: ['name', 'actions'], + default: ['name', 'category', 'type', 'actions'] + }, columnsMeta: { base: { width: '140px'