From f4903d9eecc8102dcaa5c3c5751961556b12d172 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Fri, 28 Aug 2026 10:25:05 +0800 Subject: [PATCH] Refactor UI components for improved layout and styling - Updated VoiceConversation.vue to set a fixed font size for the header. - Changed index.vue to use an aside element for the header and adjusted layout to a grid system. - Enhanced lock.vue by restructuring the layout and improving visual elements for better user experience. - Revamped login.vue to introduce a visual section and reorganized form elements for clarity. - Redesigned register.vue to include a visual brand section and improved form layout for user registration. --- src/assets/styles/sidebar.scss | 4 +- src/assets/styles/variables.module.scss | 4 +- src/components/Breadcrumb/index.vue | 12 +- src/components/TableSearch/index.vue | 92 +++-- src/layout/components/AppMain.vue | 210 +++++++++- src/layout/components/Navbar.vue | 105 ++++- src/layout/components/Sidebar/Logo.vue | 64 ++- src/layout/components/Sidebar/index.vue | 93 ++++- src/layout/components/TagsView/index.vue | 59 ++- src/styles/minimalist.css | 151 ++++++- src/views/corpusManger/corpus/index.vue | 93 ++++- .../components/MainWorkspace.vue | 15 +- .../corpusManger/speech_synthesis/index.vue | 79 +++- src/views/device/register/index.vue | 145 ++++--- src/views/flow/index.vue | 352 +++++++++++----- src/views/index.vue | 153 ++++--- .../inspection/cockpit/components/Header.vue | 264 +++++++----- .../ManualTakeover/VoiceConversation.vue | 2 +- src/views/inspection/cockpit/index.vue | 52 ++- src/views/lock.vue | 182 ++++++--- src/views/login.vue | 378 ++++++++++++++---- src/views/register.vue | 279 ++++++++----- 22 files changed, 2093 insertions(+), 695 deletions(-) diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index 20bebfa..95ceb41 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -47,7 +47,7 @@ &.has-logo { .el-scrollbar { - height: calc(100% - 56px); + height: auto; } } @@ -62,7 +62,7 @@ } .svg-icon { - margin-right: 12px; + margin-right: 14px; } .el-menu { diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index 03d675f..305dcdf 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -21,8 +21,8 @@ $menuLightText: #374151; $menuLightActiveText: #0052d9; // 基础变量 -$base-sidebar-width: 216px; -$sideBarWidth: 216px; +$base-sidebar-width: 248px; +$sideBarWidth: 248px; // 菜单暗色变量 $base-menu-color: #374151; diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index c13e5e9..5a9b904 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -85,14 +85,14 @@ getBreadcrumb() \ No newline at end of file + diff --git a/src/components/TableSearch/index.vue b/src/components/TableSearch/index.vue index 6bb4556..74e74ec 100644 --- a/src/components/TableSearch/index.vue +++ b/src/components/TableSearch/index.vue @@ -37,33 +37,75 @@ const resetQuery = () => { diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 827d9ce..cc9b674 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,12 +1,31 @@