From 4fd9dfd1f842f145485eeefa8581b771caf68a5f Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 19 Aug 2023 14:11:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E4=B8=AD=E5=BF=83=EF=BC=9A?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AE=A1=E7=90=86=2050%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/member/user/index.ts | 34 ++++++ src/views/member/user/UserForm.vue | 160 ++++++++++++++++++++++++++ src/views/member/user/index.vue | 176 +++++++++++++++++++++++++++++ 3 files changed, 370 insertions(+) create mode 100644 src/api/member/user/index.ts create mode 100644 src/views/member/user/UserForm.vue create mode 100644 src/views/member/user/index.vue diff --git a/src/api/member/user/index.ts b/src/api/member/user/index.ts new file mode 100644 index 00000000..fbeaba93 --- /dev/null +++ b/src/api/member/user/index.ts @@ -0,0 +1,34 @@ +import request from '@/config/axios' + +export interface UserVO { + id: number + mobile: string + password: string + status: number + registerIp: string + loginIp: string + loginDate: Date + nickname: string + avatar: string + name: string + sex: number + areaId: number + birthday: Date + mark: string + createTime: Date +} + +// 查询会员用户列表 +export const getUserPage = async (params) => { + return await request.get({ url: `/member/user/page`, params }) +} + +// 查询会员用户详情 +export const getUser = async (id: number) => { + return await request.get({ url: `/member/user/get?id=` + id }) +} + +// 修改会员用户 +export const updateUser = async (data: UserVO) => { + return await request.put({ url: `/member/user/update`, data }) +} diff --git a/src/views/member/user/UserForm.vue b/src/views/member/user/UserForm.vue new file mode 100644 index 00000000..8cc8cd7a --- /dev/null +++ b/src/views/member/user/UserForm.vue @@ -0,0 +1,160 @@ + + diff --git a/src/views/member/user/index.vue b/src/views/member/user/index.vue new file mode 100644 index 00000000..925eca04 --- /dev/null +++ b/src/views/member/user/index.vue @@ -0,0 +1,176 @@ + +