|
@@ -1,11 +1,20 @@
|
|
|
import React, { useCallback, useEffect, useRef, useState } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
-import { Button, Cascader, DatePicker, Form, FormInstance, Input, Radio, Select } from 'antd'
|
|
|
+import {
|
|
|
+ Button,
|
|
|
+ Cascader,
|
|
|
+ Checkbox,
|
|
|
+ DatePicker,
|
|
|
+ Form,
|
|
|
+ FormInstance,
|
|
|
+ Input,
|
|
|
+ Radio,
|
|
|
+ Select
|
|
|
+} from 'antd'
|
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
|
import { nationSelect } from '../data'
|
|
|
-import { useDispatch, useSelector } from 'react-redux'
|
|
|
+import { useDispatch } from 'react-redux'
|
|
|
import { A1_APIgetInfo, A1_APIgetNumList, A1_APIsave } from '@/store/action/A1record'
|
|
|
-import { RootState } from '@/store'
|
|
|
import A1num from '../A1num'
|
|
|
import { myCity } from '@/utils/history'
|
|
|
import TextArea from 'antd/es/input/TextArea'
|
|
@@ -151,7 +160,7 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
|
|
|
dispatch(A1_APIgetNumList())
|
|
|
}, [dispatch])
|
|
|
|
|
|
- const numList = useSelector((state: RootState) => state.A1record.numList)
|
|
|
+ // const numList = useSelector((state: RootState) => state.A1record.numList)
|
|
|
|
|
|
const [numShow, setNumShow] = useState(false)
|
|
|
|
|
@@ -172,7 +181,7 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
|
|
|
autoComplete='off'
|
|
|
scrollToFirstError
|
|
|
>
|
|
|
- <div className='A1aRow'>
|
|
|
+ <div className='A1aRow A1aRow3'>
|
|
|
<Form.Item
|
|
|
label='姓名'
|
|
|
name='name'
|
|
@@ -194,10 +203,14 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
|
|
|
]}
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
+
|
|
|
+ <Form.Item valuePropName='checked' label='寻亲烈士' name='display'>
|
|
|
+ <Checkbox></Checkbox>
|
|
|
+ </Form.Item>
|
|
|
</div>
|
|
|
|
|
|
<div className='A1aRow'>
|
|
|
- <Form.Item label='名族' name='nation'>
|
|
|
+ <Form.Item label='民族' name='nation'>
|
|
|
<Select
|
|
|
getPopupContainer={() => formDomRef.current!}
|
|
|
allowClear
|
|
@@ -206,6 +219,12 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
|
|
|
options={nationSelect}
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
+ <Form.Item label='番号' name='intro'>
|
|
|
+ <Input maxLength={50} showCount placeholder='请输入内容' />
|
|
|
+ </Form.Item>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {/* <div className='A1aRow'>
|
|
|
<div className='A1aRowSon'>
|
|
|
<Form.Item label='番号' name='dictPanId'>
|
|
|
<Select
|
|
@@ -224,7 +243,7 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
|
|
|
管理
|
|
|
</Button>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> */}
|
|
|
|
|
|
<div className='A1aRow'>
|
|
|
<Form.Item label='籍贯' name='myNative'>
|
|
@@ -245,19 +264,19 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
|
|
|
</div>
|
|
|
|
|
|
<div className='A1aRow'>
|
|
|
- <Form.Item label='出生年份' name='dateStart'>
|
|
|
- <DatePicker />
|
|
|
+ <Form.Item label='出生年月' name='dateStart'>
|
|
|
+ <DatePicker picker='month' placeholder='请选择年月' />
|
|
|
</Form.Item>
|
|
|
- <Form.Item label='死亡年份' name='dateEnd'>
|
|
|
- <DatePicker />
|
|
|
+ <Form.Item label='牺牲年月' name='dateEnd'>
|
|
|
+ <DatePicker picker='month' placeholder='请选择年月' />
|
|
|
</Form.Item>
|
|
|
</div>
|
|
|
|
|
|
- <div className='A1aRowAll'>
|
|
|
+ {/* <div className='A1aRowAll'>
|
|
|
<Form.Item label='个人介绍' name='intro'>
|
|
|
<TextArea maxLength={500} showCount placeholder='请输入内容' />
|
|
|
</Form.Item>
|
|
|
- </div>
|
|
|
+ </div> */}
|
|
|
|
|
|
{/* 多个图片 */}
|
|
|
<div className='formRow'>
|