feat: '위원회 일정 등록' 페이지에서 '구분'을 서버로 부터 목록 받도록 기능 추가
관리자 단에서 '위원회 관리' > '위원회 일정 관리'에 '등록' 버튼을 누른 후 '위원회 일정 등록' 페이지에서 '구분'을 서버로 부터 목록 받도록 기능 추가thkim
parent
020739c98a
commit
39c539c61e
|
|
@ -40,6 +40,9 @@ function SchedulesEdit(props) {
|
||||||
const [schdulEnddeHH, setSchdulEnddeHH] = useState();
|
const [schdulEnddeHH, setSchdulEnddeHH] = useState();
|
||||||
const [schdulEnddeMM, setSchdulEnddeMM] = useState();
|
const [schdulEnddeMM, setSchdulEnddeMM] = useState();
|
||||||
|
|
||||||
|
const [scheduleInit, setScheduleInit] = useState({});
|
||||||
|
const [scheduleApiOrgApiDepthList, setScheduleApiOrgApiDepthList] = useState({ });
|
||||||
|
|
||||||
|
|
||||||
const initMode = () => {
|
const initMode = () => {
|
||||||
|
|
||||||
|
|
@ -88,14 +91,18 @@ function SchedulesEdit(props) {
|
||||||
EgovNet.requestFetch("/schedule/init",
|
EgovNet.requestFetch("/schedule/init",
|
||||||
requestOptions,
|
requestOptions,
|
||||||
function (resp) {
|
function (resp) {
|
||||||
let rawScheduleDetail = resp;
|
setScheduleInit(
|
||||||
|
resp
|
||||||
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
EgovNet.requestFetch("/schedule/api/org-api/depth/list?paramCodeGroup=5",
|
EgovNet.requestFetch("/schedule/api/org-api/depth/list?paramCodeGroup=5",
|
||||||
requestOptions,
|
requestOptions,
|
||||||
function (resp) {
|
function (resp) {
|
||||||
let rawScheduleDetail = resp;
|
setScheduleApiOrgApiDepthList(
|
||||||
|
resp
|
||||||
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -241,35 +248,38 @@ function SchedulesEdit(props) {
|
||||||
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>
|
{scheduleInit && scheduleInit.result && scheduleInit.result.listCodes
|
||||||
<option value="2">기준기획</option>
|
&& scheduleInit.result.listCodes.map((item) => (
|
||||||
<option value="3">제개정검토</option>
|
<option value={item.id}><span >{item.name}</span></option>
|
||||||
<option value="4">기준심의</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_150 org-group-id" htmlFor="orgGroupId">
|
<label className="f_select w_250 org-group-id" htmlFor="orgGroupId">
|
||||||
<select id="orgGroupId" name="orgGroupId" title="중요도"
|
<select id="orgGroupId" name="orgGroupId" title="중요도"
|
||||||
value={scheduleDetail.orgGroupId}
|
value={scheduleDetail.orgGroupId}
|
||||||
onChange={(e) => setScheduleDetail({ ...scheduleDetail, orgGroupId: e.target.value })}>
|
onChange={(e) => setScheduleDetail({ ...scheduleDetail, orgGroupId: e.target.value })}>
|
||||||
<option value="">선택</option>
|
<option value="">선택</option>
|
||||||
<option value="A">높음</option>
|
{scheduleInit && scheduleInit.result && scheduleInit.result.listTopOrg
|
||||||
<option value="B">보통</option>
|
&& scheduleInit.result.listTopOrg.map((item) => (
|
||||||
<option value="C">낮음</option>
|
<option value={item.id}><span >{item.name}</span></option>
|
||||||
|
))}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<label className="f_select w_150 org-under-id" htmlFor="orgUnderId">
|
<label className="f_select w_250 org-under-id" htmlFor="orgUnderId">
|
||||||
<select id="orgUnderId" name="orgUnderId" title="중요도"
|
<select id="orgUnderId" name="orgUnderId" title="중요도"
|
||||||
value={scheduleDetail.orgUnderId}
|
value={scheduleDetail.orgUnderId}
|
||||||
onChange={(e) => setScheduleDetail({ ...scheduleDetail, orgUnderId: e.target.value })}>
|
onChange={(e) => setScheduleDetail({ ...scheduleDetail, orgUnderId: e.target.value })}>
|
||||||
<option value="">선택</option>
|
<option value="">선택</option>
|
||||||
<option value="A">높음</option>
|
{scheduleApiOrgApiDepthList && scheduleApiOrgApiDepthList.result && scheduleApiOrgApiDepthList.result.list
|
||||||
<option value="B">보통</option>
|
&& scheduleApiOrgApiDepthList.result.list.map((item) => (
|
||||||
<option value="C">낮음</option>
|
<option value={item.id}><span >{item.name}</span></option>
|
||||||
|
))}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue