From 31ec693a16cc2f554f8472cc842e6de8b4f5eebc Mon Sep 17 00:00:00 2001 From: hx <190679152@qq.com> Date: Thu, 19 Mar 2026 17:09:26 +0800 Subject: [PATCH] =?UTF-8?q?b=E7=AB=AF=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/ruoyi.scss | 103 ++ src/assets/styles/sidebar.scss | 56 +- src/components/device/TrajectoryDialog.vue | 1617 ++++++++--------- src/components/device/index.vue | 70 +- src/components/user/index.vue | 1004 +++++----- src/layout/components/Navbar.vue | 4 +- src/layout/components/Sidebar/Item.vue | 16 +- src/layout/index.vue | 54 +- src/main.js | 20 +- src/settings.js | 2 +- src/views/device/device/index.vue | 370 ++-- src/views/system/role/index.vue | 967 +++++----- .../user/components/ProfileSettingsCard.vue | 100 +- src/views/system/user/index.vue | 881 ++++----- 14 files changed, 2642 insertions(+), 2622 deletions(-) diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index ab4a1d2..e3f0862 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -130,6 +130,109 @@ border-radius: 4px; } +.page-query-form { + display: flex; + flex-wrap: wrap; + align-items: flex-end; + gap: 12px 16px; + margin-bottom: 16px; +} + +.page-query-form .el-form-item { + width: min(100%, 260px); + margin-right: 0; + margin-bottom: 0; +} + +.page-query-form .el-form-item__label { + width: 100% !important; + float: none; + line-height: 20px; + padding: 0 0 6px; + white-space: normal; + word-break: break-word; +} + +.page-query-form .el-form-item__content { + width: 100%; + margin-left: 0 !important; +} + +.page-query-form .page-query-actions { + width: auto; + min-width: 170px; +} + +.page-toolbar { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px 0; +} + +.page-toolbar .el-col { + width: auto !important; + max-width: none; + flex: 0 0 auto; +} + +.page-toolbar .el-button { + white-space: nowrap; +} + +.page-dialog-form .el-form-item__label { + white-space: normal; + line-height: 20px; +} + +.page-dialog-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); + gap: 0 16px; +} + +.page-dialog-grid--single { + grid-template-columns: minmax(0, 1fr); +} + +.page-dialog-grid__full { + grid-column: 1 / -1; +} + +.page-tree-option-group { + display: flex; + flex-wrap: wrap; + gap: 8px 16px; + margin-bottom: 8px; +} + +.page-footer-meta { + float: left; + line-height: 32px; + color: #606266; +} + +.page-summary-list { + display: flex; + flex-wrap: wrap; + gap: 12px 24px; + margin-bottom: 12px; + color: #606266; +} + +.page-inline-filter { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 12px; + margin-bottom: 12px; +} + +.page-inline-filter__label { + color: #606266; + font-size: 13px; +} + @media (max-width: 768px) { .pagination-container .el-pagination > .el-pagination__jump { display: none !important; diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index 3558293..da1e8bb 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -3,7 +3,7 @@ .main-container { height: 100%; transition: margin-left .28s; - margin-left: $base-sidebar-width; + margin-left: var(--sidebar-expanded-width, #{$base-sidebar-width}); position: relative; } @@ -14,7 +14,7 @@ .sidebar-container { -webkit-transition: width .28s; transition: width 0.28s; - width: $base-sidebar-width !important; + width: var(--sidebar-expanded-width, #{$base-sidebar-width}) !important; background-color: $base-menu-background; height: 100%; position: fixed; @@ -60,10 +60,6 @@ overflow: hidden; } - .svg-icon { - margin-right: 16px; - } - .el-menu { border: none; height: 100%; @@ -71,11 +67,43 @@ } .el-menu-item, .el-submenu__title { + display: flex; + align-items: center; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; } + .menu-item-icon { + flex: 0 0 18px; + display: inline-flex; + align-items: center; + justify-content: center; + width: 18px; + margin-right: 12px; + overflow: hidden; + + .svg-icon { + margin-right: 0; + } + } + + .menu-item-text { + flex: 1 1 auto; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + line-height: inherit; + } + + .el-submenu__icon-arrow { + position: static; + margin-top: 0; + margin-left: 8px; + flex: 0 0 auto; + } + // menu hover .submenu-title-noDropdown, .el-submenu__title { @@ -90,7 +118,7 @@ & .nest-menu .el-submenu>.el-submenu__title, & .el-submenu .el-menu-item { - min-width: $base-sidebar-width !important; + min-width: var(--sidebar-expanded-width, #{$base-sidebar-width}) !important; &:hover { background-color: rgba(0, 0, 0, 0.06) !important; @@ -109,11 +137,11 @@ .hideSidebar { .sidebar-container { - width: 54px !important; + width: var(--sidebar-collapsed-width, 54px) !important; } .main-container { - margin-left: 54px; + margin-left: var(--sidebar-collapsed-width, 54px); } .submenu-title-noDropdown { @@ -121,10 +149,13 @@ position: relative; .el-tooltip { + display: flex !important; + align-items: center; padding: 0 !important; .svg-icon { margin-left: 20px; + margin-right: 0; } } } @@ -137,6 +168,7 @@ .svg-icon { margin-left: 20px; + margin-right: 0; } } @@ -158,7 +190,7 @@ } .el-menu--collapse .el-menu .el-submenu { - min-width: $base-sidebar-width !important; + min-width: var(--sidebar-expanded-width, #{$base-sidebar-width}) !important; } // mobile responsive @@ -169,14 +201,14 @@ .sidebar-container { transition: transform .28s; - width: $base-sidebar-width !important; + width: var(--sidebar-expanded-width, #{$base-sidebar-width}) !important; } &.hideSidebar { .sidebar-container { pointer-events: none; transition-duration: 0.3s; - transform: translate3d(-$base-sidebar-width, 0, 0); + transform: translate3d(calc(-1 * var(--sidebar-expanded-width, #{$base-sidebar-width})), 0, 0); } } } diff --git a/src/components/device/TrajectoryDialog.vue b/src/components/device/TrajectoryDialog.vue index cece6be..024dc13 100644 --- a/src/components/device/TrajectoryDialog.vue +++ b/src/components/device/TrajectoryDialog.vue @@ -1,887 +1,820 @@ + \ No newline at end of file diff --git a/src/components/device/index.vue b/src/components/device/index.vue index e130fc0..165b642 100644 --- a/src/components/device/index.vue +++ b/src/components/device/index.vue @@ -1,6 +1,6 @@  + + diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 6a59d0c..3447e90 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -11,9 +11,9 @@ - + diff --git a/src/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index be3285d..150d555 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -17,15 +17,19 @@ export default { const vnodes = [] if (icon) { - vnodes.push() + vnodes.push( + + + + ) } if (title) { - if (title.length > 5) { - vnodes.push({(title)}) - } else { - vnodes.push({(title)}) - } + vnodes.push( + + {title} + + ) } return vnodes } diff --git a/src/layout/index.vue b/src/layout/index.vue index 05e2fa9..734849c 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,5 +1,5 @@