diff --git a/client/src/api/user.js b/client/src/api/user.js index 3bf3700..397ef0c 100644 --- a/client/src/api/user.js +++ b/client/src/api/user.js @@ -69,3 +69,18 @@ export function deleteUser(id, data) { data }) } + +export function resetUserpw(id) { + return request({ + url: `/system/user/${id}/resetpw/`, + method: 'put', + }) +} + +export function changePassword(data) { + return request({ + url: '/system/user/password/', + method: 'put', + data + }) +} \ No newline at end of file diff --git a/client/src/layout/components/Navbar.vue b/client/src/layout/components/Navbar.vue index e8a4fac..a277ecb 100644 --- a/client/src/layout/components/Navbar.vue +++ b/client/src/layout/components/Navbar.vue @@ -16,6 +16,11 @@ 首页 + + + 修改密码 + + @@ -83,48 +83,62 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - - - - - - - - - - - - - - - - - - - - - - + - + ' + + searchList[i] + + "" + ); + } + return val; + } else { + return val; + } + }, checkPermission, handleUploadSuccess(res, file) { const loading = this.openLoading(); diff --git a/client/src/views/ability/cma2.vue b/client/src/views/ability/cma2.vue index 1fa1303..a7d1d6f 100644 --- a/client/src/views/ability/cma2.vue +++ b/client/src/views/ability/cma2.vue @@ -1,123 +1,158 @@ diff --git a/client/src/views/ability/qualification.vue b/client/src/views/ability/qualification.vue index 7638ad3..9e7ed9c 100644 --- a/client/src/views/ability/qualification.vue +++ b/client/src/views/ability/qualification.vue @@ -81,16 +81,24 @@ - + - + - + - + + \ No newline at end of file diff --git a/client/src/views/system/user.vue b/client/src/views/system/user.vue index 4d32479..16afd8b 100644 --- a/client/src/views/system/user.vue +++ b/client/src/views/system/user.vue @@ -1,142 +1,169 @@