12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import React,{Component} from 'react';
- class DeclarationProgress extends Component{
- constructor(props) {
- super(props);
- }
- render() {
- return (
- <div style={{display:'flex',flexFlow:'row wrap',marginLeft: '11px',marginTop:'20px'}}>
- {}
- {}
- {}
- {}
- {this.props.taskDate ? <div style={{marginRight:'30px',marginBottom:'15px'}}>
- <span style={{marginRight:'15px'}}>分配时间:</span>
- <span>{this.props.taskDate}</span>
- </div> : null}
- {}
- {}
- {}
- {}
- {}
- {}
- {}
- {}
- {
- this.props.timeRecordparse && Object.keys(this.props.timeRecordparse).map(v=>(
- <div style={{marginBottom:'15px'}}>
- {this.props.timeRecordparse[v]['date'] && <span style={{marginRight:'8px'}}>{this.props.timeRecordparse[v]['title']}:</span>}
- <span style={{marginRight:'30px'}}>{this.props.timeRecordparse[v]['date']}</span>
- <span>
- {
- v === '18' ? <span style={{marginBottom:'15px'}}>
- <span style={{marginRight:'8px'}}>拨款金额(万元):</span>
- <span style={{marginRight:'30px'}}>{this.props.timeRecordparse[v]['appropriation']}</span>
- </span> : null
- }
- {
- v === '15' ? <span style={{marginBottom:'15px'}}>
- <span style={{marginRight:'8px'}}>立项金额(万元):</span>
- <span style={{marginRight:'30px'}}>{this.props.timeRecordparse[v]['setUpAmount']}</span>
- </span> : null
- }
- </span>
- </div>
- ))
- }
- {}
- {
- this.props.list.map(v=>(
- (!this.props.timeRecordparse[parseInt(v.id)] && v.value && v.id !== '15') ? <div style={{marginRight:'30px',marginBottom:'15px'}}>
- <span style={{marginRight:'15px'}}>{v.name}:</span>
- <span>{v.value}</span>
- </div> : null
- ))
- }
- </div>
- )
- }
- }
- export default DeclarationProgress;
|