|
@@ -10,10 +10,19 @@ import close from '../img/close.png';
|
|
|
class SlideSelect extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
+ const date = new Date();
|
|
|
this.state = {
|
|
|
show:false,
|
|
|
activeInd:false,
|
|
|
- activeName:''
|
|
|
+ activeName:'',
|
|
|
+ timeLis: {
|
|
|
+ year: date.getFullYear(),
|
|
|
+ month: date.getMonth() + 1,
|
|
|
+ day: date.getDate(),
|
|
|
+ hour: '00',
|
|
|
+ minute: '00',
|
|
|
+ second: '00'
|
|
|
+ },
|
|
|
};
|
|
|
this.toTime = this.toTime.bind(this)
|
|
|
this.handleSlide = this.handleSlide.bind(this)
|
|
@@ -61,9 +70,12 @@ class SlideSelect extends Component {
|
|
|
activeName:''
|
|
|
})
|
|
|
}
|
|
|
+ timeSure(date){
|
|
|
+ console.log(date)
|
|
|
+ }
|
|
|
render() {
|
|
|
const {getInfomation,handleConfirm,changeActivePart,handleDelClick,getItemList,date,item,idx,handleFillShow,showDetails,handleLabelSub,showFill,changeShowFill,handlePush,dateTime,currentIdx,currentData,fillActive,handleShowDate,handleChangeDate,showToast} = this.props;
|
|
|
- const {show,activeInd,activeName} = this.state;
|
|
|
+ const {show,activeInd,activeName,timeLis} = this.state;
|
|
|
let numPlus = 0,numPlus1 = 0;
|
|
|
return (
|
|
|
<li key={item.questionId} className={styles.slideLi}>
|
|
@@ -171,7 +183,7 @@ class SlideSelect extends Component {
|
|
|
</p>
|
|
|
<div style={{display:date?"block":"none",position:"relative"}}>
|
|
|
{/* 日期组件 */}
|
|
|
- <Calendar isShow={true} handleChange={handleChangeDate}></Calendar>
|
|
|
+ <Calendar timeLis={timeLis} isShow={true} timeSure={this.timeSure} needTime={true} sure={true} handleChange={handleChangeDate}></Calendar>
|
|
|
</div>
|
|
|
</div>
|
|
|
{/* 填写单内容显示 */}
|