Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
931bcea0
Commit
931bcea0
authored
Jul 28, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '1.流程节点权限人员角色面板回显bug修复2.运维中流程节点配置了多个角色,删除的过程中,页面会卡死崩溃修复'
parent
d4dd8495
Pipeline
#76845
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
ConfgUndertake.jsx
...lowChartComponents/nodeModalComponents/ConfgUndertake.jsx
+4
-1
RoalChoose.jsx
...ts/flowChartComponents/nodeModalComponents/RoalChoose.jsx
+18
-8
No files found.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/ConfgUndertake.jsx
View file @
931bcea0
import
React
,
{
useState
,
useEffect
,
useRef
,
forwardRef
,
useImperativeHandle
}
from
'react'
;
import
{
Space
,
Button
,
Divider
,
Table
,
Tooltip
,
message
}
from
'antd'
;
import
{
DeleteOutlined
,
EditTwoTone
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
debounce
from
'lodash/debounce'
;
import
RoalChoose
from
'./RoalChoose'
;
import
Undertaker
from
'./Undertaker'
;
import
styles
from
'./ConfgUndertake.less'
;
...
...
@@ -12,6 +13,7 @@ const ConfgUndertake = (props, ref) => {
const
[
chooseUser
,
setChooseUser
]
=
useState
();
// 当前编辑角色或者机构的默认承办人
const
[
showUnderTaker
,
setShowUnderTaker
]
=
useState
(
false
);
// 是否显示选择默认承办人弹窗
const
[
roleList
,
setRoleList
]
=
useState
([]);
const
delayedNodeChange
=
useRef
(
debounce
(
list
=>
nodeChage
(
'roleList'
,
list
),
500
)).
current
;
useImperativeHandle
(
ref
,
()
=>
({
getParmar
,
}));
...
...
@@ -31,7 +33,8 @@ const ConfgUndertake = (props, ref) => {
list
.
splice
(
index
,
1
);
setRoleList
(
list
);
nodeChage
(
'roleList'
,
list
);
delayedNodeChange
(
list
);
// nodeChage('roleList', list);
};
// 添加角色或机构
const
addUser
=
selectList
=>
{
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/RoalChoose.jsx
View file @
931bcea0
...
...
@@ -105,14 +105,24 @@ const RoalChoose = props => {
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
));
list
.
forEach
(
item
=>
{
if
(
item
.
child
.
length
)
{
item
.
child
[
0
].
roleList
.
forEach
(
v
=>
{
v
.
roleID
=
Number
(
v
.
roleID
);
if
(
selected
.
has
(
v
.
roleID
))
{
v
.
isChecked
=
true
;
}
else
{
v
.
isChecked
=
false
;
}
});
// item.child[0].roleList.forEach(v => {
// v.roleID = Number(v.roleID);
// if (selected.has(v.roleID)) {
// v.isChecked = true;
// } else {
// v.isChecked = false;
// }
// });
item
.
child
.
forEach
(
v
=>
{
v
.
roleList
.
forEach
(
vv
=>
{
vv
.
roleID
=
Number
(
vv
.
roleID
);
if
(
selected
.
has
(
vv
.
roleID
))
{
vv
.
isChecked
=
true
;
}
else
{
vv
.
isChecked
=
false
;
}
});
})
}
item
.
roleList
.
forEach
(
v
=>
{
v
.
roleID
=
Number
(
v
.
roleID
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment