|
|
@@ -26,6 +26,8 @@ function C1ImportZipRes({ onClose, tableInfo, uploadFu, isLook = false }: Props)
|
|
|
const [searchKey, setSearchKey] = useState('')
|
|
|
const [checkResult, setCheckResult] = useState()
|
|
|
const [importLoading, setImportLoading] = useState(false)
|
|
|
+ const [pageNum, setPageNum] = useState(1)
|
|
|
+ const [pageSize, setPageSize] = useState(10)
|
|
|
const fileInputRef = useRef<HTMLInputElement>(null)
|
|
|
|
|
|
// 条件搜索
|
|
|
@@ -37,6 +39,7 @@ function C1ImportZipRes({ onClose, tableInfo, uploadFu, isLook = false }: Props)
|
|
|
return matchesSearch && matchesCheck
|
|
|
})
|
|
|
setTableInfoData(filtered)
|
|
|
+ setPageNum(1) // 搜索/筛选变化时重置到第一页
|
|
|
}, [tableInfo.img, searchKey, checkResult])
|
|
|
|
|
|
// 重新上传
|
|
|
@@ -137,6 +140,13 @@ function C1ImportZipRes({ onClose, tableInfo, uploadFu, isLook = false }: Props)
|
|
|
list={tableInfoData}
|
|
|
columnsTemp={importZipDataTableCheckC}
|
|
|
yHeight={500}
|
|
|
+ pageNum={pageNum}
|
|
|
+ pageSize={pageSize}
|
|
|
+ total={tableInfoData.length}
|
|
|
+ onChange={(p, s) => {
|
|
|
+ setPageNum(p)
|
|
|
+ setPageSize(s)
|
|
|
+ }}
|
|
|
/>
|
|
|
</div>
|
|
|
<div className={styles.TableListBottom}>
|