Commit 17e46f575dbee69e723cfed0f613c126752089a5
Committed by
xp.Huang
1 parent
d23423e2
fix: 修复场景联动新增无法切换组织
(cherry picked from commit debf15bb)
Showing
1 changed file
with
4 additions
and
1 deletions
... | ... | @@ -64,7 +64,10 @@ |
64 | 64 | } |
65 | 65 | |
66 | 66 | function handleOnOrganizationOptionsChange(options: OrganizationListItem[]) { |
67 | - if (unref(drawerMode) === DataActionModeEnum.CREATE) { | |
67 | + if ( | |
68 | + unref(drawerMode) === DataActionModeEnum.CREATE && | |
69 | + !basicFormActionType.getFieldsValue()?.[FormFieldsEnum.ORGANIZATION_ID] | |
70 | + ) { | |
68 | 71 | const [firsetItem] = options; |
69 | 72 | organizationId.value = firsetItem?.id; |
70 | 73 | basicFormActionType.setFieldsValue({ [FormFieldsEnum.ORGANIZATION_ID]: firsetItem?.id }); | ... | ... |