|
@@ -17,6 +17,7 @@ const FlowDrawer = () => {
|
|
|
const { flowState, dispatch } = useContext(FlowContext)
|
|
|
const { modalConfig: { nodeID = null, visible = false } = {}, dataID } = flowState
|
|
|
const [state, setState] = useState({
|
|
|
+ loading: false,
|
|
|
institutionList: [],
|
|
|
approvalWay: ApprovalWay.ACCOUNT,
|
|
|
accounts: [],
|
|
@@ -62,6 +63,7 @@ const FlowDrawer = () => {
|
|
|
}
|
|
|
|
|
|
const handleOnOk = async () => {
|
|
|
+ setState({ ...state, loading: true })
|
|
|
const { approvalWay, accounts } = state
|
|
|
if (!accounts.every(item => item.institutionID && item.ID)) {
|
|
|
setState({
|
|
@@ -101,6 +103,7 @@ const FlowDrawer = () => {
|
|
|
}, 80)
|
|
|
handleCancel()
|
|
|
}
|
|
|
+ setState({ ...state, loading: false })
|
|
|
}
|
|
|
|
|
|
// 添加用户-参与者卡片
|
|
@@ -185,6 +188,7 @@ const FlowDrawer = () => {
|
|
|
<Button
|
|
|
className="ml-8px"
|
|
|
type="primary"
|
|
|
+ loading={state.loading}
|
|
|
disabled={!state.accounts.length}
|
|
|
onClick={handleOnOk}>
|
|
|
确定
|