| | |
| | | caseperfection_organize_active, |
| | | } from '@/assets/images/icon'; |
| | | import { Form, Input, Button, Radio, Select, Modal, Cascader, Upload, Message } from '@arco-design/web-react'; |
| | | import KeyVisits from "./keyVisits"; |
| | | import SelectUnitDialog from "./selectUnitDialog"; |
| | | import KeyVisits from "./KeyVisits"; |
| | | import SelectUnitDialog from "./SelectUnitDialog"; |
| | | import { |
| | | IconLink, |
| | | } from '@arco-design/web-react/icon'; |
| | |
| | | const formRef = useRef(); |
| | | const [perClass, setPerClass] = useState('09_01001-1'); |
| | | const [visible, setVisible] = useState(false); |
| | | |
| | | useEffect(() => { |
| | | if (props.editData) { |
| | | //编辑 |
| | | formRef.current.setFieldsValue({ |
| | | ...props.editData |
| | | }) |
| | | } |
| | | }, []) |
| | | |
| | | |
| | | const personIconType = (v) => { |
| | |
| | | label='民族' |
| | | field='nation' |
| | | > |
| | | <Select placeholder='请选择' allowClear> |
| | | {['汉族',].map((option, index) => ( |
| | | <Option key={option} value={option}> |
| | | {option} |
| | | </Option> |
| | | ))} |
| | | <Select |
| | | placeholder='请选择' |
| | | allowClear |
| | | showSearch |
| | | options={$$.options.nation} |
| | | filterOption={(inputValue, option) => |
| | | option.props.value.toLowerCase().indexOf(inputValue.toLowerCase()) >= 0 || |
| | | option.props.children.toLowerCase().indexOf(inputValue.toLowerCase()) >= 0 |
| | | } |
| | | > |
| | | </Select> |
| | | </FormItem> |
| | | </Col> |
| | |
| | | if (formRef.current) { |
| | | formRef.current.validate(undefined, (errors, values) => { |
| | | if (!errors) { |
| | | props.handleAddParty({ |
| | | ...values, |
| | | partyType: props.dialogType, |
| | | perClass: perClass, |
| | | perClassName: props.dialogType === 0 ? '申请方当事人' : '被申请方当事人' |
| | | }) |
| | | if (props.editData) { |
| | | props.handleAddParty({ |
| | | ...props.editData, |
| | | ...values |
| | | }) |
| | | } else { |
| | | props.handleAddParty({ |
| | | ...values, |
| | | partyType: props.dialogType, |
| | | perClass: perClass, |
| | | perClassName: props.dialogType === 0 ? '申请方当事人' : '被申请方当事人' |
| | | }) |
| | | } |
| | | props.onClose() |
| | | } |
| | | }); |
| | |
| | | requiredSymbol={false} |
| | | initialValues={{ |
| | | }}//默认值 |
| | | scrollToFirstError |
| | | > |
| | | <Row gutter={[32, 0]} style={{ margin: '0 -10px' }}>{formType(perClass)}</Row> |
| | | </Form> |
| | |
| | | className="dialogPrimary" |
| | | onClick={handleSave} |
| | | > |
| | | 保存信息 |
| | | 保存 |
| | | </Button> |
| | | <Button className="dialogBack"> |
| | | 重置 |