From 94aff6bed973fc85991ab745cc4367046b55844c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Mon, 4 Mar 2024 17:17:07 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A9=94=EB=89=B4=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EC=9A=94=EC=B2=AD=EC=82=AC=ED=95=AD=20=EB=B0=98=EC=98=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/css/page.css | 24 ++++++++---------- .../src/pages/admin/config/MenuMgt.jsx | 10 +++----- .../pages/admin/config/menuMgt/MenuModal.jsx | 25 ++++++++++--------- .../admin/config/entity/TcMenu.java | 2 +- .../mybatisMapper/StandardCodeMapper.xml | 1 + .../resources/mybatisMapper/TcMenuMapper.xml | 2 +- 6 files changed, 29 insertions(+), 35 deletions(-) diff --git a/egovframe-template-simple-react-contribution/src/css/page.css b/egovframe-template-simple-react-contribution/src/css/page.css index c993903..8e59358 100644 --- a/egovframe-template-simple-react-contribution/src/css/page.css +++ b/egovframe-template-simple-react-contribution/src/css/page.css @@ -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;} diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/config/MenuMgt.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/config/MenuMgt.jsx index 78d62b7..a0ac340 100644 --- a/egovframe-template-simple-react-contribution/src/pages/admin/config/MenuMgt.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/admin/config/MenuMgt.jsx @@ -33,11 +33,9 @@ function MenuMgt({}) { resp.result.menuList.forEach(function (item, index) { mutListTag.push(
+
{item.menuGroup?'└':''}
{item.menuId}
{item.menuTitle}
-
{item.menuGroup}
-
{item.menuLevel}
-
{item.menuSort}
{item.menuUrl}
{item.menuTypeValue}
@@ -88,12 +86,10 @@ function MenuMgt({}) {
+ 그룹 코드 메뉴 코드 메뉴 이름 - 부모 메뉴 - 레벨 - 정렬 - URI + 경로 타입 diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/config/menuMgt/MenuModal.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/config/menuMgt/MenuModal.jsx index 55087f8..f5d370b 100644 --- a/egovframe-template-simple-react-contribution/src/pages/admin/config/menuMgt/MenuModal.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/admin/config/menuMgt/MenuModal.jsx @@ -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}){
{editMenu(e)}} noValidate> + + + 그룹 코드 + + + + + 메뉴 코드 @@ -94,15 +103,7 @@ function MenuModal({savedInfo, reloadFunction}){ - - - 부모 메뉴 - - - - - - + 레벨 @@ -110,7 +111,7 @@ function MenuModal({savedInfo, reloadFunction}){ - + 정렬 @@ -120,7 +121,7 @@ function MenuModal({savedInfo, reloadFunction}){ - URI + 경로 diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/config/entity/TcMenu.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/config/entity/TcMenu.java index 0a65294..a310df2 100644 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/config/entity/TcMenu.java +++ b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/config/entity/TcMenu.java @@ -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 = "타입을 선택해주세요.") diff --git a/kcsc-back-end/src/main/resources/mybatisMapper/StandardCodeMapper.xml b/kcsc-back-end/src/main/resources/mybatisMapper/StandardCodeMapper.xml index 7e8acab..731e4a6 100644 --- a/kcsc-back-end/src/main/resources/mybatisMapper/StandardCodeMapper.xml +++ b/kcsc-back-end/src/main/resources/mybatisMapper/StandardCodeMapper.xml @@ -78,6 +78,7 @@ and b.group_type = 'D' + order by doc_yr asc