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
f8d3d6df
Commit
f8d3d6df
authored
Feb 17, 2025
by
彭俊龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 流程节点时限设置增加分钟单位
parent
62586781
Pipeline
#95615
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
AddLimit.jsx
...ents/flowChartComponents/nodeModalComponents/AddLimit.jsx
+7
-2
No files found.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/AddLimit.jsx
View file @
f8d3d6df
...
@@ -171,9 +171,13 @@ const AddModal = props => {
...
@@ -171,9 +171,13 @@ const AddModal = props => {
style=
{
{
marginRight
:
'18px'
,
width
:
'100%'
}
}
style=
{
{
marginRight
:
'18px'
,
width
:
'100%'
}
}
rules=
{
[
rules=
{
[
{
required
:
true
,
message
:
'请选填写时限'
},
{
required
:
true
,
message
:
'请选填写时限'
},
//
{
// validator: (_, value) =>
// value < 0 ? Promise.reject(new Error('默认时限需要大于零')) : Promise.resolve(),
//
},
{
{
validator
:
(
_
,
value
)
=>
pattern
:
/^
[
1-9
]\d
*$/
,
value
<
0
?
Promise
.
reject
(
new
Error
(
'默认时限需要大于零'
))
:
Promise
.
resolve
()
,
message
:
'默认时限需要为正整数'
,
},
},
]
}
]
}
>
>
...
@@ -188,6 +192,7 @@ const AddModal = props => {
...
@@ -188,6 +192,7 @@ const AddModal = props => {
<
Option
value=
"小时"
>
小时
</
Option
>
<
Option
value=
"小时"
>
小时
</
Option
>
<
Option
value=
"自然日"
>
自然日
</
Option
>
<
Option
value=
"自然日"
>
自然日
</
Option
>
<
Option
value=
"工作日"
>
工作日
</
Option
>
<
Option
value=
"工作日"
>
工作日
</
Option
>
<
Option
value=
"分钟"
>
分钟
</
Option
>
</
Select
>
</
Select
>
</
Form
.
Item
>
</
Form
.
Item
>
</
div
>
</
div
>
...
...
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