Commit f8d3d6df authored by 彭俊龙's avatar 彭俊龙

feat: 流程节点时限设置增加分钟单位

parent 62586781
Pipeline #95615 failed with stages
......@@ -171,9 +171,13 @@ const AddModal = props => {
style={{ marginRight: '18px', width: '100%' }}
rules={[
{ required: true, message: '请选填写时限' },
// {
// validator: (_, value) =>
// value < 0 ? Promise.reject(new Error('默认时限需要大于零')) : Promise.resolve(),
// },
{
validator: (_, value) =>
value < 0 ? Promise.reject(new Error('默认时限需要大于零')) : Promise.resolve(),
pattern: /^[1-9]\d*$/,
message: '默认时限需要为正整数',
},
]}
>
......@@ -188,6 +192,7 @@ const AddModal = props => {
<Option value="小时">小时</Option>
<Option value="自然日">自然日</Option>
<Option value="工作日">工作日</Option>
<Option value="分钟">分钟</Option>
</Select>
</Form.Item>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment