메뉴관리 요청사항 반영.

thkim
강석 최 2024-03-04 17:17:07 +09:00
parent 2b962e7f7f
commit 94aff6bed9
6 changed files with 29 additions and 35 deletions

View File

@ -170,22 +170,18 @@
.userList .result .list_item > div:nth-child(7) {width: 100px;}
/* 사이트관리 > 환경설정 > 메뉴관리 */
.menuList .head > span:nth-child(1) {width: 100px;}
.menuList .head > span:nth-child(2) {width: 150px;}
.menuList .head > span:nth-child(1) {width: 120px;}
.menuList .head > span:nth-child(2) {width: 120px;}
.menuList .head > span:nth-child(3) {width: 100px;}
.menuList .head > span:nth-child(4) {width: 60px;}
.menuList .head > span:nth-child(5) {width: 60px;}
.menuList .head > span:nth-child(6) {width: 200px;}
.menuList .head > span:nth-child(7) {width: 100px;}
.menuList .head > span:nth-child(8) {width: 100px;}
.menuList .result .list_item > div:nth-child(1) {width: 100px;}
.menuList .result .list_item > div:nth-child(2) {width: 150px;}
.menuList .head > span:nth-child(4) {width: 200px;}
.menuList .head > span:nth-child(5) {width: 100px;}
.menuList .head > span:nth-child(6) {width: 100px;}
.menuList .result .list_item > div:nth-child(1) {width: 120px;}
.menuList .result .list_item > div:nth-child(2) {width: 120px;}
.menuList .result .list_item > div:nth-child(3) {width: 100px;}
.menuList .result .list_item > div:nth-child(4) {width: 60px;}
.menuList .result .list_item > div:nth-child(5) {width: 60px;}
.menuList .result .list_item > div:nth-child(6) {width: 200px;}
.menuList .result .list_item > div:nth-child(7) {width: 100px;}
.menuList .result .list_item > div:nth-child(8) {width: 100px;}
.menuList .result .list_item > div:nth-child(4) {width: 200px;}
.menuList .result .list_item > div:nth-child(5) {width: 100px;}
.menuList .result .list_item > div:nth-child(6) {width: 100px;}
/* 사이트관리 > 환경설정 > 메뉴권한관리 */
.roleList .head > span:nth-child(1) {width: 120px;}

View File

@ -33,11 +33,9 @@ function MenuMgt({}) {
resp.result.menuList.forEach(function (item, index) {
mutListTag.push(
<div className={"list_item"} key={"userListDiv_"+index}>
<div>{item.menuGroup?'└':''}</div>
<div>{item.menuId}</div>
<div>{item.menuTitle}</div>
<div>{item.menuGroup}</div>
<div>{item.menuLevel}</div>
<div>{item.menuSort}</div>
<div>{item.menuUrl}</div>
<div>{item.menuTypeValue}</div>
<div>
@ -88,12 +86,10 @@ function MenuMgt({}) {
<div className="board_list menuList">
<div className="head">
<span>그룹 코드</span>
<span>메뉴 코드</span>
<span>메뉴 이름</span>
<span>부모 메뉴</span>
<span>레벨</span>
<span>정렬</span>
<span>URI</span>
<span>경로</span>
<span>타입</span>
<span>
<button className={"btn btn_blue_h31 px-1"} onClick={()=>{editMenu(undefined)}}>추가</button>

View File

@ -32,13 +32,14 @@ function MenuModal({savedInfo, reloadFunction}){
body: JSON.stringify(info)
},
(resp) => {
debugger
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
alert("저장되었습니다.")
reloadFunction();
}else if(Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)){
console.log("토큰 갱신중.")
}else{
alert(resp.result.resultMessage)
alert(resp.resultMessage)
}
}
)
@ -78,6 +79,14 @@ function MenuModal({savedInfo, reloadFunction}){
</Modal.Header>
<Modal.Body>
<Form onSubmit={(e) =>{editMenu(e)}} noValidate>
<Form.Group as={Row} className="mb-3">
<Form.Label column sm={3}>
그룹 코드
</Form.Label>
<Col sm={9}>
<Form.Control type="email" name="menuGroup" placeholder="그룹" required defaultValue={savedInfo?.menuGroup} />
</Col>
</Form.Group>
<Form.Group as={Row} className="mb-3">
<Form.Label column sm={3}>
메뉴 코드
@ -94,15 +103,7 @@ function MenuModal({savedInfo, reloadFunction}){
<Form.Control type="text" name="menuTitle" placeholder="이름" required defaultValue={savedInfo?.menuTitle} />
</Col>
</Form.Group>
<Form.Group as={Row} className="mb-3">
<Form.Label column sm={3}>
부모 메뉴
</Form.Label>
<Col sm={9}>
<Form.Control type="email" name="menuGroup" placeholder="그룹" required defaultValue={savedInfo?.menuGroup} />
</Col>
</Form.Group>
<Form.Group as={Row} className="mb-3">
<Form.Group as={Row} className="mb-3 d-none">
<Form.Label column sm={3}>
레벨
</Form.Label>
@ -110,7 +111,7 @@ function MenuModal({savedInfo, reloadFunction}){
<Form.Control type="number" min={"0"} name="menuLevel" placeholder="레벨" required defaultValue={savedInfo!==undefined?savedInfo.menuLevel:0} />
</Col>
</Form.Group>
<Form.Group as={Row} className="mb-3">
<Form.Group as={Row} className="mb-3 d-none">
<Form.Label column sm={3}>
정렬
</Form.Label>
@ -120,7 +121,7 @@ function MenuModal({savedInfo, reloadFunction}){
</Form.Group>
<Form.Group as={Row} className="mb-3">
<Form.Label column sm={3}>
URI
경로
</Form.Label>
<Col sm={9}>
<Form.Control type="text" name="menuUrl" placeholder="URI" required defaultValue={savedInfo?.menuUrl} />

View File

@ -35,7 +35,7 @@ public class TcMenu {
@Column(name = "menu_sort")
private Integer menuSort;
@Column(name = "menu_url")
@NotBlank(message = "메뉴URI를 입력해주세요.")
@NotBlank(message = "경로를 입력해주세요.")
private String menuUrl;
@Column(name = "menu_type_cd")
@NotBlank(message = "타입을 선택해주세요.")

View File

@ -78,6 +78,7 @@
</if>
and b.group_type = 'D'
</where>
order by doc_yr asc
</select>
<select id="selectStandardCodeGroupSeq" parameterType="String" resultType="Integer">

View File

@ -21,7 +21,7 @@
from tc_menu a
inner join tc_code_item b on a.menu_type_cd = b.item_cd
where a.use_yn = 'Y'
order by menu_id asc
order by menu_type_cd desc, menu_id asc
</select>
<select id="selectMenuAuthList" resultType="TcMenu">