更新数据

This commit is contained in:
2026-06-11 10:56:51 +08:00
parent d201e42309
commit 39c30a0a4e
2 changed files with 39 additions and 33 deletions

View File

@ -389,7 +389,7 @@ const fetchChannelList = async () => {
}
//
const handleOpenDialog = async (row: ChannelRow) => {
const handleOpenDialog = async (row: any) => {
rechangeForm.value = {
id: row.id,
type: row.type,

View File

@ -651,16 +651,17 @@ const handleAction = (key: 'account' | 'acceptOrders' | 'transfer' | 'deposit' |
})
}
const handleRightClickDialogSubmit = () => {
const handleRightClickDialogSubmit = async () => {
try {
switch (rightClickDialogType.value) {
case 'account':
updateCapital({
await updateCapital({
target_user_id: rightClickMarketForm.value.target_user_id,
amount: rightClickMarketForm.value.amount,
})
break
case 'acceptOrders':
editAgentBail({
await editAgentBail({
user_id: rightClickMarketForm.value.target_user_id,
bail: null,
bail_change_order: null,
@ -668,7 +669,7 @@ const handleRightClickDialogSubmit = () => {
})
break
case 'transfer':
editAgentBail({
await editAgentBail({
user_id: rightClickMarketForm.value.target_user_id,
bail: null,
bail_change_order: rightClickMarketForm.value.bail_change_order,
@ -684,6 +685,11 @@ const handleRightClickDialogSubmit = () => {
break
}
rightClickDialogVisible.value = false
//
getMarketList()
} catch (error) {
console.error('操作失败', error)
}
}
const handleRightClickDialogCancel = () => {