From ddf67e914ead0b8c3022b0d42ba8743bc8470d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Tue, 12 May 2026 15:57:58 +0800 Subject: [PATCH] bug --- src/views/profile/business/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/profile/business/index.vue b/src/views/profile/business/index.vue index 51cf25c..9675c55 100644 --- a/src/views/profile/business/index.vue +++ b/src/views/profile/business/index.vue @@ -483,6 +483,7 @@ const mapMarketTree = (data: any) => { */ const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', value: string) => { try { + let flag = null // 1. 级别变更:获取所属上级账户列表 if (type === 'level') { // 清空关联数据,避免脏数据 @@ -493,7 +494,6 @@ const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', valu if (!value) return // 未选择级别,直接返回 // 调用获取上级账户列表接口 - let flag = null if (marketForm.value?.level * 1 === 5) flag = 1 if (marketForm.value?.level * 1 === 6) flag = 2 console.log('datasssssssssssss', marketForm.value) @@ -519,6 +519,7 @@ const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', valu ) if (!rulesData) return // 未找到匹配项,直接返回 + console.log('rulesData:', rulesData); // 赋值最大头寸和手续费比例 marketForm.value.maxPositionRatio = rulesData.row.wallet_capital.toucun_percent marketForm.value.maxCommissionRatio = rulesData.row.wallet_capital.fee_handling_percent