From 940f54e876f1c6ccc6e239c5990d34e83fb02b78 Mon Sep 17 00:00:00 2001 From: Loki <654612@qq.com> Date: Tue, 10 May 2022 18:48:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BC=81=E4=B8=9A=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=91=98=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/cpUser.js | 54 ++++++ src/views/system/cpUser/index.vue | 294 ++++++++++++++++++++++++++++++ 2 files changed, 348 insertions(+) create mode 100644 src/api/system/cpUser.js create mode 100644 src/views/system/cpUser/index.vue diff --git a/src/api/system/cpUser.js b/src/api/system/cpUser.js new file mode 100644 index 0000000..2c2cde6 --- /dev/null +++ b/src/api/system/cpUser.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建企业微信成员 +export function createCpUser(data) { + return request({ + url: '/system/cp-user/create', + method: 'post', + data: data + }) +} + +// 更新企业微信成员 +export function updateCpUser(data) { + return request({ + url: '/system/cp-user/update', + method: 'put', + data: data + }) +} + +// 删除企业微信成员 +export function deleteCpUser(id) { + return request({ + url: '/system/cp-user/delete?id=' + id, + method: 'delete' + }) +} + +// 获得企业微信成员 +export function getCpUser(id) { + return request({ + url: '/system/cp-user/get?id=' + id, + method: 'get' + }) +} + +// 获得企业微信成员分页 +export function getCpUserPage(query) { + return request({ + url: '/system/cp-user/page', + method: 'get', + params: query + }) +} + +// 导出企业微信成员 Excel +export function exportCpUserExcel(query) { + return request({ + url: '/system/cp-user/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/system/cpUser/index.vue b/src/views/system/cpUser/index.vue new file mode 100644 index 0000000..f3b167a --- /dev/null +++ b/src/views/system/cpUser/index.vue @@ -0,0 +1,294 @@ + + +