Compare commits

..

No commits in common. "a8049966feda65d251fa0bf82c3615cb15611c3d" and "2d6f03f8f23a46e96b3ff6efbd5f1df14fa4bf95" have entirely different histories.

6 changed files with 35 additions and 29 deletions

View File

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

View File

@ -33,9 +33,11 @@ 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>
@ -86,10 +88,12 @@ function MenuMgt({}) {
<div className="board_list menuList">
<div className="head">
<span>그룹 코드</span>
<span>메뉴 코드</span>
<span>메뉴 이름</span>
<span>경로</span>
<span>부모 메뉴</span>
<span>레벨</span>
<span>정렬</span>
<span>URI</span>
<span>타입</span>
<span>
<button className={"btn btn_blue_h31 px-1"} onClick={()=>{editMenu(undefined)}}>추가</button>

View File

@ -32,14 +32,13 @@ 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.resultMessage)
alert(resp.result.resultMessage)
}
}
)
@ -79,14 +78,6 @@ 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}>
메뉴 코드
@ -103,7 +94,15 @@ 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 d-none">
<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}>
레벨
</Form.Label>
@ -111,7 +110,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 d-none">
<Form.Group as={Row} className="mb-3">
<Form.Label column sm={3}>
정렬
</Form.Label>
@ -121,7 +120,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 = "경로를 입력해주세요.")
@NotBlank(message = "메뉴URI를 입력해주세요.")
private String menuUrl;
@Column(name = "menu_type_cd")
@NotBlank(message = "타입을 선택해주세요.")

View File

@ -78,7 +78,6 @@
</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_type_cd desc, menu_id asc
order by menu_id asc
</select>
<select id="selectMenuAuthList" resultType="TcMenu">