From 729501250834b178e68831e8d428d369a8ea244e Mon Sep 17 00:00:00 2001 From: "WANGFAN\\wangf" <15871339963@163.com> Date: Sun, 30 Mar 2025 16:03:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mock/_data/system_menu.ts | 2 +- src/style/global-style.scss | 2 +- src/views/system/account/account copy.vue | 167 ----------- src/views/system/account/account.vue | 338 +++++++++++----------- src/views/system/data/index.ts | 159 ++++++++++ src/views/system/division/division.vue | 119 +------- src/views/system/role/role.vue | 43 +-- 7 files changed, 336 insertions(+), 494 deletions(-) delete mode 100644 src/views/system/account/account copy.vue create mode 100644 src/views/system/data/index.ts diff --git a/src/mock/_data/system_menu.ts b/src/mock/_data/system_menu.ts index af28240..858a9fa 100644 --- a/src/mock/_data/system_menu.ts +++ b/src/mock/_data/system_menu.ts @@ -931,7 +931,7 @@ export default [ component: "system/log/log", meta: { title: "log", - hide: false, + hide: true, disable: false, keepAlive: true, affix: false, diff --git a/src/style/global-style.scss b/src/style/global-style.scss index 41e9a7c..3876e78 100644 --- a/src/style/global-style.scss +++ b/src/style/global-style.scss @@ -28,7 +28,7 @@ box-sizing: border-box; height: 100%; padding: $padding; - overflow: auto; + overflow: hidden; background: $color-bg-1; } diff --git a/src/views/system/account/account copy.vue b/src/views/system/account/account copy.vue deleted file mode 100644 index 704bc09..0000000 --- a/src/views/system/account/account copy.vue +++ /dev/null @@ -1,167 +0,0 @@ - - - - - diff --git a/src/views/system/account/account.vue b/src/views/system/account/account.vue index 445cefc..f954f0f 100644 --- a/src/views/system/account/account.vue +++ b/src/views/system/account/account.vue @@ -1,6 +1,6 @@ diff --git a/src/views/system/data/index.ts b/src/views/system/data/index.ts new file mode 100644 index 0000000..ca6c548 --- /dev/null +++ b/src/views/system/data/index.ts @@ -0,0 +1,159 @@ +export const divisionData = [ + { + id: "100", + parentId: "0", + name: "xxx机构有限公司", + leader: "兔子先森", + phone: "15888888888", + email: "2547096351@qq.com", + sort: 1, + status: 1, + description: "这是总部门", + createBy: "admin", + createTime: "2024-03-19 11:21:01", + updateBy: "admin", + updateTime: "2024-09-09 10:08:25", + children: [ + { + id: "10001", + parentId: "100", + name: "研发部门", + leader: "小唐", + phone: "", + email: "", + sort: 1, + status: 1, + description: "这里是研发部门", + createBy: "admin", + createTime: "2024-03-19 11:21:01", + updateBy: "admin", + updateTime: "2024-09-09 17:30:40", + children: [ + { + id: "1000101", + parentId: "10001", + name: "SnowAdmin开发组", + leader: "小汤", + phone: "", + email: "", + sort: 1, + status: 1, + description: "这是项目研发部", + createBy: "admin", + createTime: "2024-03-19 11:21:01", + updateBy: "admin", + updateTime: "2024-09-09 17:30:40", + children: [ + { + id: "100010101", + parentId: "1000101", + name: "UI组", + leader: "晓棠", + phone: "", + email: "", + sort: 1, + status: 1, + description: "这里负责UI设计", + createBy: "admin", + createTime: "2024-03-19 11:21:01", + updateBy: "admin", + updateTime: "2024-09-09 17:30:40", + children: null + }, + { + id: "100010102", + parentId: "1000101", + name: "研发组", + leader: "小塘", + phone: "", + email: "", + sort: 2, + status: 1, + description: "这里负责开发", + createBy: "admin", + createTime: "2024-03-19 11:21:01", + updateBy: "admin", + updateTime: "2024-09-09 17:30:40", + children: null + } + ] + }, + { + id: "1000102", + parentId: "10001", + name: "人事部门", + leader: "兔子", + phone: "", + email: "", + sort: 2, + status: 1, + description: "这里是人事部门", + createBy: "admin", + createTime: "2024-03-19 11:21:01", + updateBy: "admin", + updateTime: "2024-09-09 17:30:40", + children: null + }, + { + id: "1000103", + parentId: "10001", + name: "财务部门", + leader: "小鹿", + phone: "", + email: "", + sort: 3, + status: 1, + description: "负责收账的", + createBy: "admin", + createTime: "2024-03-19 11:21:01", + updateBy: "admin", + updateTime: "2024-09-09 17:30:40", + children: null + } + ] + } + ] + } +]; + +export const roleData = [ + { + id: 1, + name: "超级管理员", + key: "admin", + sort: 1, + status: 1, + admin: true, + description: "默认角色,超级管理员,上帝角色", + createBy: null, + createTime: "2024-03-27 11:21:01", + updateBy: null, + updateTime: null + }, + { + id: 2, + name: "系统管理员", + key: "manager", + sort: 2, + status: 1, + admin: false, + description: "主要负责管理系统", + createBy: null, + createTime: "2024-03-27 11:21:01", + updateBy: null, + updateTime: null + }, + { + id: 3, + name: "操作员", + key: "common", + sort: 3, + status: 1, + admin: false, + description: "负责一些基础信息的查询", + createBy: null, + createTime: "2024-03-27 11:21:01", + updateBy: null, + updateTime: null + } +]; diff --git a/src/views/system/division/division.vue b/src/views/system/division/division.vue index 44bbf99..75da7ff 100644 --- a/src/views/system/division/division.vue +++ b/src/views/system/division/division.vue @@ -72,123 +72,8 @@