From 3f7fbc0cde69a0d7f3b52c896213828a6430f7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sun, 15 Mar 2020 16:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=B6=E9=97=B4=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/signin/model/Createsignmodel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/signin/model/Createsignmodel.js b/public/react/src/modules/courses/signin/model/Createsignmodel.js index 9611a6119..86662e77b 100644 --- a/public/react/src/modules/courses/signin/model/Createsignmodel.js +++ b/public/react/src/modules/courses/signin/model/Createsignmodel.js @@ -40,14 +40,14 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })( handleChangestart_time = (date) => { - console.log(moment(date).format('HH:mm')) + this.setState({ start_time: date }); }; handleChangeend_time=(date)=>{ - console.log(moment(date).format('HH:mm')) + this.setState({ end_time: date }); @@ -274,6 +274,7 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })( timeIntervals={1} timeCaption="Time" timeFormat="HH:mm" + dateFormat="hh:mm" getPopupContainer={trigger => trigger.parentNode} /> )} @@ -299,6 +300,7 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })( maxTime={this.state.dateString===moment().format('YYYY-MM-DD')||this.state.dateString===null?moment().endOf('day').toDate():false} timeCaption="Time" timeFormat="HH:mm" + dateFormat="hh:mm" getPopupContainer={trigger => trigger.parentNode} /> )}