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

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

parent 62586781
Pipeline #95615 failed with stages
...@@ -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>
......
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