Skip to content

Commit

Permalink
Merge pull request #14 from actiontech/fix/order-steps-executing
Browse files Browse the repository at this point in the history
[fix]: Order steps status error
  • Loading branch information
Rain-1214 authored Oct 20, 2023
2 parents 287f7a1 + 5e7c949 commit f0cb67f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ const OrderSteps: React.FC<OrderStepsProps> = ({
return number;
}

// 上线成功 或 上线失败
// 上线成功 上线失败 或 正在上线
if (
orderStatus === WorkflowRecordResV2StatusEnum.finished ||
orderStatus === WorkflowRecordResV2StatusEnum.exec_failed
orderStatus === WorkflowRecordResV2StatusEnum.exec_failed ||
orderStatus === WorkflowRecordResV2StatusEnum.executing
) {
return workflowSteps.length + 1;
}
Expand Down
5 changes: 4 additions & 1 deletion packages/sqle/src/page/Order/Detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ const OrderDetail: React.FC = () => {
<OrderDetailPageHeaderExtra
projectName={projectName}
orderInfo={orderInfo}
refreshOrder={refreshOrder}
refreshOrder={() => {
refreshOrder();
refreshOverviewAction();
}}
pass={pass}
reject={reject}
canRejectOrder={canRejectOrder}
Expand Down

0 comments on commit f0cb67f

Please sign in to comment.