Merge branch 'thkim'
commit
2ff16b4620
|
|
@ -21,6 +21,18 @@ const StyledDiv = styled.div`
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.f_select.w_250 {
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.f_input {
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
function SchedulesEdit(props) {
|
function SchedulesEdit(props) {
|
||||||
|
|
@ -79,8 +91,6 @@ function SchedulesEdit(props) {
|
||||||
return new Date(year, month - 1, date, hour, minute)
|
return new Date(year, month - 1, date, hour, minute)
|
||||||
}
|
}
|
||||||
|
|
||||||
const retrieveDetail = () => {
|
|
||||||
|
|
||||||
const requestOptions = {
|
const requestOptions = {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
|
|
@ -88,6 +98,9 @@ function SchedulesEdit(props) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const retrieveDetail = () => {
|
||||||
|
|
||||||
|
|
||||||
EgovNet.requestFetch("/schedule/init",
|
EgovNet.requestFetch("/schedule/init",
|
||||||
requestOptions,
|
requestOptions,
|
||||||
function (resp) {
|
function (resp) {
|
||||||
|
|
@ -97,15 +110,6 @@ function SchedulesEdit(props) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
EgovNet.requestFetch("/schedule/api/org-api/depth/list?paramCodeGroup=5",
|
|
||||||
requestOptions,
|
|
||||||
function (resp) {
|
|
||||||
setScheduleApiOrgApiDepthList(
|
|
||||||
resp
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
if (modeInfo.mode === CODE.MODE_CREATE) {// 조회/등록이면 조회 안함
|
if (modeInfo.mode === CODE.MODE_CREATE) {// 조회/등록이면 조회 안함
|
||||||
setScheduleDetail({
|
setScheduleDetail({
|
||||||
...scheduleDetail
|
...scheduleDetail
|
||||||
|
|
@ -208,6 +212,22 @@ function SchedulesEdit(props) {
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
useEffect(function () {
|
||||||
|
|
||||||
|
EgovNet.requestFetch(`/schedule/api/org-api/depth/list?paramCodeGroup=${scheduleDetail.orgGroupId}`,
|
||||||
|
requestOptions,
|
||||||
|
function (resp) {
|
||||||
|
setScheduleApiOrgApiDepthList(
|
||||||
|
resp
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log( `kimtheho %o`, scheduleDetail);
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [scheduleDetail && scheduleDetail.orgGroupId]);
|
||||||
|
|
||||||
|
|
||||||
console.log("------------------------------EgovAdminScheduleEdit [End]");
|
console.log("------------------------------EgovAdminScheduleEdit [End]");
|
||||||
console.groupEnd("EgovAdminScheduleEdit");
|
console.groupEnd("EgovAdminScheduleEdit");
|
||||||
return (
|
return (
|
||||||
|
|
@ -243,18 +263,17 @@ function SchedulesEdit(props) {
|
||||||
<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_150" 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 key={"none"} value="">선택</option>
|
||||||
{scheduleInit && scheduleInit.result && scheduleInit.result.listCodes
|
{scheduleInit && scheduleInit.result && scheduleInit.result.listCodes
|
||||||
&& scheduleInit.result.listCodes.map((item) => (
|
&& scheduleInit.result.listCodes.map((item) => (
|
||||||
<option value={item.id}><span >{item.name}</span></option>
|
<option key={item.id} value={item.id}>{item.name}</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
|
|
@ -267,7 +286,7 @@ function SchedulesEdit(props) {
|
||||||
<option value="">선택</option>
|
<option value="">선택</option>
|
||||||
{scheduleInit && scheduleInit.result && scheduleInit.result.listTopOrg
|
{scheduleInit && scheduleInit.result && scheduleInit.result.listTopOrg
|
||||||
&& scheduleInit.result.listTopOrg.map((item) => (
|
&& scheduleInit.result.listTopOrg.map((item) => (
|
||||||
<option value={item.id}><span >{item.name}</span></option>
|
<option key={item.id} value={item.id}>{item.name}</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
@ -278,7 +297,7 @@ function SchedulesEdit(props) {
|
||||||
<option value="">선택</option>
|
<option value="">선택</option>
|
||||||
{scheduleApiOrgApiDepthList && scheduleApiOrgApiDepthList.result && scheduleApiOrgApiDepthList.result.list
|
{scheduleApiOrgApiDepthList && scheduleApiOrgApiDepthList.result && scheduleApiOrgApiDepthList.result.list
|
||||||
&& scheduleApiOrgApiDepthList.result.list.map((item) => (
|
&& scheduleApiOrgApiDepthList.result.list.map((item) => (
|
||||||
<option value={item.id}><span >{item.name}</span></option>
|
<option key={item.id} value={item.id}>{item.name}</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue