Compare commits

..

No commits in common. "ebd006154a26c2f125ad475cdd6d319e7ce4d47f" and "9f430ca7ffd1a2ce4b93ed7ba33f57c44eb57b52" have entirely different histories.

1 changed files with 14 additions and 24 deletions

View File

@ -40,9 +40,6 @@ function SchedulesEdit(props) {
const [schdulEnddeHH, setSchdulEnddeHH] = useState();
const [schdulEnddeMM, setSchdulEnddeMM] = useState();
const [scheduleInit, setScheduleInit] = useState({});
const [scheduleApiOrgApiDepthList, setScheduleApiOrgApiDepthList] = useState({ });
const initMode = () => {
@ -91,18 +88,14 @@ function SchedulesEdit(props) {
EgovNet.requestFetch("/schedule/init",
requestOptions,
function (resp) {
setScheduleInit(
resp
);
let rawScheduleDetail = resp;
}
);
EgovNet.requestFetch("/schedule/api/org-api/depth/list?paramCodeGroup=5",
requestOptions,
function (resp) {
setScheduleApiOrgApiDepthList(
resp
);
let rawScheduleDetail = resp;
}
);
@ -248,38 +241,35 @@ function SchedulesEdit(props) {
value={scheduleDetail.schdulSe}
onChange={(e) => setScheduleDetail({ ...scheduleDetail, schdulSe: e.target.value })}>
<option value="">선택</option>
{scheduleInit && scheduleInit.result && scheduleInit.result.listCodes
&& scheduleInit.result.listCodes.map((item) => (
<option value={item.id}><span >{item.name}</span></option>
))}
<option value="1">일반회의</option>
<option value="2">기준기획</option>
<option value="3">제개정검토</option>
<option value="4">기준심의</option>
</select>
</label>
</dd>
</dl>
<dl>
<dt>심의위원회<span className="req">필수</span></dt>
<dd>
<label className="f_select w_250 org-group-id" htmlFor="orgGroupId">
<label className="f_select w_150 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>
{scheduleInit && scheduleInit.result && scheduleInit.result.listTopOrg
&& scheduleInit.result.listTopOrg.map((item) => (
<option value={item.id}><span >{item.name}</span></option>
))}
<option value="A">높음</option>
<option value="B">보통</option>
<option value="C">낮음</option>
</select>
</label>
<label className="f_select w_250 org-under-id" htmlFor="orgUnderId">
<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>
{scheduleApiOrgApiDepthList && scheduleApiOrgApiDepthList.result && scheduleApiOrgApiDepthList.result.list
&& scheduleApiOrgApiDepthList.result.list.map((item) => (
<option value={item.id}><span >{item.name}</span></option>
))}
<option value="A">높음</option>
<option value="B">보통</option>
<option value="C">낮음</option>
</select>
</label>
</dd>