From d87a7f20c6d759fd8e92820c83ed9fdef2e10576 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 6 Jul 2020 10:14:20 +0800 Subject: [PATCH] rbacfilterset --- client/src/api/user.js | 8 ++ client/src/layout/components/Navbar.vue | 5 ++ client/src/router/index.js | 7 ++ client/src/utils/request.js | 27 ++++--- .../src/views/implementrule/implementrule.vue | 6 -- client/src/views/system/changepassword.vue | 78 +++++++++++++++++++ client/src/views/system/dict.vue | 16 +--- client/src/views/system/organization.vue | 8 +- client/src/views/system/perm.vue | 8 +- client/src/views/system/position.vue | 8 +- client/src/views/system/user.vue | 10 +-- server/apps/certset/views.py | 22 ++---- server/apps/system/permission.py | 4 + server/apps/system/views.py | 4 +- 14 files changed, 141 insertions(+), 70 deletions(-) create mode 100644 client/src/views/system/changepassword.vue diff --git a/client/src/api/user.js b/client/src/api/user.js index 2712ba4..8edf3ab 100644 --- a/client/src/api/user.js +++ b/client/src/api/user.js @@ -60,3 +60,11 @@ export function deleteUser(id, data) { data }) } + +export function changePassword(data) { + return request({ + url: '/system/user/password/', + method: 'put', + data + }) +} diff --git a/client/src/layout/components/Navbar.vue b/client/src/layout/components/Navbar.vue index e8a4fac..7ec580c 100644 --- a/client/src/layout/components/Navbar.vue +++ b/client/src/layout/components/Navbar.vue @@ -16,6 +16,11 @@ 首页 + + + 修改密码 + +