fix: 게시판 관리 - 삭제 반영

main
minuk926 3 years ago
parent 986cf52718
commit 18b8c42b0a

@ -130,9 +130,13 @@ const Board = () => {
}); // .then((res) => { }); // .then((res) => {
break; break;
case 'DELETE': case 'DELETE':
removeBoard(payload).then(() => { removeBoard(payload).then((res) => {
search(); if (res?.success) {
setOpen(false); search();
setOpen(false);
} else {
alert.show(`${res?.data.message}`);
}
}); // .then((res) => { }); // .then((res) => {
break; break;
default: default:

@ -319,15 +319,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav
/> />
</Grid> </Grid>
<Grid item sm={7}> <Grid item sm={7}>
<TextField <TextField size="small" required disabled label="주소" fullWidth value={scJuso} onChange={(e) => setScJuso(e?.target?.value)} />
size="small"
required
label="주소"
fullWidth
value={scJuso}
onChange={(e) => setScJuso(e?.target?.value)}
InputProps={{ readOnly: true }}
/>
</Grid> </Grid>
<Grid item sm={3.3}> <Grid item sm={3.3}>
<TextField size="small" required label="번지" fullWidth value={scBunji} onChange={(e) => setScBunji(e?.target?.value)} /> <TextField size="small" required label="번지" fullWidth value={scBunji} onChange={(e) => setScBunji(e?.target?.value)} />

@ -210,7 +210,7 @@ const JudgeDataNewForm = ({ scDatagb, contDocs, ingbs, handleModalSave }) => {
fullWidth fullWidth
required required
label="우편번호" label="우편번호"
value={zipcode1} value={zipcode1 ?? ''}
onChange={(e) => setZipcode1(e?.target?.value)} onChange={(e) => setZipcode1(e?.target?.value)}
onClick={openPostCode} onClick={openPostCode}
InputProps={{ InputProps={{

Loading…
Cancel
Save