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
be3a5c2f
Commit
be3a5c2f
authored
Sep 22, 2022
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 流程时限配置,结束节点不让配置多个
parent
e845b675
Pipeline
#60825
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
Timelimit.jsx
...bsmanager/workOrder/workFlow/flowComponents/Timelimit.jsx
+4
-0
AddModal.jsx
.../workFlow/flowComponents/timelimitComponents/AddModal.jsx
+6
-4
No files found.
src/pages/bsmanager/workOrder/workFlow/flowComponents/Timelimit.jsx
View file @
be3a5c2f
...
...
@@ -22,6 +22,7 @@ const Timelimit = props => {
const
[
modalType
,
setModalType
]
=
useState
(
''
);
// 模态框是编辑还是修改的状态
const
[
editMsg
,
setEditMsg
]
=
useState
({});
// 保存编辑的信息
const
[
title
,
setTitle
]
=
useState
(
''
);
const
[
finishNodes
,
setFinishNodes
]
=
useState
([]);
const
[
flowId
,
setFlowId
]
=
useState
(
''
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
useEffect
(()
=>
{
...
...
@@ -39,6 +40,8 @@ const Timelimit = props => {
setLoading
(
false
);
if
(
res
.
code
===
0
)
{
setTableData
(
res
.
data
);
setFinishNodes
(
res
.
data
.
map
(
item
=>
item
.
EndNode
));
}
});
};
...
...
@@ -195,6 +198,7 @@ const Timelimit = props => {
title=
{
title
}
flowId=
{
flowId
}
modalType=
{
modalType
}
finishNodes=
{
finishNodes
}
handleCancel=
{
()
=>
setViewModal
(
false
)
}
onSubumit=
{
()
=>
{
setViewModal
(
false
);
...
...
src/pages/bsmanager/workOrder/workFlow/flowComponents/timelimitComponents/AddModal.jsx
View file @
be3a5c2f
...
...
@@ -9,14 +9,13 @@ import { Form, Modal, Input, notification, Select } from 'antd';
const
{
Option
}
=
Select
;
const
AddModal
=
props
=>
{
const
{
onSubumit
,
handleCancel
,
visible
,
msg
,
flowId
,
modalType
,
title
}
=
props
;
const
{
onSubumit
,
handleCancel
,
visible
,
msg
,
flowId
,
modalType
,
title
,
finishNodes
}
=
props
;
const
[
flowNodes
,
setFlowNodes
]
=
useState
([]);
const
[
timeLimitFlowNodes
,
setTimeLimitFlowNodes
]
=
useState
([]);
const
[
timeLimitFlowNodesEnd
,
setTimeLimitFlowNodesEnd
]
=
useState
([]);
const
[
startNodeIndex
,
setStartNodeIndex
]
=
useState
(
null
);
const
[
endNodeIndex
,
setEndNodeIndex
]
=
useState
(
null
);
const
[
keepTableName
,
setKeepTableName
]
=
useState
(
''
);
const
[
keepData
,
setKeepData
]
=
useState
(
''
);
const
[
form
]
=
Form
.
useForm
();
useEffect
(()
=>
{
form
.
resetFields
();
...
...
@@ -215,7 +214,10 @@ const AddModal = props => {
<
Option
value=
{
item
.
Name
}
key=
{
item
.
ID
}
disabled=
{
startNodeIndex
!==
null
&&
index
<=
startNodeIndex
}
disabled=
{
finishNodes
.
some
(
ele
=>
item
.
Name
===
ele
)
||
(
startNodeIndex
!==
null
&&
index
<=
startNodeIndex
)
}
>
{
item
.
Name
}
</
Option
>
...
...
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