From 7ea35713566f786fd398e72121174bebfc4ab139 Mon Sep 17 00:00:00 2001 From: owen Date: Sat, 9 Sep 2023 14:38:46 +0800 Subject: [PATCH 01/11] =?UTF-8?q?trade:=20=E5=88=86=E9=94=80=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E5=90=8E=E5=8F=B0=E5=8A=9F=E8=83=BD=EF=BC=9A=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E6=8E=A8=E5=B9=BF=E5=91=98=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E8=B5=84=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/trade/brokerage/user/index.ts | 17 +++++ src/views/mall/trade/brokerage/user/index.vue | 66 +++++++++++++++---- 2 files changed, 70 insertions(+), 13 deletions(-) diff --git a/src/api/mall/trade/brokerage/user/index.ts b/src/api/mall/trade/brokerage/user/index.ts index 95f3a6a1..213a6cbd 100644 --- a/src/api/mall/trade/brokerage/user/index.ts +++ b/src/api/mall/trade/brokerage/user/index.ts @@ -8,6 +8,8 @@ export interface BrokerageUserVO { brokerageTime: Date price: number frozenPrice: number + + nickname: string } // 查询分销用户列表 @@ -19,3 +21,18 @@ export const getBrokerageUserPage = async (params: any) => { export const getBrokerageUser = async (id: number) => { return await request.get({ url: `/trade/brokerage-user/get?id=` + id }) } + +// 修改推广员 +export const updateBindUser = async (data: any) => { + return await request.put({ url: `/trade/brokerage-user/update-bind-user`, data }) +} + +// 清除推广员 +export const clearBindUser = async (data: any) => { + return await request.put({ url: `/trade/brokerage-user/clear-bind-user`, data }) +} + +// 修改推广资格 +export const updateBrokerageEnabled = async (data: any) => { + return await request.put({ url: `/trade/brokerage-user/update-brokerage-enable`, data }) +} diff --git a/src/views/mall/trade/brokerage/user/index.vue b/src/views/mall/trade/brokerage/user/index.vue index db59c52d..4e67cc8c 100644 --- a/src/views/mall/trade/brokerage/user/index.vue +++ b/src/views/mall/trade/brokerage/user/index.vue @@ -104,8 +104,8 @@ active-text="有" inactive-text="无" inline-prompt - :disabled="!checkPermi(['trade:brokerage-user:update-brokerage-user'])" - @change="handleBrokerageEnabledChange(scope.row.id, !scope.row.brokerageEnabled)" + :disabled="!checkPermi(['trade:brokerage-user:update-bind-user'])" + @change="handleBrokerageEnabledChange(scope.row)" /> @@ -131,10 +131,14 @@ v-hasPermi="[ 'trade:brokerage-user:user-query', 'trade:brokerage-user:order-query', - 'trade:brokerage-user:update-brokerage-user', - 'trade:brokerage-user:clear-brokerage-user' + 'trade:brokerage-user:update-bind-user', + 'trade:brokerage-user:clear-bind-user' ]" > + + + 更多 + diff --git a/src/views/mall/trade/brokerage/user/index.vue b/src/views/mall/trade/brokerage/user/index.vue index aaa9326d..fa72caa1 100644 --- a/src/views/mall/trade/brokerage/user/index.vue +++ b/src/views/mall/trade/brokerage/user/index.vue @@ -57,10 +57,10 @@ + diff --git a/src/views/mall/trade/brokerage/user/BrokerageUserListDialog.vue b/src/views/mall/trade/brokerage/user/BrokerageUserListDialog.vue index 6e9e492a..5a388d38 100644 --- a/src/views/mall/trade/brokerage/user/BrokerageUserListDialog.vue +++ b/src/views/mall/trade/brokerage/user/BrokerageUserListDialog.vue @@ -18,9 +18,6 @@ > {{ item.name }} - - - diff --git a/src/views/mall/trade/brokerage/user/index.vue b/src/views/mall/trade/brokerage/user/index.vue index fa72caa1..2c117cb7 100644 --- a/src/views/mall/trade/brokerage/user/index.vue +++ b/src/views/mall/trade/brokerage/user/index.vue @@ -183,7 +183,10 @@ + + + diff --git a/src/views/mall/trade/brokerage/withdraw/index.vue b/src/views/mall/trade/brokerage/withdraw/index.vue new file mode 100644 index 00000000..89323f93 --- /dev/null +++ b/src/views/mall/trade/brokerage/withdraw/index.vue @@ -0,0 +1,264 @@ + + +