Skip to content

Commit

Permalink
bugfix: edit workflow's title_template and content_template
Browse files Browse the repository at this point in the history
  • Loading branch information
blackholll committed Aug 9, 2020
1 parent c0c0366 commit 45d434b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/workflow/workflow_base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ def get_workflow_list(cls, name: str, page: int, per_page: int, workflow_id_list
view_permission_check=workflow_result_object.view_permission_check,
limit_expression=workflow_result_object.limit_expression,
display_form_str=workflow_result_object.display_form_str,
creator=workflow_result_object.creator, gmt_created=str(workflow_result_object.gmt_created)[:19]))
creator=workflow_result_object.creator, gmt_created=str(workflow_result_object.gmt_created)[:19],
title_template=workflow_result_object.title_template,
content_template=workflow_result_object.content_template
)
)
# 获取工作流管理员信息
workflow_admin_queryset = WorkflowAdmin.objects.filter(
workflow_id__in=workflow_result_id_list, is_deleted=0).all()
Expand Down
3 changes: 3 additions & 0 deletions static/dist/js/workflow/workflow_manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ function makeUserOption(data) {
$("#limitExpression").val(data.limit_expression);
$("#displayFormStr").val(data.display_form_str);
$("#workflowId").val(data.id);
$("#titleTemplate").val(data.title_template);
$("#contentTemplate").val(data.content_template);

$('#workflowModal').modal('show');
}

Expand Down

0 comments on commit 45d434b

Please sign in to comment.