hmkim 04-11
Merge branch 'master' of http://210.180.118.83/jhpark/cms_frontend
@b19767f6dfdd90a92932f36968de6efee5840fb8
client/resources/scss/common/component/_pagination.scss
--- client/resources/scss/common/component/_pagination.scss
+++ client/resources/scss/common/component/_pagination.scss
@@ -8,6 +8,8 @@
         border: 1px solid var(--tk-gray-30);
         border-radius: var(--tk-rd-10);
         margin: 0 .5rem;
+        cursor: pointer;
+        user-select: none;
 
         &.active{
             background-color: var(--tk-main-50);
client/views/pages/adm/authority/menuAuthority/MenuAuthority.vue
--- client/views/pages/adm/authority/menuAuthority/MenuAuthority.vue
+++ client/views/pages/adm/authority/menuAuthority/MenuAuthority.vue
@@ -142,6 +142,7 @@
               });
               this.authorList = newData;
             }
+            this.fnViewDetail(newData[0].id); // 메뉴 최상단 권한 조회
           }
         }
       } catch (error) {
client/views/pages/adm/departmentManagement/DepartmentManagement.vue
--- client/views/pages/adm/departmentManagement/DepartmentManagement.vue
+++ client/views/pages/adm/departmentManagement/DepartmentManagement.vue
@@ -245,6 +245,9 @@
         const res = await findAll();
         if (res.status == 200) {
           this.deptList = res.data.data.hierachyList; // 부서 목록
+          if(this.deptList.length > 0) {
+            this.fnViewDetail(this.deptList[0].id); // 부서 최상단 조회
+          }
           this.authList = res.data.data.authList; // 권한 목록
           this.newDept = res.data.data.newDept; // 부서 빈 객체
           this.newDept.useYn = "Y";
client/views/pages/adm/main/Main.vue
--- client/views/pages/adm/main/Main.vue
+++ client/views/pages/adm/main/Main.vue
@@ -154,7 +154,7 @@
         if (response.data.data.popupMng.length > 0) {
           this.tbody = [];
           this.tbody = this.popupList.map((popup, idx) => ({
-            id: 5 - idx,
+            id: idx + (this.popupList.length - (2 * idx)),
             popupTtl: popup.popupTtl,
             useYn:
               popup.popupUseYn == "Y"
@@ -172,7 +172,7 @@
         if (response.data.data.bbsCnNew.length > 0) {
           this.tbody2 = [];
           this.tbody2 = this.bbsCnList.map((bbs, idx) => ({
-            id: 5 - idx,
+            id: idx + (this.bbsCnList.length - (2 * idx)),
             ttl:
               bbs.type == "faq"
                 ? this.fnFindBbsTitle(bbs)
client/views/pages/adm/menuManagement/menuManagement/MenuManagement.vue
--- client/views/pages/adm/menuManagement/menuManagement/MenuManagement.vue
+++ client/views/pages/adm/menuManagement/menuManagement/MenuManagement.vue
@@ -378,6 +378,9 @@
         const res = await menuFindAll();
         if (res.status == 200) {
           this.menuList = res.data.data.hierachyList; // 메뉴 목록
+          if (this.menuList.length > 0) {
+            this.fnViewDetail(this.menuList[0].id); // 최상위 메뉴 조회
+          }
           this.codeList = res.data.data.codeList; // 메뉴 타입 목록
           this.newMenu = res.data.data.newMenu; // 메뉴 빈 객체
           this.newMenu.useYn = "Y";
client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
--- client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
+++ client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
@@ -136,6 +136,9 @@
         const res = await findAll();
         if (res.status == 200) {
           this.codeList = res.data.data.hierachyList;
+          if(this.codeList.length > 0) {
+            this.fnViewDetail(this.codeList[0].id);
+          }
           this.newCode = res.data.data.newCode;
           this.newCode.useYn = "Y";
         }
@@ -206,15 +209,26 @@
     },
     // 최상위 신규 객체 생성
     topAdd() {
+      if (this.selectedCd != null) {
+        if (!confirm("작성 중인 공통코드정보는 저장되지 않습니다.\n계속 하시겠습니까?")) {
+          return;
+        }
+      }
+      this.selectedCd = null; // 선택된 코드 초기화
       this.viewCode = JSON.parse(JSON.stringify(this.newCode));
       this.originCode = this.viewCode.cd;
       this.submitStts = true;
     },
     // 하위 신규 객체 생성
     subAdd() {
-      if (Object.keys(this.viewCode).length === 0) {
+      // if (Object.keys(this.viewCode).length === 0) {
+      if (this.selectedCd == null) {
         alert("상위 코드를 지정해주세요.");
         return;
+      } else {
+        if (!confirm("작성 중인 공통코드정보는 저장되지 않습니다.\n계속 하시겠습니까?")) {
+          return;
+        }
       }
       const upCd = this.viewCode.cd;
       const upCdNm = this.viewCode.cdNm;
@@ -253,10 +267,14 @@
     // axios: 목록 수정
     async fnListUpdate() {
       try {
+        if (!confirm("공통코드 목록을 저장하시겠습니까?\n 작성 중인 공통코드정보는 저장되지 않습니다.")) {
+          return;
+        }
         const res = await updateListProc(this.codeList);
         alert(res.data.message);
         if (res.status == 200) {
           this.findAll();
+          this.findByCd();
         }
       } catch (error) {
         alert(error.res.data.message);
Add a comment
List