Commit e982a67e92ce301abc0fff7b06f88114fa69a563
1 parent
12cdc890
perf(src/views/chart): 修改升级版本后联动组件绑定下拉框无值
Showing
1 changed file
with
11 additions
and
1 deletions
@@ -183,9 +183,19 @@ const fnEventsOptions = (): Array<SelectOption | SelectGroupOption> => { | @@ -183,9 +183,19 @@ const fnEventsOptions = (): Array<SelectOption | SelectGroupOption> => { | ||
183 | iter: Array<CreateComponentType | CreateComponentGroupType>, | 183 | iter: Array<CreateComponentType | CreateComponentGroupType>, |
184 | val: CreateComponentType | CreateComponentGroupType | 184 | val: CreateComponentType | CreateComponentGroupType |
185 | ) => { | 185 | ) => { |
186 | - if (!val.groupList && val.request.requestDataType === RequestDataTypeEnum.AJAX && val.request.requestUrl) { | 186 | + /** |
187 | + * WARNING 这里升级版本有冲突 | ||
188 | + * 不修改这里的话,会造成联动组件绑定不了动态请求相关的组件 | ||
189 | + * 由于只修改一处,所以没必要进行重写,原因是原作者用的是AJAX,此项目重写了原作者的动态请求方式,此项目使用的是Pond | ||
190 | + * 修改后的代码在注释之间,并标注好源代码和修改后代码,方便回溯 | ||
191 | + * 源代码 RequestDataTypeEnum.AJAX | ||
192 | + * 修改后的代码 RequestDataTypeEnum.Pond | ||
193 | + * 修改后代码在//ft之间 | ||
194 | + */ | ||
195 | + if (!val.groupList && val.request.requestDataType === RequestDataTypeEnum.Pond && val.request.requestUrl) { | ||
187 | iter.push(val) | 196 | iter.push(val) |
188 | } | 197 | } |
198 | + //ft | ||
189 | return val.groupList && val.groupList.length > 0 ? [...iter, ...fnFlattern(val.groupList)] : iter | 199 | return val.groupList && val.groupList.length > 0 ? [...iter, ...fnFlattern(val.groupList)] : iter |
190 | }, | 200 | }, |
191 | [] | 201 | [] |