import { WeaDialog, WeaFormItem, WeaNewScroll, WeaSearchGroup, WeaMoreButton, WeaPopoverHrm } from 'ecCom' import { Row, Col, Spin, Button, } from 'antd' import { WeaSwitch } from 'comsMobx' import { i18n } from '../public/i18n'; import AttachToNumberField from './NewNumberField'; import "../style/common.less"; export default class SearchPanelDialog extends React.Component { constructor(props) { super(props); this.state = { width: 700, } } getForm() { const { condition, form, isFormInit, } = this.props; let arr = []; isFormInit && condition.map(c => { c.items.map((field, index) => { arr.push(
{}
) }) }) return {arr} } getSearchGroupForm() { const { condition, form, isFormInit, } = this.props; let arr = []; isFormInit && condition.map((c, i) => { let _arr = []; c.items.map((field, index) => { _arrarr.push(
{}
) }) arr.push() }) return {arr}; } render() { const { title, visible, search, onCancel, loading, height, conditionLen, form } = this.props, { width, } = this.state; const buttons = [ (), (), () ]; return ( onCancel()} buttons={buttons} style={{ width: width, height: height }} initLoadCss > { loading ?
: conditionLen > 1 ? this.getSearchGroupForm() : this.getForm()}
) } }