import React,{Component} from 'react'; class DeclarationProgress extends Component{ constructor(props) { super(props); } render() { return (
{this.props.startDate ?
启动时间: {this.props.startDate}
: null} {/*旧数据处理*/} {/* endDate 完成时间 对应已提交时间 4*/} {/* acceptDate 受理时间 对应已推荐时间 6*/} {/* publicityDate 公示时间 对应已拟公示时间 8*/} {/* licenceDate 发证时间 对应已下证时间 10*/} {/* setUpAmount 立项金额 15*/} {/*数据处理*/} {/* 拨款金额 18 appropriation*/} { this.props.timeRecordparse && Object.keys(this.props.timeRecordparse).map(v=>(
{this.props.timeRecordparse[v]['title']}: {this.props.timeRecordparse[v]['date']} { v === '18' ? 拨款金额(万元): {this.props.timeRecordparse[v]['appropriation']} : null } { v === '15' ? 立项金额(万元): {this.props.timeRecordparse[v]['setUpAmount']} : null }
)) } { this.props.list.map(v=>( !this.props.timeRecordparse[parseInt(v.id)] && v.value &&
{v.name}: {v.value}
)) }
) } } export default DeclarationProgress;