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 @@
+
@@ -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;">
+