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: 显示逻辑稳定版 #147

Closed
wants to merge 1 commit into from
Closed

Conversation

skique
Copy link
Collaborator

@skique skique commented May 21, 2024

应用规则引擎设计可以进一步增强显示逻辑的灵活性和可扩展性。以下是具体实现过程:

  1. 将显示逻辑规则转换为规则引擎规则: 将显示逻辑规则转换为规则引擎可识别的规则格式。例如,将显示逻辑规则中的条件和动作转换为规则引擎中的条件和动作,并定义规则的触发条件。
  2. 定义规则引擎数据模型: 首先,需要定义规则引擎的数据模型,包括规则(rule)、条件(condition)和动作(action)等元素的结构。规则包含条件和动作,条件用于判断是否执行动作。
  3. 实现规则编辑界面: 开发规则编辑界面,允许用户动态配置显示逻辑规则。界面应提供规则的条件配置、动作配置和规则管理等功能。
  4. 配置更新规则: 允许用户实时更新规则引擎中的规则配置,确保规则的灵活性和及时性。
  5. 触发规则执行: 当用户操作问卷时,根据用户的选择触发规则引擎执行规则。规则引擎根据当前条件判断是否执行对应的动作,例如显示或隐藏问题、跳转到指定页面等。

Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@7b0c1c4). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #147   +/-   ##
==========================================
  Coverage           ?   83.07%           
==========================================
  Files              ?       87           
  Lines              ?     1684           
  Branches           ?      193           
==========================================
  Hits               ?     1399           
  Misses             ?      279           
  Partials           ?        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skique skique force-pushed the feature/logicV2 branch 2 times, most recently from a43485c to 0982b1a Compare May 21, 2024 11:17
@skique skique force-pushed the feature/logicV2 branch from 0982b1a to 5e95869 Compare May 21, 2024 11:23
@skique skique closed this May 21, 2024
@skique skique deleted the feature/logicV2 branch May 21, 2024 11:31
@skique skique restored the feature/logicV2 branch May 21, 2024 11:31
@skique skique deleted the feature/logicV2 branch May 21, 2024 11:32
@skique skique restored the feature/logicV2 branch May 21, 2024 11:33
@skique skique deleted the feature/logicV2 branch May 21, 2024 11:34
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.

1 participant