|
@@ -13,9 +13,8 @@ import {
|
|
|
} 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'
|
|
@@ -161,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)
|
|
|
|
|
@@ -220,24 +219,9 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
|
|
|
options={nationSelect}
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
- <div className='A1aRowSon'>
|
|
|
- <Form.Item label='番号' name='dictPanId'>
|
|
|
- <Select
|
|
|
- onChange={e => (fanHaoRef.current = e)}
|
|
|
- getPopupContainer={() => formDomRef.current!}
|
|
|
- filterOption={(input, option) =>
|
|
|
- (option?.label ?? '').toLowerCase().includes(input.toLowerCase())
|
|
|
- }
|
|
|
- allowClear
|
|
|
- placeholder='请搜索并选择'
|
|
|
- showSearch
|
|
|
- options={numList.map(v => ({ value: v.id, label: v.name }))}
|
|
|
- />
|
|
|
- </Form.Item>
|
|
|
- <Button type='primary' onClick={() => setNumShow(true)}>
|
|
|
- 管理
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
+ <Form.Item label='番号' name='intro'>
|
|
|
+ <Input maxLength={50} showCount placeholder='请输入内容' />
|
|
|
+ </Form.Item>
|
|
|
</div>
|
|
|
|
|
|
<div className='A1aRow'>
|