From ab709310c47e32b813b93a0fa1d4cd2bd39025a0 Mon Sep 17 00:00:00 2001
From: fhysy <1149505133@qq.com>
Date: Thu, 3 Jul 2025 15:43:04 +0800
Subject: [PATCH] =?UTF-8?q?feat(system):=20=E6=96=B0=E5=A2=9E=E7=B3=BB?=
=?UTF-8?q?=E7=BB=9F=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2=E5=92=8C=E7=99=BB?=
=?UTF-8?q?=E5=BD=95=E9=A1=B5=E5=88=87=E6=8D=A2,=E5=BF=AB=E6=8D=B7?=
=?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=8A=BD=E5=B1=89=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增系统配置页面,可设置系统名称、备案号、登录页类型等
- 实现登录页类型切换,支持多种登录页面样式- 添加主题类和登录页类型的选择功能
- 优化导航栏,增加抽屉菜单按钮
- 调整布局样式,支持新的主题类,登录页选择
---
src/components/DrawerMenu.vue | 143 +++++++++++++++++++++++
src/layout/components/Navbar.vue | 35 +++++-
src/layout/components/Settings/index.vue | 80 ++++++++++++-
src/layout/index.vue | 3 +-
src/main.js | 2 +-
src/router/index.js | 30 ++++-
src/store/modules/settings.js | 4 +-
src/views/LoginWrapper.vue | 37 ++++++
src/views/system/ConfigPage.vue | 128 ++++++++++++++++++++
9 files changed, 445 insertions(+), 17 deletions(-)
create mode 100644 src/components/DrawerMenu.vue
create mode 100644 src/views/LoginWrapper.vue
create mode 100644 src/views/system/ConfigPage.vue
diff --git a/src/components/DrawerMenu.vue b/src/components/DrawerMenu.vue
new file mode 100644
index 00000000..cf0dcfe9
--- /dev/null
+++ b/src/components/DrawerMenu.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 1734f75a..a547c012 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -1,8 +1,15 @@
-
-
+
+
+
+
+
+
+
@@ -54,9 +62,15 @@ import SizeSelect from '@/components/SizeSelect'
import Search from '@/components/HeaderSearch'
import RuoYiGit from '@/components/SmartPower/Git'
import RuoYiDoc from '@/components/SmartPower/Doc'
+import DrawerMenu from '@/components/DrawerMenu'
import { getIotFileUrl } from "@/utils/hciot"
export default {
+ data() {
+ return {
+ drawerMenuVisible: false
+ }
+ },
components: {
Breadcrumb,
Hamburger,
@@ -64,7 +78,8 @@ export default {
SizeSelect,
Search,
RuoYiGit,
- RuoYiDoc
+ RuoYiDoc,
+ DrawerMenu
},
computed: {
...mapGetters([
@@ -127,6 +142,20 @@ export default {
background: rgba(0, 0, 0, .025)
}
}
+ .drawer-menu-btn{
+ padding: 0 10px;
+ font-size: 20px;
+ line-height: 50px;
+ height: 100%;
+ float: left;
+ cursor: pointer;
+ transition: background .3s;
+ -webkit-tap-highlight-color:transparent;
+
+ &:hover {
+ background: rgba(0, 0, 0, .025)
+ }
+ }
.breadcrumb-container {
float: left;
diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue
index 21dd495c..85518196 100644
--- a/src/layout/components/Settings/index.vue
+++ b/src/layout/components/Settings/index.vue
@@ -5,7 +5,7 @@
主题风格设置
-
+
+

@@ -43,12 +43,36 @@
-
+ -->
主题颜色
+
+
+ 主题类
+
+
+
+
+
+
+ 登录页
+
+
+
+
@@ -76,11 +100,16 @@
\ No newline at end of file
diff --git a/src/views/system/ConfigPage.vue b/src/views/system/ConfigPage.vue
new file mode 100644
index 00000000..e2973b80
--- /dev/null
+++ b/src/views/system/ConfigPage.vue
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 重置
+
+
+
+
+
+
+
+
+
\ No newline at end of file