)
}
}else{
showValue = (
)
}
}
colArr.push(
);
if(!firstItem || index == items.length - 1){
rowArr.push(
)
}
}
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 != '' ?
:
;
}
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 (
)
}
}
export {
InfoGroup4Formal,
InfoGroup4Formal1,
InfoGroup4Formal2,
InfoGroup4Formal3
}