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