From e0e287c88bcc3cd49958f6dbe444c047f17fbba4 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Fri, 29 Nov 2024 17:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E3=80=91=E5=95=86=E5=9F=8E=E5=88=86=E9=94=80:=20=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=88=86=E9=94=80=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/trade/brokerage/user/index.ts | 5 + .../trade/brokerage/user/CreateUserForm.vue | 189 ++++++++++++++++++ src/views/mall/trade/brokerage/user/index.vue | 126 +++++++----- 3 files changed, 269 insertions(+), 51 deletions(-) create mode 100644 src/views/mall/trade/brokerage/user/CreateUserForm.vue diff --git a/src/api/mall/trade/brokerage/user/index.ts b/src/api/mall/trade/brokerage/user/index.ts index 1fed3bfa..8ed69771 100644 --- a/src/api/mall/trade/brokerage/user/index.ts +++ b/src/api/mall/trade/brokerage/user/index.ts @@ -13,6 +13,11 @@ export interface BrokerageUserVO { avatar: string } +// 创建分销用户 +export const createBrokerageUser = (data: any) => { + return request.post({ url: '/trade/brokerage-user/create', data }) +} + // 查询分销用户列表 export const getBrokerageUserPage = async (params: any) => { return await request.get({ url: `/trade/brokerage-user/page`, params }) diff --git a/src/views/mall/trade/brokerage/user/CreateUserForm.vue b/src/views/mall/trade/brokerage/user/CreateUserForm.vue new file mode 100644 index 00000000..392b89e9 --- /dev/null +++ b/src/views/mall/trade/brokerage/user/CreateUserForm.vue @@ -0,0 +1,189 @@ + + diff --git a/src/views/mall/trade/brokerage/user/index.vue b/src/views/mall/trade/brokerage/user/index.vue index 22daf1b2..930a4f2b 100644 --- a/src/views/mall/trade/brokerage/user/index.vue +++ b/src/views/mall/trade/brokerage/user/index.vue @@ -4,19 +4,19 @@ @@ -26,111 +26,126 @@ clearable placeholder="请选择推广资格" > - - + + - 搜索 - 重置 + + + 搜索 + + + + 重置 + + + + 新增 + - - - + + + - - + + - + - + - + - +