From 7742e4f3f78257811723d29221f43d11201b141c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 28 Sep 2020 11:48:01 +0800 Subject: [PATCH] some update --- client/src/api/user.js | 15 + client/src/layout/components/Navbar.vue | 5 + client/src/layout/components/Sidebar/Logo.vue | 6 +- client/src/router/index.js | 70 ++- client/src/settings.js | 2 +- client/src/views/ability/cma.vue | 270 +++++----- client/src/views/ability/cma2.vue | 471 ++++++++++-------- client/src/views/ability/qualification.vue | 29 +- .../views/dashboard/components/BarChart.vue | 102 ++++ .../views/dashboard/components/BoxCard.vue | 118 +++++ .../views/dashboard/components/LineChart.vue | 135 +++++ .../views/dashboard/components/PanelGroup.vue | 200 ++++++++ .../views/dashboard/components/PieChart.vue | 79 +++ .../dashboard/components/RaddarChart.vue | 116 +++++ .../dashboard/components/TodoList/Todo.vue | 81 +++ .../dashboard/components/TodoList/index.scss | 320 ++++++++++++ .../dashboard/components/TodoList/index.vue | 127 +++++ .../dashboard/components/TransactionTable.vue | 55 ++ .../dashboard/components/mixins/resize.js | 55 ++ client/src/views/dashboard/index.vue | 160 +++++- client/src/views/login/index.vue | 4 +- client/src/views/system/changepassword.vue | 78 +++ client/src/views/system/user.vue | 378 ++++++++------ server/apps/ability/views.py | 2 +- server/apps/system/serializers.py | 2 +- server/apps/system/views.py | 24 +- 26 files changed, 2384 insertions(+), 520 deletions(-) create mode 100644 client/src/views/dashboard/components/BarChart.vue create mode 100644 client/src/views/dashboard/components/BoxCard.vue create mode 100644 client/src/views/dashboard/components/LineChart.vue create mode 100644 client/src/views/dashboard/components/PanelGroup.vue create mode 100644 client/src/views/dashboard/components/PieChart.vue create mode 100644 client/src/views/dashboard/components/RaddarChart.vue create mode 100644 client/src/views/dashboard/components/TodoList/Todo.vue create mode 100644 client/src/views/dashboard/components/TodoList/index.scss create mode 100644 client/src/views/dashboard/components/TodoList/index.vue create mode 100644 client/src/views/dashboard/components/TransactionTable.vue create mode 100644 client/src/views/dashboard/components/mixins/resize.js create mode 100644 client/src/views/system/changepassword.vue 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 @@