|
@@ -4,7 +4,7 @@
|
|
|
*/
|
|
*/
|
|
|
import React, { Component } from 'react'
|
|
import React, { Component } from 'react'
|
|
|
import { connect } from 'react-redux'
|
|
import { connect } from 'react-redux'
|
|
|
-import UasIcon from '../../../configs/iconfont.conig'
|
|
|
|
|
|
|
+import { PullToRefresh, ListView, Toast } from 'antd-mobile'
|
|
|
import CommonCalendar from '../../../components/common/calendar/CommonCalendar'
|
|
import CommonCalendar from '../../../components/common/calendar/CommonCalendar'
|
|
|
import PunchClock from '../../../components/private/punchclock/PunchClock'
|
|
import PunchClock from '../../../components/private/punchclock/PunchClock'
|
|
|
import NoticeMatter from '../../../components/private/noticematter/NoticeMatter'
|
|
import NoticeMatter from '../../../components/private/noticematter/NoticeMatter'
|
|
@@ -48,6 +48,11 @@ class SchedulePage extends Component {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ componentWillMount () {
|
|
|
|
|
+ //发起请求
|
|
|
|
|
+ // Toast.loading('加载中...', 0)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
componentDidMount () {
|
|
componentDidMount () {
|
|
|
document.title = '我的日程'
|
|
document.title = '我的日程'
|
|
|
}
|
|
}
|
|
@@ -76,7 +81,7 @@ class SchedulePage extends Component {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className='schedule-root'>
|
|
<div className='schedule-root'>
|
|
|
- <CommonCalendar clickDate={this.clickDate} calendarData={calendarData}/>
|
|
|
|
|
|
|
+ <CommonCalendar clickBlankPanel={this.clickBlankPanel} clickDate={this.clickDate} calendarData={calendarData}/>
|
|
|
<PunchClock punchClockData={punchClockData}/>
|
|
<PunchClock punchClockData={punchClockData}/>
|
|
|
<NoticeMatter noticeMatterData={noticeMatterData}/>
|
|
<NoticeMatter noticeMatterData={noticeMatterData}/>
|
|
|
</div>
|
|
</div>
|
|
@@ -84,6 +89,10 @@ class SchedulePage extends Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
clickDate = (date) => {
|
|
clickDate = (date) => {
|
|
|
|
|
+ let nowDate = new Date().format('yyyy-MM-dd')
|
|
|
|
|
+ if (nowDate == date) {
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
let testData1 = {
|
|
let testData1 = {
|
|
|
companyClass: '测试班次',
|
|
companyClass: '测试班次',
|
|
|
clockRecord: {
|
|
clockRecord: {
|
|
@@ -122,6 +131,10 @@ class SchedulePage extends Component {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ clickBlankPanel = (date) => {
|
|
|
|
|
+ //发送请求重新渲染日历上的点数
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let mapStateToProps = (state) => ({})
|
|
let mapStateToProps = (state) => ({})
|