|
@@ -88,22 +88,25 @@ const FlowDrawer = () => {
|
|
|
approvalWay: state.approvalWay,
|
|
|
accounts: state.accounts
|
|
|
}
|
|
|
- const { code = -1 } = await saveApprovalParticipant({
|
|
|
- ID: dataID,
|
|
|
- segmentID: nodeID,
|
|
|
- participantInfo
|
|
|
- })
|
|
|
- if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- message.success('保存成功')
|
|
|
- setTimeout(() => {
|
|
|
- dispatch({
|
|
|
- type: Actions.SET_FLOW_NODE,
|
|
|
- payload
|
|
|
- })
|
|
|
- }, 80)
|
|
|
- handleCancel()
|
|
|
+ try {
|
|
|
+ const { code = -1 } = await saveApprovalParticipant({
|
|
|
+ ID: dataID,
|
|
|
+ segmentID: nodeID,
|
|
|
+ participantInfo
|
|
|
+ })
|
|
|
+ if (code === consts.RET_CODE.SUCCESS) {
|
|
|
+ message.success('保存成功')
|
|
|
+ setTimeout(() => {
|
|
|
+ dispatch({
|
|
|
+ type: Actions.SET_FLOW_NODE,
|
|
|
+ payload
|
|
|
+ })
|
|
|
+ }, 80)
|
|
|
+ handleCancel()
|
|
|
+ }
|
|
|
+ } finally {
|
|
|
+ setState({ ...state, loading: false })
|
|
|
}
|
|
|
- setState({ ...state, loading: false })
|
|
|
}
|
|
|
|
|
|
// 添加用户-参与者卡片
|