import {
inject,
observer,
} from 'mobx-react'
import {
toJS
} from 'mobx'
import {
WeaFormItem,
WeaLocaleProvider
} from 'ecCom'
import {
Spin,
Button
} from 'antd'
import {
WeaSwitch
} from 'comsMobx'
const getLabel = WeaLocaleProvider.getLabel;
@inject('hrmOtherSetting')
@observer
export default class OtherSetting extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
const {
hrmOtherSetting
} = this.props, {
getFormInfo
} = hrmOtherSetting;
getFormInfo();
}
componentWillUnmount() {
const {
hrmOtherSetting
} = this.props, {
refreshFormInfo
} = hrmOtherSetting;
refreshFormInfo();
}
getForm = () => {
const {
hrmOtherSetting
} = this.props, {
formInfo,
synchro,
hasSynchroRight,
} = hrmOtherSetting, {
form,
conditions,
} = formInfo, {
isFormInit,
} = form;
let arr = [];
isFormInit && conditions.map(c => {
const len = c.items.length;
c.items.map((field, index) => {
const {
domkey
} = field;
arr.push(