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
4f4e6a67
Commit
4f4e6a67
authored
Nov 05, 2024
by
田翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 增加动态承办人配置
parent
2f35fec8
Pipeline
#93649
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
ConfigCopyPerson.jsx
...wChartComponents/nodeModalComponents/ConfigCopyPerson.jsx
+23
-0
No files found.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/ConfigCopyPerson.jsx
View file @
4f4e6a67
...
...
@@ -15,6 +15,7 @@ const ConfigCopyPerson = (props, ref) => {
const
{
nodeChage
,
editMsg
,
flowID
,
flowData
}
=
props
;
const
[
showPersonSelect
,
setShowPersonSelect
]
=
useState
(
false
);
// 是否显示人员选择器
const
TurnOnCc
=
useRef
(
0
);
const
IsDynamicDefaultUser
=
useRef
(
0
)
const
[
fieldList
,
setFieldList
]
=
useState
([]);
// 当规则字段
const
[
ruleIndex
,
setRuleIndex
]
=
useState
();
// 编辑当前规则索引
const
allFieldList
=
useRef
([]);
// 所有字段列表
...
...
@@ -34,6 +35,7 @@ const ConfigCopyPerson = (props, ref) => {
allFieldList
.
current
=
[];
talbeList
.
current
=
[];
TurnOnCc
.
current
=
0
;
IsDynamicDefaultUser
.
current
=
editMsg
.
IsDynamicDefaultUser
||
0
TurnOnCc
.
current
=
editMsg
.
TurnOnCc
;
RuleList
.
current
=
editMsg
.
CCRuleList
||
[];
// 获取表数据
...
...
@@ -72,6 +74,16 @@ const ConfigCopyPerson = (props, ref) => {
setFlag
(
flag
+
1
);
};
const
onChangeDefaultUser
=
e
=>
{
if
(
e
)
{
IsDynamicDefaultUser
.
current
=
1
;
}
else
{
IsDynamicDefaultUser
.
current
=
0
;
}
nodeChage
(
'IsDynamicDefaultUser'
,
IsDynamicDefaultUser
.
current
);
setFlag
(
flag
+
1
);
};
// 规则回填
const
saveRule
=
e
=>
{
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
RuleList
.
current
));
...
...
@@ -246,6 +258,17 @@ const ConfigCopyPerson = (props, ref) => {
当开启”允许抄送“后,本节点具备抄送功能: 配置不同的抄送规则,可抄送给指定人员;
当不配置规则的时候,则默认本届点任何办理操作都会抄送给指定人员。
</
div
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'right'
,
marginBottom
:
'12px'
}
}
>
是否动态承办人
<
Switch
style=
{
{
marginLeft
:
'5px'
}
}
checked=
{
IsDynamicDefaultUser
.
current
!==
0
}
onChange=
{
onChangeDefaultUser
}
/>
</
div
>
<
div
className=
{
styles
.
titleBox
}
>
说明:开启动态承办人后当前角色里所有人都是承办人
</
div
>
<
div
className=
{
styles
.
btnAddRule
}
onClick=
{
addRule
}
...
...
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