/** * Created by FANGlh on 2018/11/26 12:41. * Desc: */ import React,{Component} from 'react'; import './Approvel.css'; import icon_out from '../../../style/imgs/out_img.png'; import icon_res from '../../../style/imgs/res_img.png'; import icon_trip from '../../../style/imgs/trip_img.png'; import icon_leave from '../../../style/imgs/leave_img.png'; import {Link} from 'react-router-dom'; import {getIntValue, getStrValue, isObjEmpty} from "../../../utils/common"; export default class ApprovelItem extends Component{ constructor(props){ super(props); this.state={ itemdata:this.props.itemdata, isMyApply:this.props.isMyApply, approveId:this.props.itemdata.approveId } } componentDidMount(){ this.setState({ itemdata:this.props.itemdata, isMyApply:this.props.isMyApply, approveId:this.props.itemdata.approveId },function () { console.log('itemdata',this.state.itemdata) }) } render(){ const {itemdata,isMyApply,approveId} = this.state return(