하석형 하석형 05-19
250519 하석형 콘텐츠유형관리 등록/수정 시 중복 검사
@89c8213d7f79f7487c7f6f5dc0840c2517342a99
client/views/pages/adm/departmentManagement/DepartmentManagement.vue
--- client/views/pages/adm/departmentManagement/DepartmentManagement.vue
+++ client/views/pages/adm/departmentManagement/DepartmentManagement.vue
@@ -240,10 +240,10 @@
       // 페이지 권한 객체
   //    pageAuth: JSON.parse(localStorage.getItem("vuex")).pageAuth,
 
-      colgroup: ["5%", "15%", "20%", "20%", "20%"], // 부서관련 등록된 사용자 테이블 생성
+      colgroup: ["10%", "20%", "20%", "25%", "25%"], // 부서관련 등록된 사용자 테이블 생성
       thead: ["선택", "아이디", "이름", "연락처", "이메일"], // 부서관련 등록된 사용자 테이블 생성
       tbody: [],
-      mbrColgroup: ["20%", "20%", "20%", "20%", "20%"], // 부서관련 등록할 사용자 테이블 생성
+      mbrColgroup: ["10%", "20%", "20%", "25%", "25%"], // 부서관련 등록할 사용자 테이블 생성
       mbrThead: ["선택", "아이디", "이름", "연락처", "이메일"], // 부서관련 등록할 사용자 테이블 생성
       mbrTbody: [],
       iconPath: 'ico_team',
client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementInsert.vue
--- client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementInsert.vue
+++ client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementInsert.vue
@@ -203,29 +203,33 @@
       }
 
       // 콘텐츠 영문명
-      if (this.isEmpty(this.contsTypeVO.contsEngNm)) {
+      let contsEngNm = this.contsTypeVO.contsEngNm?.trim();
+      if (this.isEmpty(contsEngNm)) {
         alert("콘텐츠 영문명을 입력하세요.");
         this.$refs.contsEngNm.focus();
         return false;
       }
+      this.contsTypeVO.contsEngNm = contsEngNm;
 
       // 관리자 PATH 혹은 사용자 PATH 중 최소 1개 이상 작성 여부
-      let mngrPageCrs = this.isEmpty(this.contsTypeVO.mngrPageCrs);
-      let pageCrs = this.isEmpty(this.contsTypeVO.pageCrs);
-      if (mngrPageCrs && pageCrs) {
+      let mngrPageCrs = this.contsTypeVO.mngrPageCrs?.trim();
+      let pageCrs = this.contsTypeVO.pageCrs?.trim();
+      if (this.isEmpty(mngrPageCrs) && this.isEmpty(pageCrs)) {
         alert("관리자 PATH 혹은 사용자 PATH를 입력하세요.");
         return false;
       }
+      this.contsTypeVO.mngrPageCrs = mngrPageCrs;
+      this.contsTypeVO.pageCrs = pageCrs;
 
       const pageCrsRegex = /^\/(?:[a-zA-Z0-9_\-]+\/)*[a-zA-Z0-9_\-]+\.[a-zA-Z0-9]+$/;
-      if (!mngrPageCrs) {
+      if (!this.isEmpty(mngrPageCrs)) {
         if (!pageCrsRegex.test(this.contsTypeVO.mngrPageCrs)) {
           alert("관리자 PATH는 /로 시작하고, 마지막에 확장자가 포함되어야 합니다.");
           this.$refs.mngrPageCrs.focus();
           return false;
         }
       }
-      if (!pageCrs) {
+      if (!this.isEmpty(pageCrs)) {
         if (!pageCrsRegex.test(this.contsTypeVO.pageCrs)) {
           alert("사용자 PATH는 /로 시작하고, 마지막에 확장자가 포함되어야 합니다.");
           this.$refs.pageCrs.focus();
@@ -234,11 +238,13 @@
       }
 
       // COMPONENT_URL
-      if (this.isEmpty(this.contsTypeVO.compnCrs)) {
+      let compnCrs = this.contsTypeVO.compnCrs?.trim();
+      if (this.isEmpty(compnCrs)) {
         alert("COMPONENT_URL을 입력하세요.");
         this.$refs.compnCrs.focus();
         return false;
       }
+      this.contsTypeVO.compnCrs = compnCrs;
 
       // 메뉴노출
       if (this.isEmpty(this.contsTypeVO.expsrYn)) {
Add a comment
List