From 8c680d51c136137b2f8537c297f8c4d1ebba060a Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 7 Jul 2023 11:37:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user.js | 5 +- src/components/Hamburger/index.vue | 107 ++++++---- src/layout/components/AppMain.vue | 14 +- src/layout/components/Navbar.vue | 9 +- src/layout/components/Sidebar/SidebarItem.vue | 2 +- src/layout/components/Sidebar/index.vue | 145 ++++++++----- src/layout/index.vue | 194 +++++++++--------- src/styles/sidebar.scss | 4 +- src/styles/variables.scss | 18 +- src/views/dashboard/index.vue | 10 +- src/views/inventorys/index.vue | 2 +- src/views/outbounds/index.vue | 2 +- src/views/reports/outbounds.vue | 2 +- src/views/reports/stocks.vue | 2 +- src/views/stocks/index.vue | 2 +- src/views/system/user.vue | 8 +- 16 files changed, 309 insertions(+), 217 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index 095d17d..15fb619 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -8,10 +8,11 @@ export function save(data) { }) } -export function listuser() { +export function listuser(params) { return request({ url: '/api/admin/admin', - method: 'get' + method: 'get', + params:params }) } diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue index 368b002..f90ee62 100644 --- a/src/components/Hamburger/index.vue +++ b/src/components/Hamburger/index.vue @@ -1,44 +1,65 @@ - - - - - diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 0f1b0b1..238f889 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,5 +1,7 @@ \ No newline at end of file diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index fb014a2..59b28da 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -1,54 +1,91 @@ - - - + + + + + diff --git a/src/layout/index.vue b/src/layout/index.vue index db22a7b..9a2d1d4 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,93 +1,103 @@ - - - - - diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index e260bcf..35aec78 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -10,8 +10,8 @@ .sidebar-container { transition: width 0.28s; width: $sideBarWidth !important; - //background-color: $menuBg; - background: linear-gradient(180deg, #0284cd, #0077CC); + background-color: $menuBg; + // background: linear-gradient(180deg, #0284cd, #0077CC); box-shadow: 1px 1px 15px 0px rgba(17, 76, 157, 0.2); height: 100%; position: fixed; diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 03544c7..d2871ed 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -1,16 +1,16 @@ // sidebar -$menuText:#ffffff; -$menuActiveText:#ffffff; -$subMenuActiveText:#ffffff; //https://github.com/ElemeFE/element/issues/12951 +$menuText:#606266; +$menuActiveText:#303133; +$subMenuActiveText:#0077CC;//https://github.com/ElemeFE/element/issues/12951 -$menuBg:rgb(255, 255, 255,0);//#304156 -$menuHover:rgba(242, 242, 242, .4); -$menuActiveBg:rgba(242, 242, 242, .4); +$menuBg:#ffffff;//#304156 +$menuHover:#e0f2ff; +$menuActiveBg:#dcf3ff; -$subMenuBg:rgb(255, 255, 255,0);//#304156 -$subMenuHover:rgba(242, 242, 242, .4); -$submenuActiveBg:rgba(242, 242, 242, .4); +$subMenuBg:#ffffff;//#1f2d3d +$subMenuHover:#edf6ff; +$submenuActiveBg:#dcf3ff; $sideBarWidth: 210px; $primaryColor: #0077CC; diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 9694708..46cc687 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,6 +1,6 @@