From 877d4107bf6015a904d982f4ccfeff463cf011e2 Mon Sep 17 00:00:00 2001 From: wen <1515> Date: Sat, 29 Oct 2022 09:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E6=8E=A5=E5=8F=A3=E5=8F=8A?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=AE=8C=E6=88=90=EF=BC=8C=E5=B7=B2=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- public/loadhead.css | 1 + src/components/Breadcrumb/index.vue | 133 +++++- src/layout/components/Sidebar/index.vue | 49 +- .../components/Sidebar/leftMenusData.js | 9 +- src/store/modules/user.js | 4 +- src/views/filemange/index.vue | 425 ++++++++++++++++-- src/views/homepage/index.vue | 22 +- src/views/login/index.vue | 53 ++- src/views/subfile/{indexs.js => index.js} | 0 src/views/subfile/index.vue | 61 ++- src/views/systme/changepass.vue | 151 ++++--- src/views/systme/switchtheme.vue | 43 +- src/views/systme/userrelated.vue | 7 +- src/views/usermanage/index.vue | 53 +-- 15 files changed, 767 insertions(+), 246 deletions(-) rename src/views/subfile/{indexs.js => index.js} (100%) diff --git a/public/index.html b/public/index.html index 643e78b..7fcf87d 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,7 @@ - 嘉洛马 + 嘉洛马 — 文件后台管理系统 diff --git a/public/loadhead.css b/public/loadhead.css index c11f9cb..1b8bbdd 100644 --- a/public/loadhead.css +++ b/public/loadhead.css @@ -12,6 +12,7 @@ a{color:#464c5c;text-decoration:none;} .elementhidden{visibility:hidden !important;} .verMiddle{vertical-align:middle !important;} .vercenter{text-align:center !important;} +.verleft{text-align:left !important;} .textright{text-align:right !important;} .verbold{font-weight:bold !important;} .qcmargin{margin:0 !important;} diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index de68aa1..52c94c3 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -1,33 +1,145 @@ diff --git a/src/layout/components/Sidebar/leftMenusData.js b/src/layout/components/Sidebar/leftMenusData.js index 2a89293..58aa2d4 100644 --- a/src/layout/components/Sidebar/leftMenusData.js +++ b/src/layout/components/Sidebar/leftMenusData.js @@ -30,8 +30,7 @@ var menusdata = [ { id: '0', path: '/homepage', - meta: { title: '首页', icon: 'dashboard' }, - children:[] + meta: { title: '首页', icon: 'dashboard' } }, { @@ -42,29 +41,35 @@ var menusdata = [ children:[] }, { + id: '2', path: '/usermange/index', meta: { title: '用户管理', icon: 'form' } }, { + id: '3', path: '/systme', meta: { title: '系统管理', icon: 'dashboard' }, children: [ { + id:'3-1', path: 'changepass', meta: { title: '修改密码', icon: 'table' } }, { + id: '3-2', path: 'userrelated', meta: { title: '用户相关', icon: 'tree' } }, { + id: '3-3', path: 'switchtheme', meta: { title: '皮肤更换', icon: 'tree' } } ] }, { + id: '4', path: 'https://dev.filesite.io', meta: { title: '前端展示页面', icon: 'link' } diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 2f6423f..f77b10c 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -30,9 +30,9 @@ const mutations = { const actions = { // user login login({ commit }, userInfo) { - const { username, password } = userInfo + const { username, password, captcha} = userInfo return new Promise((resolve, reject) => { - login({ username: username.trim(), password: password }).then(response => { + login({ username: username.trim(), password: password, captcha: captcha}).then(response => { const { data } = response commit('SET_TOKEN', data.token) setToken(data.token) diff --git a/src/views/filemange/index.vue b/src/views/filemange/index.vue index 84aba5a..1606441 100644 --- a/src/views/filemange/index.vue +++ b/src/views/filemange/index.vue @@ -1,23 +1,107 @@