| | |
| | | const translate = useTranslate(); |
| | | const notify = useNotify(); |
| | | const refresh = useRefresh(); |
| | | console.log("-----=====>"); |
| | | console.log(queryForm); |
| | | |
| | | const handleClose = (event, reason) => { |
| | | if (reason !== "backdropClick") { |
| | |
| | | aria-labelledby="form-dialog-title" |
| | | fullWidth |
| | | disableRestoreFocus |
| | | maxWidth="lg" |
| | | maxWidth="xl" |
| | | > |
| | | <DialogTitle id="form-dialog-title" sx={{ |
| | | position: 'sticky', |
| | |
| | | </Grid> |
| | | </Box> |
| | | |
| | | <Box sx={{ mt: 2, height: 400, width: '100%' }}> |
| | | <Box sx={{ mt: 2, height: 600, width: '100%' }}> |
| | | <SelectMatsTableView |
| | | tableData={tableData} |
| | | setTableData={setTableData} |
| | |
| | | }); |
| | | if (res?.data?.code === 200) { |
| | | const { data } = res.data; |
| | | console.log('====-->'); |
| | | console.log(data); |
| | | setTableData(data?.records); |
| | | setRowCount(data?.total); |
| | | |
| | |
| | | } |
| | | |
| | | return ( |
| | | <div style={{ height: 400, width: '100%' }}> |
| | | <div style={{ height: 590, width: '100%' }}> |
| | | <DataGrid |
| | | rows={tableData} |
| | | rowCount={rowCount} |