[色子游戏]玩家-新增玩家钱包操作
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user