index.jsx 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. {this.props.taskDate ? <div style={{marginRight:'30px',marginBottom:'15px'}}>
  14. <span style={{marginRight:'15px'}}>分配时间:</span>
  15. <span>{this.props.taskDate}</span>
  16. </div> : null}
  17. {/*旧数据处理*/}
  18. {/* endDate 完成时间 对应已提交时间 4*/}
  19. {/* acceptDate 受理时间 对应已推荐时间 6*/}
  20. {/* publicityDate 公示时间 对应已拟公示时间 8*/}
  21. {/* licenceDate 发证时间 对应已下证时间 10*/}
  22. {/* setUpAmount 立项金额 15*/}
  23. {/*数据处理*/}
  24. {/* 拨款金额 18 appropriation*/}
  25. {
  26. this.props.timeRecordparse && Object.keys(this.props.timeRecordparse).map(v=>(
  27. <div style={{marginBottom:'15px'}}>
  28. {this.props.timeRecordparse[v]['date'] && <span style={{marginRight:'8px'}}>{this.props.timeRecordparse[v]['title']}:</span>}
  29. <span style={{marginRight:'30px'}}>{this.props.timeRecordparse[v]['date']}</span>
  30. <span>
  31. {
  32. v === '18' ? <span style={{marginBottom:'15px'}}>
  33. <span style={{marginRight:'8px'}}>拨款金额(万元):</span>
  34. <span style={{marginRight:'30px'}}>{this.props.timeRecordparse[v]['appropriation']}</span>
  35. </span> : null
  36. }
  37. {
  38. v === '15' ? <span style={{marginBottom:'15px'}}>
  39. <span style={{marginRight:'8px'}}>立项金额(万元):</span>
  40. <span style={{marginRight:'30px'}}>{this.props.timeRecordparse[v]['setUpAmount']}</span>
  41. </span> : null
  42. }
  43. </span>
  44. </div>
  45. ))
  46. }
  47. {/*以前的立项金额不显示*/}
  48. {
  49. this.props.list.map(v=>(
  50. (!this.props.timeRecordparse[parseInt(v.id)] && v.value && v.id !== '15') ? <div style={{marginRight:'30px',marginBottom:'15px'}}>
  51. <span style={{marginRight:'15px'}}>{v.name}:</span>
  52. <span>{v.value}</span>
  53. </div> : null
  54. ))
  55. }
  56. </div>
  57. )
  58. }
  59. }
  60. export default DeclarationProgress;