feat: merged egovframe-template-simple-react-contribution/yarn.lock
parent
a799f454e2
commit
83f11fb4e5
|
|
@ -7,11 +7,22 @@ import URL from 'constants/url';
|
||||||
import CODE from 'constants/code';
|
import CODE from 'constants/code';
|
||||||
|
|
||||||
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
||||||
import EgovAttachFile from 'components/EgovAttachFile';
|
|
||||||
import EgovRadioButtonGroup from 'components/EgovRadioButtonGroup';
|
|
||||||
|
|
||||||
import 'react-datepicker/dist/react-datepicker.css';
|
import 'react-datepicker/dist/react-datepicker.css';
|
||||||
|
|
||||||
|
import styled from "styled-components";
|
||||||
|
|
||||||
|
const StyledDiv = styled.div`
|
||||||
|
.org-under-id {
|
||||||
|
margin-left: 20px;
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
display: block;
|
||||||
|
margin-left: 0px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
function SchedulesEdit(props) {
|
function SchedulesEdit(props) {
|
||||||
console.group("EgovAdminScheduleEdit");
|
console.group("EgovAdminScheduleEdit");
|
||||||
console.log("[Start] EgovAdminScheduleEdit ------------------------------");
|
console.log("[Start] EgovAdminScheduleEdit ------------------------------");
|
||||||
|
|
@ -21,11 +32,8 @@ function SchedulesEdit(props) {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
console.log("EgovAdminScheduleEdit [location] : ", location);
|
console.log("EgovAdminScheduleEdit [location] : ", location);
|
||||||
|
|
||||||
const reptitSeCodeRadioGroup = [{ value: "1", label: "당일" }, { value: "2", label: "반복" }, { value: "3", label: "연속" }];
|
|
||||||
|
|
||||||
const [modeInfo, setModeInfo] = useState({ mode: props.mode });
|
const [modeInfo, setModeInfo] = useState({ mode: props.mode });
|
||||||
const [scheduleDetail, setScheduleDetail] = useState({ schdulDeptName: "관리자부서", schdulChargerName: "관리자", schdulKindCode: 2, reptitSeCode: "1", startDate: new Date(), endDate: new Date() });
|
const [scheduleDetail, setScheduleDetail] = useState({ startDate: new Date(), endDate: new Date() });
|
||||||
const [boardAttachFiles, setBoardAttachFiles] = useState();
|
|
||||||
|
|
||||||
const [schdulBgndeHH, setSchdulBgndeHH] = useState();
|
const [schdulBgndeHH, setSchdulBgndeHH] = useState();
|
||||||
const [schdulBgndeMM, setSchdulBgndeMM] = useState();
|
const [schdulBgndeMM, setSchdulBgndeMM] = useState();
|
||||||
|
|
@ -98,8 +106,8 @@ function SchedulesEdit(props) {
|
||||||
startDate: convertDate(rawScheduleDetail.schdulBgnde),
|
startDate: convertDate(rawScheduleDetail.schdulBgnde),
|
||||||
endDate: convertDate(rawScheduleDetail.schdulEndde),
|
endDate: convertDate(rawScheduleDetail.schdulEndde),
|
||||||
atchFileId : rawScheduleDetail.atchFileId.trim(),
|
atchFileId : rawScheduleDetail.atchFileId.trim(),
|
||||||
|
schdulIpcrCode : "B",
|
||||||
});
|
});
|
||||||
setBoardAttachFiles(resp.result.resultFiles);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -207,31 +215,40 @@ function SchedulesEdit(props) {
|
||||||
{/* <!-- <h2 className="tit_2">위원회 일정 추가</h2> --> */}
|
{/* <!-- <h2 className="tit_2">위원회 일정 추가</h2> --> */}
|
||||||
|
|
||||||
{/* <!-- 게시판 상세보기 --> */}
|
{/* <!-- 게시판 상세보기 --> */}
|
||||||
<div className="board_view2">
|
<StyledDiv className="board_view2">
|
||||||
<dl>
|
<dl>
|
||||||
<dt>일정구분<span className="req">필수</span></dt>
|
<dt>구분<span className="req">필수</span></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<label className="f_select w_130" htmlFor="schdulSe">
|
<label className="f_select w_130" htmlFor="schdulSe">
|
||||||
<select id="schdulSe" name="schdulSe" title="일정구분"
|
<select id="schdulSe" name="schdulSe" title="일정구분"
|
||||||
value={scheduleDetail.schdulSe}
|
value={scheduleDetail.schdulSe}
|
||||||
onChange={(e) => setScheduleDetail({ ...scheduleDetail, schdulSe: e.target.value })}>
|
onChange={(e) => setScheduleDetail({ ...scheduleDetail, schdulSe: e.target.value })}>
|
||||||
<option value="">선택</option>
|
<option value="">선택</option>
|
||||||
<option value="1">회의</option>
|
<option value="1">일반회의</option>
|
||||||
<option value="2">세미나</option>
|
<option value="2">기준기획</option>
|
||||||
<option value="3">강의</option>
|
<option value="3">제개정검토</option>
|
||||||
<option value="4">교육</option>
|
<option value="4">기준심의</option>
|
||||||
<option value="5">기타</option>
|
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>중요도<span className="req">필수</span></dt>
|
<dt>심의위원회<span className="req">필수</span></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<label className="f_select w_130" htmlFor="schdulIpcrCode">
|
<label className="f_select w_150 org-group-id" htmlFor="orgGroupId">
|
||||||
<select id="schdulIpcrCode" name="schdulIpcrCode" title="중요도"
|
<select id="orgGroupId" name="orgGroupId" title="중요도"
|
||||||
value={scheduleDetail.schdulIpcrCode}
|
value={scheduleDetail.orgGroupId}
|
||||||
onChange={(e) => setScheduleDetail({ ...scheduleDetail, schdulIpcrCode: e.target.value })}>
|
onChange={(e) => setScheduleDetail({ ...scheduleDetail, orgGroupId: e.target.value })}>
|
||||||
|
<option value="">선택</option>
|
||||||
|
<option value="A">높음</option>
|
||||||
|
<option value="B">보통</option>
|
||||||
|
<option value="C">낮음</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
<label className="f_select w_150 org-under-id" htmlFor="orgUnderId">
|
||||||
|
<select id="orgUnderId" name="orgUnderId" title="중요도"
|
||||||
|
value={scheduleDetail.orgUnderId}
|
||||||
|
onChange={(e) => setScheduleDetail({ ...scheduleDetail, orgUnderId: e.target.value })}>
|
||||||
<option value="">선택</option>
|
<option value="">선택</option>
|
||||||
<option value="A">높음</option>
|
<option value="A">높음</option>
|
||||||
<option value="B">보통</option>
|
<option value="B">보통</option>
|
||||||
|
|
@ -241,7 +258,7 @@ function SchedulesEdit(props) {
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label htmlFor="schdulDeptName">부서</label><span className="req">필수</span></dt>
|
<dt><label htmlFor="schdulDeptName">제목</label><span className="req">필수</span></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<input className="f_input2 w_full" type="text" name="schdulDeptName" title="부서" id="schdulDeptName"
|
<input className="f_input2 w_full" type="text" name="schdulDeptName" title="부서" id="schdulDeptName"
|
||||||
value={scheduleDetail.schdulDeptName} readOnly
|
value={scheduleDetail.schdulDeptName} readOnly
|
||||||
|
|
@ -249,32 +266,13 @@ function SchedulesEdit(props) {
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label htmlFor="schdulNm">일정명</label><span className="req">필수</span></dt>
|
<dt><label htmlFor="schdulNm">장소</label><span className="req">필수</span></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<input className="f_input2 w_full" type="text" name="schdulNm" title="부서" id="schdulNm" placeholder="일정 테스트"
|
<input className="f_input2 w_full" type="text" name="schdulNm" title="부서" id="schdulNm" placeholder="일정 테스트"
|
||||||
defaultValue={scheduleDetail.schdulNm}
|
defaultValue={scheduleDetail.schdulNm}
|
||||||
onChange={(e) => setScheduleDetail({ ...scheduleDetail, schdulNm: e.target.value })} />
|
onChange={(e) => setScheduleDetail({ ...scheduleDetail, schdulNm: e.target.value })} />
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
|
||||||
<dt><label htmlFor="schdulCn">일정내용</label><span className="req">필수</span></dt>
|
|
||||||
<dd>
|
|
||||||
<textarea className="f_txtar w_full h_100" name="schdulCn" id="schdulCn" cols="30" rows="10" placeholder="일정내용"
|
|
||||||
defaultValue={scheduleDetail.schdulCn}
|
|
||||||
onChange={(e) => setScheduleDetail({ ...scheduleDetail, schdulCn: e.target.value })}
|
|
||||||
></textarea>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<dl>
|
|
||||||
<dt>반복구분<span className="req">필수</span></dt>
|
|
||||||
<dd>
|
|
||||||
<EgovRadioButtonGroup
|
|
||||||
name="reptitSeCode"
|
|
||||||
radioGroup={reptitSeCodeRadioGroup}
|
|
||||||
setValue={scheduleDetail.reptitSeCode.trim()}
|
|
||||||
setter={(v) => setScheduleDetail({ ...scheduleDetail, reptitSeCode: v })} />
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>날짜/시간<span className="req">필수</span></dt>
|
<dt>날짜/시간<span className="req">필수</span></dt>
|
||||||
<dd className="datetime">
|
<dd className="datetime">
|
||||||
|
|
@ -316,27 +314,14 @@ function SchedulesEdit(props) {
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label htmlFor="schdulChargerName">담당자</label><span className="req">필수</span></dt>
|
<dt><label htmlFor="schdulCn">내용</label><span className="req">필수</span></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<input className="f_input2 w_full" type="text" name="schdulChargerName" id="schdulChargerName" defaultValue="관리자" readOnly
|
<textarea className="f_txtar w_full h_100" name="schdulCn" id="schdulCn" cols="30" rows="10" placeholder="일정내용"
|
||||||
/>
|
defaultValue={scheduleDetail.schdulCn}
|
||||||
|
onChange={(e) => setScheduleDetail({ ...scheduleDetail, schdulCn: e.target.value })}
|
||||||
|
></textarea>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<EgovAttachFile
|
|
||||||
fnChangeFile={(attachfile) => {
|
|
||||||
console.log("====>>> Changed attachfile file = ", attachfile);
|
|
||||||
const arrayConcat = { ...scheduleDetail}; // 기존 단일 파일 업로드에서 다중파일 객체 추가로 변환(아래 for문으로)
|
|
||||||
for ( let i = 0; i < attachfile.length; i++) {
|
|
||||||
arrayConcat[`file_${i}`] = attachfile[i];
|
|
||||||
}
|
|
||||||
setScheduleDetail(arrayConcat);
|
|
||||||
}}
|
|
||||||
fnDeleteFile={(deletedFile) => {
|
|
||||||
console.log("====>>> Delete deletedFile = ", deletedFile);
|
|
||||||
setBoardAttachFiles(deletedFile);
|
|
||||||
}}
|
|
||||||
boardFiles={boardAttachFiles}
|
|
||||||
mode={props.mode} />
|
|
||||||
|
|
||||||
{/* <!-- 버튼영역 --> */}
|
{/* <!-- 버튼영역 --> */}
|
||||||
<div className="board_btn_area">
|
<div className="board_btn_area">
|
||||||
|
|
@ -352,7 +337,7 @@ function SchedulesEdit(props) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* <!--// 버튼영역 --> */}
|
{/* <!--// 버튼영역 --> */}
|
||||||
</div>
|
</StyledDiv>
|
||||||
{/* <!-- 게시판 상세보기 --> */}
|
{/* <!-- 게시판 상세보기 --> */}
|
||||||
|
|
||||||
{/* <!--// 본문 --> */}
|
{/* <!--// 본문 --> */}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue