[色子游戏]玩家-新增玩家钱包操作

This commit is contained in:
2026-03-04 15:04:11 +08:00
parent 00d964ad80
commit 0492e08cc7
10 changed files with 368 additions and 11 deletions

View File

@@ -51,9 +51,16 @@
@change="(v: string | number | boolean) => handleStatusChange(row, v ? 1 : 0)"
/>
</template>
<!-- 平台币tag 展示 -->
<!-- 平台币tag 可点击打开钱包操作弹窗 -->
<template #coin="{ row }">
<ElTag type="info" size="small">{{ row.coin ?? 0 }}</ElTag>
<ElTag
type="info"
size="small"
class="cursor-pointer hover:opacity-80"
@click="openWalletOperate(row)"
>
{{ row.coin ?? 0 }}
</ElTag>
</template>
<!-- 操作列 -->
<template #operation="{ row }">
@@ -80,6 +87,13 @@
:data="dialogData"
@success="refreshData"
/>
<!-- 钱包操作弹窗加点/扣点 -->
<WalletOperateDialog
v-model="walletDialogVisible"
:player="walletOperatePlayer"
@success="refreshData"
/>
</div>
</template>
@@ -89,6 +103,7 @@
import api from '../../api/player/index'
import TableSearch from './modules/table-search.vue'
import EditDialog from './modules/edit-dialog.vue'
import WalletOperateDialog from './modules/WalletOperateDialog.vue'
// 搜索表单
const searchForm = ref({
@@ -188,4 +203,13 @@
handleSelectionChange,
selectedRows
} = useSaiAdmin()
// 钱包操作弹窗(从平台币 tag 点击打开)
const walletDialogVisible = ref(false)
const walletOperatePlayer = ref<Record<string, any> | null>(null)
function openWalletOperate(row: Record<string, any>) {
walletOperatePlayer.value = row
walletDialogVisible.value = true
}
</script>