|
|
@ -13,6 +13,7 @@ import InputLabel from 'ui-component/extended/Form/InputLabel';
|
|
|
|
import { List, Save } from '@mui/icons-material';
|
|
|
|
import { List, Save } from '@mui/icons-material';
|
|
|
|
import FileForm from 'views/cmm/file-ctl/FileForm';
|
|
|
|
import FileForm from 'views/cmm/file-ctl/FileForm';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import { value } from 'lodash/seq';
|
|
|
|
|
|
|
|
|
|
|
|
const NewPublicBoardForm = (props) => {
|
|
|
|
const NewPublicBoardForm = (props) => {
|
|
|
|
// eslint-disable-next-line react/prop-types
|
|
|
|
// eslint-disable-next-line react/prop-types
|
|
|
@ -41,6 +42,11 @@ const NewPublicBoardForm = (props) => {
|
|
|
|
// eslint-disable-next-line no-plusplus
|
|
|
|
// eslint-disable-next-line no-plusplus
|
|
|
|
for (let i = 0; i < filesInfo.length; i++) formData.append('files', filesInfo[i]);
|
|
|
|
for (let i = 0; i < filesInfo.length; i++) formData.append('files', filesInfo[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const replaceContent = contents.replace('<p><br></p>', '').length;
|
|
|
|
|
|
|
|
if (subject.length < 1 || replaceContent < 1) {
|
|
|
|
|
|
|
|
alert.show('제목과 내용은 필수입니다.');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
handleModalSave('SAVE', formData);
|
|
|
|
handleModalSave('SAVE', formData);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -98,7 +104,7 @@ const NewPublicBoardForm = (props) => {
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
<Grid item xs={4}>
|
|
|
|
<Grid item xs={4}>
|
|
|
|
<FormControl fullWidth>
|
|
|
|
<FormControl fullWidth>
|
|
|
|
<InputLabel required>업무구분</InputLabel>
|
|
|
|
<InputLabel>업무구분</InputLabel>
|
|
|
|
<Select size="small" label="업무구분" required value={dept} onChange={(e) => setDept(e.target.value)} fullWidth>
|
|
|
|
<Select size="small" label="업무구분" required value={dept} onChange={(e) => setDept(e.target.value)} fullWidth>
|
|
|
|
<MenuItem value="주정차위반">주정차위반</MenuItem>
|
|
|
|
<MenuItem value="주정차위반">주정차위반</MenuItem>
|
|
|
|
<MenuItem value="장애인위반">장애인위반</MenuItem>
|
|
|
|
<MenuItem value="장애인위반">장애인위반</MenuItem>
|
|
|
|