|
@@ -13,8 +13,9 @@ import {
|
|
|
} from 'antd'
|
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
|
import { nationSelect } from '../data'
|
|
|
-import { useDispatch } from 'react-redux'
|
|
|
+import { useDispatch, useSelector } 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'
|
|
@@ -160,7 +161,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)
|
|
|
|
|
@@ -219,12 +220,6 @@ 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
|
|
@@ -243,7 +238,7 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
|
|
|
管理
|
|
|
</Button>
|
|
|
</div>
|
|
|
- </div> */}
|
|
|
+ </div>
|
|
|
|
|
|
<div className='A1aRow'>
|
|
|
<Form.Item label='籍贯' name='myNative'>
|