From 7fa16157b26717ce73ec633a46803eba5f70ab01 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Tue, 21 Oct 2025 15:49:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E8=A1=8C=E4=BA=BA=E5=B7=B2=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moneyManage/refundDetail/refundCharge.vue | 59 ++++++++++++---------- .../moneyManage/refundDetail/refundHeader.vue | 2 + 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/src/views/moneyManage/refundDetail/refundCharge.vue b/src/views/moneyManage/refundDetail/refundCharge.vue index 9fc13d1..16807e9 100644 --- a/src/views/moneyManage/refundDetail/refundCharge.vue +++ b/src/views/moneyManage/refundDetail/refundCharge.vue @@ -12,12 +12,13 @@
所属地区 - +
产品名称 - +
订单状态 @@ -284,6 +285,8 @@ style="width: 30px; height: 30px;"> 步骤图标 + 步骤图标 @@ -700,33 +703,33 @@ const productList = [ ] const getMarket = async function () { - try { - const result = await API({ - - url: '/market/selectMarket', - }) - console.log('看看地区树', result) - - const transformTree = (nodes) => { - const allChildren = nodes.flatMap(node => node.children || []); - - return allChildren.map(child => { - const grandchildren = child.children && child.children.length - ? transformTree([child]) - : null; + try { + const result = await API({ - return { - value: child.name, - label: child.name, - children: grandchildren + url: '/market/selectMarket', + }) + console.log('看看地区树', result) + + const transformTree = (nodes) => { + const allChildren = nodes.flatMap(node => node.children || []); + + return allChildren.map(child => { + const grandchildren = child.children && child.children.length + ? transformTree([child]) + : null; + + return { + value: child.name, + label: child.name, + children: grandchildren + }; + }); }; - }); - }; - market.value = transformTree(result.data) - console.log('转换后的地区树==============', market.value) - } catch (error) { - console.log('请求失败', error) - } + market.value = transformTree(result.data) + console.log('转换后的地区树==============', market.value) + } catch (error) { + console.log('请求失败', error) + } } const hideReject = function () { showReject.value = false diff --git a/src/views/moneyManage/refundDetail/refundHeader.vue b/src/views/moneyManage/refundDetail/refundHeader.vue index 608ea9d..05680a1 100644 --- a/src/views/moneyManage/refundDetail/refundHeader.vue +++ b/src/views/moneyManage/refundDetail/refundHeader.vue @@ -294,6 +294,8 @@ style="width: 30px; height: 30px;"> 步骤图标 + 步骤图标