From 23d5ec5f50c0fa772818cf145c30f97d2cfb1543 Mon Sep 17 00:00:00 2001 From: liyuchen <791867849@qq.com> Date: Wed, 12 Apr 2023 09:23:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=A0=B7=E5=BC=8F=E4=BB=A5=E5=8F=8A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=AE=A1=E6=A0=B8=E5=8A=9F=E8=83=BD?= =?UTF-8?q?-liyuchen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- src/api/response/adminManager.js | 44 ++++ src/api/response/administrator.js | 44 ++++ src/assets/vordm-mini.png | Bin 0 -> 7191 bytes src/assets/vordm.png | Bin 0 -> 3137 bytes src/layout/logo/index.vue | 23 ++- src/layout/navMenu/vertical.vue | 1 + src/router/route.js | 24 +-- src/stores/themeConfig.js | 4 +- .../component/addAdministrator.vue | 116 +++++++++++ .../administrator/index.vue | 98 ++++----- .../administrator/component/audit.vue | 100 +++++++++ .../systemManagement/administrator/index.vue | 189 +++++++++++++++++- 13 files changed, 568 insertions(+), 77 deletions(-) create mode 100644 src/api/response/adminManager.js create mode 100644 src/api/response/administrator.js create mode 100644 src/assets/vordm-mini.png create mode 100644 src/assets/vordm.png create mode 100644 src/views/responseManagement/administrator/component/addAdministrator.vue create mode 100644 src/views/systemManagement/administrator/component/audit.vue diff --git a/index.html b/index.html index c40daad..9a4d343 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + VoRDM Admin diff --git a/src/api/response/adminManager.js b/src/api/response/adminManager.js new file mode 100644 index 0000000..55427cd --- /dev/null +++ b/src/api/response/adminManager.js @@ -0,0 +1,44 @@ +import request, {moduleName} from '/@/utils/request'; + +/** + * 查询管理员用户分页列表 + * @param current + * @param size + * @param params + * @returns {Promise>} + */ +export const getAdminManagerPage = (current,size,params) => { + return request({ + url: '/api/' + moduleName + '/adminManager/pages', + method: 'get', + params: { + current, + size, + ...params + } + }); +}; + +/** + * 新增管理员 + * @param data + * @returns {Promise>} + */ +export const auditData = (data) => { + return request({ + url: '/api/' + moduleName + '/adminManager/audit', + method: 'post', + data: data + }); +}; + + +export const remove = (ids) => { + return request({ + url: '/api/' + moduleName + '/administrator/delete', + method: 'delete', + params: { + ids, + } + }) +} diff --git a/src/api/response/administrator.js b/src/api/response/administrator.js new file mode 100644 index 0000000..378bd26 --- /dev/null +++ b/src/api/response/administrator.js @@ -0,0 +1,44 @@ +import request, {moduleName} from '/@/utils/request'; + +/** + * 查询管理员用户分页列表 + * @param current + * @param size + * @param params + * @returns {Promise>} + */ +export const getAdminPage = (current,size,params) => { + return request({ + url: '/api/' + moduleName + '/administrator/pages', + method: 'get', + params: { + current, + size, + ...params + } + }); +}; + +/** + * 新增管理员 + * @param data + * @returns {Promise>} + */ +export const addAdmin = (data) => { + return request({ + url: '/api/' + moduleName + '/administrator/add', + method: 'post', + data: data + }); +}; + + +export const remove = (ids) => { + return request({ + url: '/api/' + moduleName + '/administrator/delete', + method: 'delete', + params: { + ids, + } + }) +} diff --git a/src/assets/vordm-mini.png b/src/assets/vordm-mini.png new file mode 100644 index 0000000000000000000000000000000000000000..200a6c22dc26888a5ad8cfb6f581fd6d7c4faef2 GIT binary patch literal 7191 zcmaKRcQ{<{*0x0S5hZFujNXDV>gdMkB|1q6!VJUcqnFWJ5Is84BSec9y%PipB6=?q zL5Ld6C+9uC^L~GP=iAq{ul=m&y6=14Yd!1vYe(zqsFIW3C&k0VBUe|0>EC=s|Gvb8 zczCyJG5i5H0V7)36m8&)Kzmua!SNJroL|6!>W)^naDBLyjgRXPTm}yhpB-sviZ<2O zlCpMo6twz_5%hL+xnbks$;f-VSXn#3(ZCmQTcndL+kQ(28xUzD%Vr{`4bpZ|g4-e0 zeBIy%zB-21z7Ez98#Z}4pp3WFjesK@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z1YV6ptpo9;m03Ck3M?x}+{0Xe(iDPyoTOxC{+dy{=JIkzBl2y* z$l%-LlS%qpDfK%zi5-cPOD$f;iO*vn_Oef^l{%@)TLnzDSAA~1l%f4sB~T$zf!FbB ze^tnIjx_JDIRuS0s9@`ubR618T?`c}?UT~i1y>q+l}&|8`=Ym8Re@CV-{j7w3#Bo9 z-GWunv|fc#`DuTYh6
- +
@@ -13,6 +13,8 @@ import { computed } from 'vue'; import { storeToRefs } from 'pinia'; import { useThemeConfig } from '/@/stores/themeConfig'; import logoMini from '/@/assets/logo-mini.svg'; +import Vordm from '/@/assets/vordm.png'; +import VordmMini from '/@/assets/vordm-mini.png' // 定义变量内容 const storesThemeConfig = useThemeConfig(); @@ -32,17 +34,18 @@ const onThemeConfigChange = () => { \ No newline at end of file diff --git a/src/views/responseManagement/administrator/index.vue b/src/views/responseManagement/administrator/index.vue index 2e76b25..fca4219 100644 --- a/src/views/responseManagement/administrator/index.vue +++ b/src/views/responseManagement/administrator/index.vue @@ -1,25 +1,41 @@ + + +