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 @@ + +