Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: data scope support variables for association fields #2049

Merged
merged 21 commits into from
Jun 22, 2023

Conversation

katherinehhh
Copy link
Contributor

@katherinehhh katherinehhh commented Jun 14, 2023

Note
This is a template for submitting a new feature. Use the bug fix template if you're submitting a bug fix pull request by adding template=bug_fix.md to your pull request URL.

Description (需求描述)

关系字段数据范围的联动

Motivation (需求背景)

场景一:
假设有学校、班级、学生三个关系字段,彼此间关系为

  • 学校一对多班级、班级一对多学生
  • 先选学校,班级为所选学校的班级,班级和学生的范围联动也是一样的

场景二:
需求表
工艺路线 (一对多)
工艺路线表
source步骤(多对一) -> 指向步骤表
target步骤(多对一) -> 指向步骤表

Key changes (关键改动)

Provide a technically detailed description of the key changes made.

  • Frontend (前端)
    RemoteSelect 组件
    data Scope 支持 Current form(当前表单) ,Current Iteration (当前迭代,对多关系的场景下)变量
  • Backend (后端)

Test plan (测试计划)

Suggestions (测试建议)

目前是关系字段 field mode为select 时支持 数据范围联动,record picker 得后续进一步支持

Underlying risk (潜在风险)

Identify any potential risks or issues that may arise from the new feature or modification.

Showcase (结果展示)

场景一:
班级关系字段数据范围配置如下
image
学生关系字段数据范围配置如下
image
效果如下
20230614211822
场景二:
target 步骤关系字段数据范围配置如下
image
效果如下:
20230614212728

@katherinehhh
Copy link
Contributor Author

Link T-27

@height
Copy link

height bot commented Jun 14, 2023

This pull request has been linked to 1 task:

💡Tip: Add "Close T-27" to the pull request title or description, to a commit message, or in a comment to mark this task as "Done" when the pull request is merged.

@katherinehhh katherinehhh changed the title Feat/association data scope feat/association data scope Jun 14, 2023
@chenos chenos changed the title feat/association data scope feat: data scope support variables for association fields Jun 22, 2023
@chenos chenos merged commit cb52b80 into main Jun 22, 2023
3 of 4 checks passed
@chenos chenos deleted the feat/association-data-scope branch June 22, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants