浏览代码

番号回退

shaogen1995 1 月之前
父节点
当前提交
2f853ef66d

+ 4 - 9
后台管理/src/pages/A1record/A1add/index.tsx

@@ -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'>

+ 1 - 1
后台管理/src/pages/A1record/A1look/index.tsx

@@ -105,7 +105,7 @@ function A1look({ sId }: Props) {
               </div>
               <div className='A1topRow'>
                 <div className='A1top1LL'>番号:</div>
-                <div className='A1top1RR'>{info.intro || '(空)'}</div>
+                <div className='A1top1RR'>{info.dictPanName || '(空)'}</div>
               </div>
               <div className='A1topRow'>
                 <div className='A1top1LL'>籍贯:</div>

+ 1 - 1
后台管理/src/pages/A1record/index.tsx

@@ -93,7 +93,7 @@ function A1record() {
         render: (item: A1ListType) => (item.gender === 1 ? '男' : '女')
       },
       { title: '民族', width: 100, render: (item: A1ListType) => item.nation || '(空)' },
-      { title: '番号', render: (item: A1ListType) => item.intro || '(空)' },
+      { title: '番号', render: (item: A1ListType) => item.dictPanName || '(空)' },
       {
         title: '籍贯',