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
079d1ff5
Commit
079d1ff5
authored
Nov 04, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '开始节点移交禁用'
parent
259dd299
Pipeline
#63185
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
NodeEdit.jsx
...rkOrder/workFlow/flowNode/flowNodeComponents/NodeEdit.jsx
+9
-5
No files found.
src/pages/bsmanager/workOrder/workFlow/flowNode/flowNodeComponents/NodeEdit.jsx
View file @
079d1ff5
...
...
@@ -43,6 +43,7 @@ const NodeEdit = props => {
const
[
visibleChecked2
,
setVisibleChecked2
]
=
useState
(
true
);
const
[
visibleChecked3
,
setVisibleChecked3
]
=
useState
(
false
);
const
[
autoClose
,
setAutoClose
]
=
useState
(
false
);
const
[
transfer
,
setTransfer
]
=
useState
(
false
);
const
[
form
]
=
Form
.
useForm
();
useEffect
(()
=>
{
...
...
@@ -61,6 +62,7 @@ const NodeEdit = props => {
setVisibleChecked1
(
false
);
setVisibleChecked2
(
false
);
setVisibleChecked3
(
false
);
setTransfer
(
false
);
}
},
[
visible
]);
// 获取表单回显
...
...
@@ -80,6 +82,11 @@ const NodeEdit = props => {
}
else
{
setAutoClose
(
false
);
}
if
(
res
.
data
.
Type
==
1
)
{
setTransfer
(
true
);
}
else
{
setTransfer
(
false
);
}
let
obj
=
{
...
res
.
data
.
Extend
,
FlowName
:
res
.
data
.
FlowName
,
...
...
@@ -94,7 +101,6 @@ const NodeEdit = props => {
obj
.
NodeAliasName
=
obj
.
NodeAliasName
||
res
.
data
.
Name
;
obj
.
Transferable
=
obj
.
Transferable
==
1
;
setVisibleChecked
(
obj
.
Transferable
==
1
);
console
.
log
(
obj
.
EventsInformation
);
if
(
obj
.
EventsInformation
)
{
if
(
obj
.
EventsInformation
==
1
)
{
obj
.
EventsInformation
=
true
;
...
...
@@ -104,11 +110,9 @@ const NodeEdit = props => {
setVisibleChecked1
(
false
);
}
}
else
{
console
.
log
(
22222222
);
obj
.
EventsInformation
=
true
;
setVisibleChecked1
(
true
);
}
console
.
log
(
obj
.
IsSendMessage
);
if
(
obj
.
IsSendMessage
==
0
||
obj
.
IsSendMessage
==
1
)
{
if
(
obj
.
IsSendMessage
==
1
)
{
obj
.
IsSendMessage
=
true
;
...
...
@@ -125,8 +129,6 @@ const NodeEdit = props => {
if
(
!
obj
.
Handover
)
{
obj
.
Handover
=
'移交选择人'
;
}
console
.
log
(
obj
);
console
.
log
(
visibleChecked3
);
form
.
setFieldsValue
(
obj
);
}
else
{
setVisibleChecked
(
false
);
...
...
@@ -486,12 +488,14 @@ const NodeEdit = props => {
unCheckedChildren=
"否"
checked=
{
visibleChecked
}
onChange=
{
change
}
disabled=
{
transfer
}
/>
{
/* <Radio.Group>
<Radio value="0">否</Radio>
<Radio value="1">是</Radio>
</Radio.Group> */
}
</
Form
.
Item
>
<
Form
.
Item
label=
"显示事件信息"
name=
"EventsInformation"
>
<
Switch
checkedChildren=
"是"
...
...
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