From 231bdd1dd0fcda1410a8b24c19dbe910ada51c3f Mon Sep 17 00:00:00 2001 From: puhui999 Date: Mon, 19 Aug 2024 11:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91MALL:=20?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BD=99=E9=A2=9D=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/components/UserBalanceUpdateForm.vue | 144 ++++++++++++++++++ .../{ => components}/UserLevelUpdateForm.vue | 0 .../{ => components}/UserPointUpdateForm.vue | 15 +- .../member/user/components/balance-list.vue | 14 -- src/views/member/user/index.vue | 12 +- 5 files changed, 160 insertions(+), 25 deletions(-) create mode 100644 src/views/member/user/components/UserBalanceUpdateForm.vue rename src/views/member/user/{ => components}/UserLevelUpdateForm.vue (100%) rename src/views/member/user/{ => components}/UserPointUpdateForm.vue (91%) delete mode 100644 src/views/member/user/components/balance-list.vue diff --git a/src/views/member/user/components/UserBalanceUpdateForm.vue b/src/views/member/user/components/UserBalanceUpdateForm.vue new file mode 100644 index 00000000..c9d9ad50 --- /dev/null +++ b/src/views/member/user/components/UserBalanceUpdateForm.vue @@ -0,0 +1,144 @@ + + diff --git a/src/views/member/user/UserLevelUpdateForm.vue b/src/views/member/user/components/UserLevelUpdateForm.vue similarity index 100% rename from src/views/member/user/UserLevelUpdateForm.vue rename to src/views/member/user/components/UserLevelUpdateForm.vue diff --git a/src/views/member/user/UserPointUpdateForm.vue b/src/views/member/user/components/UserPointUpdateForm.vue similarity index 91% rename from src/views/member/user/UserPointUpdateForm.vue rename to src/views/member/user/components/UserPointUpdateForm.vue index 967ebe03..c277d9bf 100644 --- a/src/views/member/user/UserPointUpdateForm.vue +++ b/src/views/member/user/components/UserPointUpdateForm.vue @@ -1,11 +1,11 @@ - - - - - - diff --git a/src/views/member/user/index.vue b/src/views/member/user/index.vue index 69bf6de3..dc081fa6 100644 --- a/src/views/member/user/index.vue +++ b/src/views/member/user/index.vue @@ -172,7 +172,7 @@ v-if="checkPermi(['member:user:update-balance'])" command="handleUpdateBlance" > - 修改余额(WIP) + 修改余额 @@ -196,6 +196,8 @@ + + @@ -207,8 +209,9 @@ import UserForm from './UserForm.vue' import MemberTagSelect from '@/views/member/tag/components/MemberTagSelect.vue' import MemberLevelSelect from '@/views/member/level/components/MemberLevelSelect.vue' import MemberGroupSelect from '@/views/member/group/components/MemberGroupSelect.vue' -import UserLevelUpdateForm from './UserLevelUpdateForm.vue' -import UserPointUpdateForm from './UserPointUpdateForm.vue' +import UserLevelUpdateForm from './components/UserLevelUpdateForm.vue' +import UserPointUpdateForm from './components/UserPointUpdateForm.vue' +import UserBalanceUpdateForm from './components/UserBalanceUpdateForm.vue' import { CouponSendForm } from '@/views/mall/promotion/coupon/components' import { checkPermi } from '@/utils/permission' @@ -233,6 +236,7 @@ const queryParams = reactive({ const queryFormRef = ref() // 搜索的表单 const updateLevelFormRef = ref() // 修改会员等级表单 const updatePointFormRef = ref() // 修改会员积分表单 +const UpdateBalanceFormRef = ref() // 修改用户余额表单 const selectedIds = ref([]) // 表格的选中 ID 数组 /** 查询列表 */ @@ -299,7 +303,7 @@ const handleCommand = (command: string, row: UserApi.UserVO) => { updatePointFormRef.value.open(row.id) break case 'handleUpdateBlance': - // todo @jason:增加一个【修改余额】 + UpdateBalanceFormRef.value.open(row.id) break default: break