This commit is contained in:
2026-05-12 15:57:58 +08:00
parent 49f211f624
commit ddf67e914e
1 changed files with 2 additions and 1 deletions

View File

@ -483,6 +483,7 @@ const mapMarketTree = (data: any) => {
*/ */
const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', value: string) => { const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', value: string) => {
try { try {
let flag = null
// 1. // 1.
if (type === 'level') { if (type === 'level') {
// //
@ -493,7 +494,6 @@ const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', valu
if (!value) return // if (!value) return //
// //
let flag = null
if (marketForm.value?.level * 1 === 5) flag = 1 if (marketForm.value?.level * 1 === 5) flag = 1
if (marketForm.value?.level * 1 === 6) flag = 2 if (marketForm.value?.level * 1 === 6) flag = 2
console.log('datasssssssssssss', marketForm.value) console.log('datasssssssssssss', marketForm.value)
@ -519,6 +519,7 @@ const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', valu
) )
if (!rulesData) return // if (!rulesData) return //
console.log('rulesData:', rulesData);
// //
marketForm.value.maxPositionRatio = rulesData.row.wallet_capital.toucun_percent marketForm.value.maxPositionRatio = rulesData.row.wallet_capital.toucun_percent
marketForm.value.maxCommissionRatio = rulesData.row.wallet_capital.fee_handling_percent marketForm.value.maxCommissionRatio = rulesData.row.wallet_capital.fee_handling_percent