import { Row, Col, Icon } from 'antd'; import {WeaInput} from 'ecCom'; import {i18n} from '../public/i18n'; import isEmpty from 'lodash/isEmpty'; class InfoGroup4Formal extends React.Component { constructor(props) { super(props); this.state = { showGroup: true } } render() { const { title, items, colLeft = 6, colRight = 15, hide, } = this.props; const { showGroup } = this.state; let rowArr = []; let colArr = []; items && items.forEach((obj, index) => { const firstItem = (index % 2 == 0); if(firstItem) colArr = []; let showValue; if (obj.isOpenHrm) { showValue = obj.showName != '' ? window.pointerXY(event)}>{obj.showName} :
 
; } else { if(obj.value){ if(obj.value.indexOf('desensitization__') > -1){ showValue = ( ) }else{ showValue = (
) } }else{ showValue = (
 
) } } colArr.push( {obj.label ? obj.label :
 
}: { showValue }
); if(!firstItem || index == items.length - 1){ rowArr.push({colArr}) } }) return (
{title}
this.setState({showGroup:!showGroup})}/>
{rowArr}
) } } class InfoGroup4Formal1 extends React.Component { constructor(props) { super(props); this.state = { showGroup: true } } render() { const { title, items, colLeft = 6, colRight = 18 } = this.props; const { showGroup } = this.state; const colArr = []; items && items.forEach((obj, index) => { let showValue; if (obj.isOpenHrm) { showValue = obj.showName != '' ? window.pointerXY(event)}>{obj.showName} :
 
; } else { showValue = obj.value ?
:
 
; } colArr.push( {obj.label && {obj.label ? obj.label :
 
}: } {showValue}
); }) if(isEmpty(colArr) || colArr.length==0){ colArr.push(
  • {i18n.message.dataNone()}
  • ) } return (
    {title}
    this.setState({showGroup:!showGroup})}/>
    {colArr}
    ) } } class InfoGroup4Formal2 extends React.Component { constructor(props) { super(props); this.state = { showGroup: true } } render() { const { title, items } = this.props; const { showGroup } = this.state; const colArr = []; items && items.forEach((obj, index) => { colArr.push( {obj.label} {obj.value} ); }) return (
    {title}
    this.setState({showGroup:!showGroup})}/>
    {colArr}
    ) } } class InfoGroup4Formal3 extends React.Component { constructor(props) { super(props); } render() { const { title, items, colLeft = 6, colRight = 18 } = this.props; const colArr = []; items && items.forEach((item, index) => { let children = []; colArr.push({children}); item.map((obj, index) => { let showValue; if (obj.isOpenHrm) { showValue = obj.showName != '' ? window.pointerXY(event)}>{obj.showName} :
     
    ; } else { if(obj.value){ if(obj.value.indexOf('desensitization__') > -1){ showValue = ( ) }else{ showValue = (
    ) } }else{ showValue = (
     
    ) } } children.push( {obj.label ? obj.label :
     
    }: {showValue}
    ); }) }) return (
    {title}
    {colArr}
    ) } } export { InfoGroup4Formal, InfoGroup4Formal1, InfoGroup4Formal2, InfoGroup4Formal3 }