Skip to content

feat: 数据导出审批流程模板 - 前端部分#809

Open
actiontech-bot wants to merge 3200 commits intomainfrom
dms-ui/feat-data-export-workflow-template
Open

feat: 数据导出审批流程模板 - 前端部分#809
actiontech-bot wants to merge 3200 commits intomainfrom
dms-ui/feat-data-export-workflow-template

Conversation

@actiontech-bot
Copy link
Copy Markdown
Member

变更说明

数据导出审批流程模板前端功能:

  • 新增 WorkflowTemplateList 页面(统一管理上线/导出模板)
  • 新增 DataExportTemplateForm 编辑组件
  • 新增 ApprovalProcessPreview 审批流程预览组件
  • API 类型扩展、i18n、单元测试

关联 PR

  • sqle CE/EE 部分
  • dms CE/EE 部分

zzyangh and others added 30 commits September 16, 2025 15:14
[fix](SqlExecWorkflow): Show execution results on file mode
…orkfow-odc

[feat]: support odc to create export work orders and fix dms-kit bug
[feature]: Add 404 page and error boundary
[fix](SqlExecWorkflow): Process optimization after workflow execute failed
[refactor](useRecentlySelectedZone): Remove the dependency on Redux
[fix](Login): Navigate to home after logging success
[chore]: Export useRecentlySelectedZone in index
[chore]: Replace the ActiontechTable component
LZS911 and others added 29 commits March 18, 2026 10:09
[test]: add test for ai banner and governance
[feature](CompanyNotice): Add time-based notice display and include_latest_outside_period param
fix(dms-kit): allow custom getPopupContainer in BasicRangePicker
[feature]: SQL workbench maintenance windows in sql_query_config
Made-with: Cursor
forwardport: cherry-pick EE PR #636 to main [AI-resolved]
forwardport: cherry-pick EE PR #635 to main [AI-resolved]
[chore]: always show AI Performance Engine button and use notification context for permission prompts
Task 4.1 - Frontend type definitions:
- Extend WorkFlowStepTemplateReqV1TypeEnum with export_review and export_execute
- Add WorkflowTemplateTypeEnum (workflow | data_export)
- Add workflow_type field to WorkflowTemplateDetailResV1 and UpdateWorkflowTemplateReqV1
- Add IGetWorkflowTemplatesResV1 and IWorkflowTemplatesListData response types
- Add getWorkflowTemplatesV1 API method for GET /v1/projects/{project_name}/workflow_templates
- Add workflow_type query parameter support to getWorkflowTemplateV1

Task 5.1 - WorkflowTemplateList page:
- New WorkflowTemplateList component with Ant Design Table
- Columns: template name, type (blue Tag "上线工单" / green Tag "数据导出"), step count, step description, update time, edit action
- Edit button (EE only) navigates to edit page with workflow_type query parameter
- Replace WorkflowTemplateDetail with WorkflowTemplateList as route index page
- Add mock data and API mock for template list
- Add i18n translations for list page (zh-CN and en-US)
…diting

Add workflow_type-based routing in UpdateWorkflowTemplate to render
DataExportTemplateForm when workflow_type=data_export, and the existing
WorkflowTemplateForm otherwise. DataExportTemplateForm differs from the
existing form by: not showing AllowSubmitWhenLessAuditLevel, using
export_review/export_execute step types, making the execute step optional,
and including workflow_type: 'data_export' in the submit request.

The existing WorkflowTemplateForm logic is completely preserved with no
behavioral changes.
Add ApprovalProcessPreview component to data export workflow creation page
(SubmitExportWorkflow) that displays a read-only preview of the project's
data export approval process steps, including step types and assignee modes,
with a guidance alert linking to approval process configuration.

Add comprehensive unit tests for:
- ApprovalProcessPreview: API call params, step rendering, assignee modes,
  guidance text display, empty projectName handling
- WorkflowTemplateList: template list display, type tags (blue/green),
  step count, edit links with workflow_type param, step descriptions
- DataExportTemplateForm: no AllowSubmitWhenLessAuditLevel field, API
  params with workflow_type=data_export, submit data format, export_execute
  step handling, data export specific labels

Update existing SubmitWorkflow and Create page tests to mock the
workflowTemplate API needed by the new ApprovalProcessPreview component.
…te list

The generateStepDescription function in WorkflowTemplateList was mapping
export_review and export_execute to the same i18n keys as sql_review and
sql_execute, causing data export templates to display "审核节点" and
"执行上线" instead of "导出审批" and "导出执行确认" in the step
description column. Fix by mapping to dataExport-specific i18n keys.
@LordofAvernus LordofAvernus force-pushed the dms-ui/feat-data-export-workflow-template branch from 1219a76 to f8fab15 Compare April 9, 2026 09:07
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.

6 participants