| | |
| | | if (res?.data?.code === 200) { |
| | | const {data} = res.data; |
| | | setTableData(data?.records); |
| | | setRowCount(data?.total) |
| | | |
| | | console.log(rowCount); |
| | | console.log(data); |
| | | |
| | | |
| | | setRowCount(data?.total); |
| | | } else { |
| | | notify(res.data.msg); |
| | | } |
| | |
| | | |
| | | useEffect(() => { |
| | | getData(); |
| | | }, [open]); |
| | | }, [open, page]); |
| | | |
| | | const handleSearch = () => { |
| | | getData() |
| | |
| | | |
| | | const SelectMatsTableView = ({ tableData, page, pageSize,setPage, setPageSize, rowCount, setTableData, selectedRows, setSelectedRows, dyFields, setDyFields }) => { |
| | | const translate = useTranslate(); |
| | | |
| | | const notify = useNotify(); |
| | | const [extendColumns, setExtendColumns] = useState([]); |
| | | |
| | |
| | | }; |
| | | |
| | | useEffect(() => { |
| | | console.log('------->'); |
| | | console.log(page); |
| | | }, [page]) |
| | | |
| | | useEffect(() => { |
| | | if (extendColumns == undefined || extendColumns.length < 1) { |
| | | getDynamicFields(); |
| | | } |