现场人员时间精确到小时

This commit is contained in:
zhangyx
2022-11-22 11:07:17 +08:00
parent 8c15ae7300
commit 056f0f91d6

View File

@ -314,9 +314,9 @@ const AuthorizeModal: React.FC<AuthorizeModalProps> = (props) => {
rules={rule('权限开始时间')}
>
<DatePicker
format="yyyy-MM-DD HH:mm"
format="yyyy-MM-DD HH"
disabledDate={disabledDate}
showTime={{ defaultValue: moment('00', 'ss') }}
showTime={{ defaultValue: moment('00:00', 'mm:ss') }}
showNow={false}
style={{ width: "90%" }}
/>
@ -327,9 +327,9 @@ const AuthorizeModal: React.FC<AuthorizeModalProps> = (props) => {
rules={rule('权限结束时间')}
>
<DatePicker
format="yyyy-MM-DD HH:mm"
format="yyyy-MM-DD HH"
disabledDate={disabledDate}
showTime={{ defaultValue: moment('00', 'ss') }}
showTime={{ defaultValue: moment('59:59', 'mm:ss') }}
showNow={false}
style={{ width: "90%" }}
/>