From f60b7d890f87774c15a8e1af3edb5dcdbf2bb03e Mon Sep 17 00:00:00 2001 From: hanbingleixue Date: Fri, 31 May 2024 16:19:19 +0800 Subject: [PATCH] Add front-end page for configuration management Signed-off-by: hanbingleixue --- .../main/webapp/frontend/src/components.d.ts | 4 + .../src/components/layouts/BaseHeader.vue | 5 + .../main/webapp/frontend/src/router/index.ts | 8 +- .../webapp/frontend/src/views/ConfigView.vue | 352 ++++++++++++++++++ 4 files changed, 368 insertions(+), 1 deletion(-) create mode 100644 sermant-backend/src/main/webapp/frontend/src/views/ConfigView.vue diff --git a/sermant-backend/src/main/webapp/frontend/src/components.d.ts b/sermant-backend/src/main/webapp/frontend/src/components.d.ts index 35b2db2c51..6bd6b40dd1 100644 --- a/sermant-backend/src/main/webapp/frontend/src/components.d.ts +++ b/sermant-backend/src/main/webapp/frontend/src/components.d.ts @@ -28,14 +28,18 @@ declare module '@vue/runtime-core' { ElInput: typeof import('element-plus/es')['ElInput'] ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] + ElOption: typeof import('element-plus/es')['ElOption'] ElPageHeader: typeof import('element-plus/es')['ElPageHeader'] ElPagination: typeof import('element-plus/es')['ElPagination'] + ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] ElRow: typeof import('element-plus/es')['ElRow'] + ElSelect: typeof import('element-plus/es')['ElSelect'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTag: typeof import('element-plus/es')['ElTag'] + ElTooltip: typeof import('element-plus/es')['ElTooltip'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/sermant-backend/src/main/webapp/frontend/src/components/layouts/BaseHeader.vue b/sermant-backend/src/main/webapp/frontend/src/components/layouts/BaseHeader.vue index 4aa3d5e649..f13ae08449 100644 --- a/sermant-backend/src/main/webapp/frontend/src/components/layouts/BaseHeader.vue +++ b/sermant-backend/src/main/webapp/frontend/src/components/layouts/BaseHeader.vue @@ -23,6 +23,10 @@ const toEventsConfig = () => { router.replace("/events-config"); }; +const toConfig = () => { + router.replace("/config"); +}; + const getAssetsImge = (url: string) => { return new URL(`../../assets/${url}`, import.meta.url).href; }; @@ -42,6 +46,7 @@ const getAssetsImge = (url: string) => { 监测 配置 + 配置管理