Update histori file MCU
This commit is contained in:
@@ -184,7 +184,7 @@ export default function CorporatePlanList({handleSubmitSuccess}) {
|
||||
if (fileWithId) {
|
||||
const formData = makeFormData({
|
||||
id: id,
|
||||
member_id: member_id,
|
||||
memberid: member_id,
|
||||
result_files: fileWithId.file,
|
||||
});
|
||||
axios
|
||||
@@ -193,7 +193,10 @@ export default function CorporatePlanList({handleSubmitSuccess}) {
|
||||
const responseData = response?.data;
|
||||
if(responseData)
|
||||
{
|
||||
enqueueSnackbar(responseData.message ?? 'Berhasil tambah file member '+member_id+', silahkan lihat dilaporan', { variant: 'success' });
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 2000);
|
||||
enqueueSnackbar(responseData.message ?? 'Berhasil tambah file MemberID '+member_id+', silahkan lihat dilaporan', { variant: 'success' });
|
||||
handleSubmitSuccess();
|
||||
}
|
||||
|
||||
@@ -641,6 +644,20 @@ export default function CorporatePlanList({handleSubmitSuccess}) {
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Typography sx={{ fontWeight: '600', mb: 1 }}>File History</Typography>
|
||||
<Grid container sx={{ pb: 2, mb: 2, borderBottom: 1 }}>
|
||||
<Grid item xs={12}>
|
||||
<Grid container>
|
||||
<Grid item xs={12}>
|
||||
{row.file_mcu_names
|
||||
? row.file_mcu_names.split(',').map((fileName, index) => (
|
||||
<div key={index}>{fileName}</div>
|
||||
))
|
||||
: '-'}
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid spacing={1}>
|
||||
<Stack sx={{ marginTop: 1}}>
|
||||
|
||||
Reference in New Issue
Block a user