|
@@ -4,13 +4,14 @@
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
import React, { Component } from 'react'
|
|
import React, { Component } from 'react'
|
|
|
|
|
+import { withRouter } from 'react-router-dom'
|
|
|
import './notice-matter.less'
|
|
import './notice-matter.less'
|
|
|
import { Steps, Divider } from 'antd'
|
|
import { Steps, Divider } from 'antd'
|
|
|
import { isObjEmpty } from '../../../utils/common/common.util'
|
|
import { isObjEmpty } from '../../../utils/common/common.util'
|
|
|
|
|
|
|
|
const { Step } = Steps
|
|
const { Step } = Steps
|
|
|
|
|
|
|
|
-export default class NoticeMatter extends Component {
|
|
|
|
|
|
|
+class NoticeMatter extends Component {
|
|
|
|
|
|
|
|
constructor () {
|
|
constructor () {
|
|
|
super()
|
|
super()
|
|
@@ -31,9 +32,11 @@ export default class NoticeMatter extends Component {
|
|
|
let MeetingList = []
|
|
let MeetingList = []
|
|
|
if (!isObjEmpty(noticeMatterData)) {
|
|
if (!isObjEmpty(noticeMatterData)) {
|
|
|
noticeMatterData.forEach((item, index) => {
|
|
noticeMatterData.forEach((item, index) => {
|
|
|
|
|
+ console.log(item)
|
|
|
MeetingList.push(
|
|
MeetingList.push(
|
|
|
- <Step className="step-icon" key={index} status="finish" title={item.TIME}
|
|
|
|
|
- description={item.MEETINGNAME + '来自(' + item.MEETINGFROM + ')'} onClick={this.onCancelClick}/>,
|
|
|
|
|
|
|
+ <Step className={item.CALLER == '' ? '' : 'step-icon'} key={index} status="finish" title={item.TIME}
|
|
|
|
|
+ description={item.MEETINGNAME + '来自(' + item.MEETINGFROM + ')'}
|
|
|
|
|
+ onClick={this.onJumpDetail.bind(this, item)}/>,
|
|
|
)
|
|
)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -47,8 +50,12 @@ export default class NoticeMatter extends Component {
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- onCancelClick = () => {
|
|
|
|
|
- return true
|
|
|
|
|
|
|
+ onJumpDetail = (item) => {
|
|
|
|
|
+ let { ID, CALLER } = item
|
|
|
|
|
+ this.props.history.push(
|
|
|
|
|
+ '/serviceDetail/' + ID + '/' + CALLER)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+export default withRouter(NoticeMatter)
|