|
@@ -1,10 +1,9 @@
|
|
|
-import React, { useMemo, useRef, useState } from 'react';
|
|
|
+import React, { useMemo, useState } from 'react';
|
|
|
|
|
|
import { queryUserListByRoleID } from '@/services/boom';
|
|
|
import { connect } from 'dva';
|
|
|
import { PlusOutlined } from '@ant-design/icons';
|
|
|
import { Popover, Radio, RadioChangeEvent, Spin, Steps } from 'antd';
|
|
|
-import list from '../List/models/list';
|
|
|
|
|
|
const { Step } = Steps;
|
|
|
|
|
@@ -65,11 +64,15 @@ const ApprovalProcess = props => {
|
|
|
cur.name = name;
|
|
|
onChange?.({ ...approvalProcess });
|
|
|
};
|
|
|
+ const getSelectValue = list => {
|
|
|
+ let curList = list[curNodeIdx];
|
|
|
+ return curList ? String(curList[0].nowValue) : null;
|
|
|
+ };
|
|
|
|
|
|
const renderContent = list => {
|
|
|
return (
|
|
|
<Spin spinning={loading}>
|
|
|
- <Radio.Group onChange={e => selectedUserId(e, list)}>
|
|
|
+ <Radio.Group value={getSelectValue(list)} onChange={e => selectedUserId(e, list)}>
|
|
|
{selectUserList.map(item => (
|
|
|
// <Button onClick={() => selectedUserId(item.user_id)}>{item.c_name}</Button>
|
|
|
<Radio.Button value={item.user_id}>{item.c_name}</Radio.Button>
|