diff --git a/public/react/src/modules/courses/coursesPublic/ShixunModal.js b/public/react/src/modules/courses/coursesPublic/ShixunModal.js index 4046a58a4..f0caef87b 100644 --- a/public/react/src/modules/courses/coursesPublic/ShixunModal.js +++ b/public/react/src/modules/courses/coursesPublic/ShixunModal.js @@ -378,7 +378,7 @@ class ShixunModal extends Component{ - {this.state.shixunmodelchke===true?{this.state.chekicmessage}:""} + {this.state.chekicmessage}
取消 确定 diff --git a/public/react/src/modules/home/shixunsHome.js b/public/react/src/modules/home/shixunsHome.js index 9093ec22d..780691e6c 100644 --- a/public/react/src/modules/home/shixunsHome.js +++ b/public/react/src/modules/home/shixunsHome.js @@ -232,7 +232,7 @@ class ShixunsHome extends Component {

- {item.stages_count} + {item.stages_count} diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js index abeb18c9f..72bbbe3d0 100644 --- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js +++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js @@ -161,7 +161,20 @@ function updatamakedown(id){ }, 200) } - +function range(start, end) { + const result = []; + for (let i = start; i < end; i++) { + result.push(i); + } + return result; +} +function disabledDateTime() { + return { + // disabledHours: () => range(0, 24).splice(4, 20), + disabledMinutes: () => range(1, 30).concat(range(31, 60)), + // disabledSeconds: () => [0, 60], + }; +} export default class TPMsettings extends Component { constructor(props) { super(props) @@ -1307,7 +1320,7 @@ export default class TPMsettings extends Component {

- *语言:   @@ -953,6 +967,7 @@ class Newshixuns extends Component { @@ -993,14 +1008,11 @@ class Newshixuns extends Component {
  • - - - this.sendhideModaly()} >取消 - + className="task-btn task-btn-orange">确定
  • @@ -1203,10 +1215,12 @@ class Newshixuns extends Component { showToday={false} showTime locale={locale} + showTime={{ format: 'HH:mm' }} style={{"width": "184px"}} - format="YYYY-MM-DD HH:mm:ss" + format="YYYY-MM-DD HH:mm" placeholder="请选择开启时间" onChange={this.onChangeTimePicker} + disabledTime={disabledDateTime} />