Commit 6f86f8a03dc1f5596c6ecb41d88eb7207b0f4b7c
Merge branch 'Shinner-approval-treeSelect-fix-bug' into 'master'
feat(approval): 审批配置修复树状门店选择器回显数据的问题 See merge request !707
Showing
1 changed file
with
5 additions
and
4 deletions
src/pages/approval/components/ShopSelectByBizType/index.tsx
... | ... | @@ -107,8 +107,8 @@ function ShopSelectByBizType( |
107 | 107 | (children || []) |
108 | 108 | .filter((child) => !child.disabled) |
109 | 109 | .map((shop) => ({ |
110 | - label: `${shop.shopName}`, | |
111 | - value: shop.shopId, | |
110 | + label: shop.title, | |
111 | + value: shop.value, | |
112 | 112 | })), |
113 | 113 | ); |
114 | 114 | if (index === byBizTypeList.length - 1) { |
... | ... | @@ -135,8 +135,8 @@ function ShopSelectByBizType( |
135 | 135 | // 将商家下的门店赋值给allValues |
136 | 136 | allValues.current = allValues.current.concat( |
137 | 137 | (children || []).map((shop) => ({ |
138 | - label: shop.shopName, | |
139 | - value: shop.shopId, | |
138 | + label: shop.title, | |
139 | + value: shop.value, | |
140 | 140 | })), |
141 | 141 | ); |
142 | 142 | if (index === byDealerList.length - 1) { |
... | ... | @@ -220,6 +220,7 @@ function ShopSelectByBizType( |
220 | 220 | } |
221 | 221 | |
222 | 222 | function processingChildrenData(data: ShopItem, showIds?: number[], hiddenIds?: number[], disabledIds?: number[]): DataItem[] | undefined { |
223 | + // todo hiddenIds 需要拼接 bizType 处理 | |
223 | 224 | let _data: ShopItem[] | undefined, _children: DataItem[] | undefined; |
224 | 225 | |
225 | 226 | if (showIds?.length) { | ... | ... |