Skip to content

Commit

Permalink
[fix]: Order steps status error
Browse files Browse the repository at this point in the history
  • Loading branch information
LZS911 committed Oct 20, 2023
1 parent 287f7a1 commit 5e7c949
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 5e7c949

Please sign in to comment.