index.jsx 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import React,{Component} from 'react';
  2. class DeclarationProgress extends Component{
  3. constructor(props) {
  4. super(props);
  5. }
  6. render() {
  7. return (
  8. <div style={{display:'flex',flexFlow:'row wrap',marginLeft: '11px',marginTop:'20px'}}>
  9. {this.props.startDate ? <div style={{marginRight:'30px',marginBottom:'15px'}}>
  10. <span style={{marginRight:'15px'}}>启动时间:</span>
  11. <span>{this.props.startDate}</span>
  12. </div> : null}
  13. {/*旧数据处理*/}
  14. {/* endDate 完成时间 对应已提交时间 4*/}
  15. {/* acceptDate 受理时间 对应已推荐时间 6*/}
  16. {/* publicityDate 公示时间 对应已拟公示时间 8*/}
  17. {/* licenceDate 发证时间 对应已下证时间 10*/}
  18. {/* setUpAmount 立项金额 15*/}
  19. {/*数据处理*/}
  20. {/* 拨款金额 18 appropriation*/}
  21. {
  22. this.props.timeRecordparse && Object.keys(this.props.timeRecordparse).map(v=>(
  23. <div style={{marginBottom:'15px'}}>
  24. <span style={{marginRight:'8px'}}>{this.props.timeRecordparse[v]['title']}:</span>
  25. <span style={{marginRight:'30px',}}>{this.props.timeRecordparse[v]['date']}</span>
  26. <span>
  27. {
  28. v === '18' ? <span style={{marginBottom:'15px'}}>
  29. <span style={{marginRight:'8px'}}>拨款金额(万元):</span>
  30. <span style={{marginRight:'30px',}}>{this.props.timeRecordparse[v]['appropriation']}</span>
  31. </span> : null
  32. }
  33. {
  34. v === '15' ? <span style={{marginBottom:'15px'}}>
  35. <span style={{marginRight:'8px'}}>立项金额(万元):</span>
  36. <span style={{marginRight:'30px',}}>{this.props.timeRecordparse[v]['setUpAmount']}</span>
  37. </span> : null
  38. }
  39. </span>
  40. </div>
  41. ))
  42. }
  43. {
  44. this.props.list.map(v=>(
  45. !this.props.timeRecordparse[parseInt(v.id)] && v.value && <div style={{marginRight:'30px',marginBottom:'15px'}}>
  46. <span style={{marginRight:'15px'}}>{v.name}:</span>
  47. <span>{v.value}</span>
  48. </div>
  49. ))
  50. }
  51. </div>
  52. )
  53. }
  54. }
  55. export default DeclarationProgress;