From 1b62a4f3e070cb83581660dc6b2d7012bc831cff Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Tue, 3 Mar 2026 15:15:16 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=89=B2=E5=AD=90=E6=B8=B8=E6=88=8F]=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6=E9=92=B1=E5=8C=85=E6=B5=81=E6=B0=B4=E8=AE=B0=E5=BD=95?= =?UTF-8?q?-=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/sai/sa-search-bar/index.vue | 12 +- .../dice/api/player_wallet_record/index.ts | 19 ++ .../dice/player_wallet_record/index/index.vue | 38 +++- .../index/modules/edit-dialog.vue | 190 +++++++++++------- .../index/modules/table-search.vue | 53 ++++- .../DicePlayerWalletRecordController.php | 39 ++++ .../DicePlayerWalletRecordLogic.php | 11 + .../DicePlayerWalletRecord.php | 48 ++++- .../DicePlayerWalletRecordValidate.php | 34 +--- 9 files changed, 334 insertions(+), 110 deletions(-) diff --git a/saiadmin-artd/src/components/sai/sa-search-bar/index.vue b/saiadmin-artd/src/components/sai/sa-search-bar/index.vue index 7598bca..87d86ce 100644 --- a/saiadmin-artd/src/components/sai/sa-search-bar/index.vue +++ b/saiadmin-artd/src/components/sai/sa-search-bar/index.vue @@ -14,12 +14,6 @@
- - - {{ t('table.searchBar.reset') }} - {{ t('table.searchBar.search') }} + + + {{ t('table.searchBar.reset') }} +
{{ expandToggleText }} diff --git a/saiadmin-artd/src/views/plugin/dice/api/player_wallet_record/index.ts b/saiadmin-artd/src/views/plugin/dice/api/player_wallet_record/index.ts index 0e5ee88..aec3c77 100644 --- a/saiadmin-artd/src/views/plugin/dice/api/player_wallet_record/index.ts +++ b/saiadmin-artd/src/views/plugin/dice/api/player_wallet_record/index.ts @@ -61,5 +61,24 @@ export default { url: '/dice/player_wallet_record/DicePlayerWalletRecord/destroy', data: params }) + }, + + /** + * 获取玩家选项(id、username)用于下拉 + */ + getPlayerOptions() { + return request.get<{ id: number; username: string }[]>({ + url: '/dice/player_wallet_record/DicePlayerWalletRecord/getPlayerOptions' + }) + }, + + /** + * 获取指定玩家当前平台币(钱包操作前) + */ + getPlayerWalletBefore(playerId: number | string) { + return request.get<{ wallet_before: number }>({ + url: '/dice/player_wallet_record/DicePlayerWalletRecord/getPlayerWalletBefore', + params: { player_id: playerId } + }) } } diff --git a/saiadmin-artd/src/views/plugin/dice/player_wallet_record/index/index.vue b/saiadmin-artd/src/views/plugin/dice/player_wallet_record/index/index.vue index 68c5714..7789c2b 100644 --- a/saiadmin-artd/src/views/plugin/dice/player_wallet_record/index/index.vue +++ b/saiadmin-artd/src/views/plugin/dice/player_wallet_record/index/index.vue @@ -8,7 +8,11 @@