메뉴관리 작업중.
parent
a74da82d17
commit
2556628890
|
|
@ -169,6 +169,28 @@
|
|||
.userList .result .list_item > div:nth-child(6) {width: 100px;}
|
||||
.userList .result .list_item > div:nth-child(7) {width: 100px;}
|
||||
|
||||
/* 사이트관리 > 환경설정 > 메뉴관리 */
|
||||
.menuList .head > span:nth-child(1) {width: 60px;}
|
||||
.menuList .head > span:nth-child(2) {width: 100px;}
|
||||
.menuList .head > span:nth-child(3) {width: 100px;}
|
||||
.menuList .head > span:nth-child(4) {width: 120px;}
|
||||
.menuList .head > span:nth-child(5) {width: 100px;}
|
||||
.menuList .head > span:nth-child(6) {width: 100px;}
|
||||
.menuList .head > span:nth-child(7) {width: 100px;}
|
||||
.menuList .head > span:nth-child(8) {width: 100px;}
|
||||
.menuList .head > span:nth-child(9) {width: 100px;}
|
||||
.menuList .head > span:nth-child(10) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(1) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(2) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(3) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(4) {width: 120px;}
|
||||
.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(7) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(8) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(9) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(10) {width: 100px;}
|
||||
|
||||
/* 사이트소개 */
|
||||
.SITE_INTRO .ds_1 .t_1 {margin-top: 52px; color: #000; font-size: 26px; font-weight: 500; text-align: center;}
|
||||
.SITE_INTRO .ds_1 .li_1 {position: relative; margin-top: 34px; font-size: 0; text-align: center;}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,54 @@
|
|||
import React from 'react';
|
||||
import React, {useCallback, useEffect, useState} from 'react';
|
||||
import {Link} from "react-router-dom";
|
||||
import URL from "constants/url";
|
||||
|
||||
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
||||
|
||||
|
||||
function MenuMgt(props) {
|
||||
function MenuMgt({}) {
|
||||
|
||||
return (
|
||||
<div className="container">
|
||||
MenuMgt
|
||||
<div className="c_wrap">
|
||||
<div className="location">
|
||||
<ul>
|
||||
<li><Link to={URL.MAIN} className="home">Home</Link></li>
|
||||
<li>사이트관리</li>
|
||||
<li>환경설정</li>
|
||||
<li><Link to={URL.ADMIN__USERS__LIST}>메뉴 관리</Link></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className="layout">
|
||||
{/* <!-- Navigation --> */}
|
||||
<EgovLeftNav/>
|
||||
<div className="contents NOTICE_LIST" id="contents">
|
||||
{/* <!-- 본문 --> */}
|
||||
|
||||
<div className="top_tit">
|
||||
<h1 className="tit_1">메뉴 관리</h1>
|
||||
</div>
|
||||
<h2 className="tit_2"></h2>
|
||||
|
||||
<div className="board_list menuList">
|
||||
<div className="head">
|
||||
<span>아이디</span>
|
||||
<span>이름</span>
|
||||
<span>그룹</span>
|
||||
<span>레벨</span>
|
||||
<span>정렬</span>
|
||||
<span>URI</span>
|
||||
<span>타입</span>
|
||||
<span>CSS</span>
|
||||
<span>IMG</span>
|
||||
<span>삭제</span>
|
||||
</div>
|
||||
<div className="result">
|
||||
{/*{listTag}*/}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public class AdminConfigController extends BaseController {
|
|||
public ResultVO getCodeGrp() throws Exception{
|
||||
ResultVO resultVO = new ResultVO();
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("codeGrpList", adminConfigService.selectCodeGrpList());
|
||||
resultMap.put("codeGrpList", adminConfigService.selectCodeGrpList());
|
||||
resultVO.setResult(resultMap);
|
||||
return resultVO;
|
||||
}
|
||||
|
|
@ -215,4 +215,21 @@ public class AdminConfigController extends BaseController {
|
|||
return resultVO;
|
||||
}
|
||||
|
||||
@Operation(
|
||||
summary = "메뉴 조회",
|
||||
description = "메뉴 조회",
|
||||
tags = {"AdminConfigController"}
|
||||
)
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(responseCode = "200", description = "조회 성공"),
|
||||
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
|
||||
})
|
||||
@RequestMapping(method = RequestMethod.GET, value = "/menu-mgt")
|
||||
public ResultVO getMenuMgt(){
|
||||
ResultVO resultVO = new ResultVO();
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("menuList", adminConfigService.selectMenuList());
|
||||
resultVO.setResult(resultMap);
|
||||
return resultVO;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,53 @@
|
|||
package com.dbnt.kcscbackend.admin.config.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@NoArgsConstructor
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@Table(name = "tc_menu")
|
||||
public class TcMenu {
|
||||
@Id
|
||||
@Column(name = "menu_id")
|
||||
private String menuId;
|
||||
@Column(name = "role_grp_id")
|
||||
private String roleGrpId;
|
||||
@Column(name = "menu_title")
|
||||
private String menuTitle;
|
||||
@Column(name = "menu_group")
|
||||
private String menuGroup;
|
||||
@Column(name = "menu_level")
|
||||
private String menuLevel;
|
||||
@Column(name = "menu_sort")
|
||||
private String menuSort;
|
||||
@Column(name = "menu_url")
|
||||
private String menuUrl;
|
||||
@Column(name = "menu_type_cd")
|
||||
private String menuTypeCd;
|
||||
@Column(name = "frst_crt_id")
|
||||
private String frstCrtId;
|
||||
@Column(name = "frst_crt_dt")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime frstCrtDt;
|
||||
@Column(name = "last_chg_id")
|
||||
private String lastChgId;
|
||||
@Column(name = "last_chg_dt")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime lastChgDt;
|
||||
@Column(name = "use_yn")
|
||||
private String useYn;
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package com.dbnt.kcscbackend.admin.config.repository;
|
||||
|
||||
import com.dbnt.kcscbackend.admin.config.entity.TcMenu;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TcMenuRepository extends JpaRepository<TcMenu, String> {
|
||||
List<TcMenu> findByUseYnOrderByMenuIdAsc(String useYn);
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package com.dbnt.kcscbackend.admin.config.service;
|
||||
|
||||
import com.dbnt.kcscbackend.admin.config.entity.TcMenu;
|
||||
import com.dbnt.kcscbackend.admin.config.repository.TcMenuRepository;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TcCodeGrp;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||
import com.dbnt.kcscbackend.commonCode.repository.TcCodeGrpRepository;
|
||||
|
|
@ -17,6 +19,7 @@ public class AdminConfigService extends EgovAbstractServiceImpl {
|
|||
|
||||
private final TcCodeGrpRepository codeGrpRepository;
|
||||
private final TcCodeItemRepository codeItemRepository;
|
||||
private final TcMenuRepository menuRepository;
|
||||
|
||||
public List<TcCodeGrp> selectCodeGrpList(){
|
||||
return codeGrpRepository.findByUseYn("Y");
|
||||
|
|
@ -95,4 +98,8 @@ public class AdminConfigService extends EgovAbstractServiceImpl {
|
|||
return "validGrpCd";
|
||||
}
|
||||
}
|
||||
|
||||
public List<TcMenu> selectMenuList() {
|
||||
return menuRepository.findByUseYnOrderByMenuIdAsc("Y");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue