yjryu / KERIS star
kimgkdud898 2023-11-17
231117김하영
@87cc70b0c5db270febc6f468ecc3e69bfecc930d
client/resources/css/Main.css
--- client/resources/css/Main.css
+++ client/resources/css/Main.css
@@ -1124,6 +1124,7 @@
 
 .data-bos-btn1 p {
   color: #014099;
+  text-align: left;
 }
 
 .data-bos-btn2 p {
client/resources/css/responsive.css
--- client/resources/css/responsive.css
+++ client/resources/css/responsive.css
@@ -45,7 +45,7 @@
     /* padding-left: 5/0%; */
   }
 
-  td:before {
+  .list-table td:before {
     position: absolute;
     top: 6px;
     left: 6px;
@@ -56,22 +56,22 @@
     white-space: nowrap;
   }
 
-  td:nth-of-type(1):before {
+  .list-table td:nth-of-type(1):before {
     content: "NO";
   }
-  td:nth-of-type(2):before {
+  .list-table td:nth-of-type(2):before {
     content: "카테고리";
   }
-  td:nth-of-type(3):before {
+  .list-table td:nth-of-type(3):before {
     content: "제목";
   }
-  td:nth-of-type(4):before {
+  .list-table td:nth-of-type(4):before {
     content: "작성자";
   }
-  td:nth-of-type(5):before {
+  .list-table td:nth-of-type(5):before {
     content: "작성일자";
   }
-  td:nth-of-type(6):before {
+  .list-table td:nth-of-type(6):before {
     content: "조회수";
   }
   .data-table-tr td:nth-child(2) {
@@ -273,6 +273,7 @@
   .tech-box-sec-h3 h3 {
     font-size: 1.5rem;
   }
+
   /* 자료집 */
   .data-banner {
     grid-template-columns: 1fr;
@@ -294,6 +295,9 @@
   .data-bos-btn3 {
     padding: 1rem;
     background: none;
+  }
+  .data-bos-btn1 p {
+    text-align: center;
   }
   .data-bos-btn1::after,
   .data-bos-btn2::after,
@@ -468,19 +472,19 @@
     grid-template-columns: 1fr;
   }
 
-  td:nth-of-type(1):before {
+  .list-table td:nth-of-type(1):before {
     content: "NO";
   }
-  td:nth-of-type(2):before {
+  .list-table td:nth-of-type(2):before {
     content: "제목";
   }
-  td:nth-of-type(3):before {
+  .list-table td:nth-of-type(3):before {
     content: "작성자";
   }
-  td:nth-of-type(4):before {
+  .list-table td:nth-of-type(4):before {
     content: "작성일자";
   }
-  td:nth-of-type(5):before {
+  .list-table td:nth-of-type(5):before {
     content: "조회수";
   }
   /* 회원정보 */
@@ -772,7 +776,7 @@
     /* padding-left: 5/0%; */
   }
 
-  td:before {
+  .list-table td:before {
     position: absolute;
     top: 6px;
     left: 6px;
@@ -783,19 +787,19 @@
     white-space: nowrap;
   }
 
-  td:nth-of-type(1):before {
+  .list-table td:nth-of-type(1):before {
     content: "NO";
   }
-  td:nth-of-type(2):before {
+  .list-table td:nth-of-type(2):before {
     content: "제목";
   }
-  td:nth-of-type(3):before {
+  .list-table td:nth-of-type(3):before {
     content: "작성자";
   }
-  td:nth-of-type(4):before {
+  .list-table td:nth-of-type(4):before {
     content: "작성일자";
   }
-  td:nth-of-type(5):before {
+  .list-table td:nth-of-type(5):before {
     content: "조회수";
   }
   .data-table-tr td:nth-child(2) {
@@ -1121,6 +1125,11 @@
   .main-notice-top2 {
     width: 200px;
   }
+
+  .board-title {
+    width: 100%;
+    text-align: right;
+  }
 }
 
 @media all and (min-width: 767px) and (max-width: 1023px) {
@@ -1170,7 +1179,7 @@
     /* padding-left: 5/0%; */
   }
 
-  td:before {
+  .list-table td:before {
     position: absolute;
     top: 6px;
     left: 6px;
@@ -1181,19 +1190,19 @@
     white-space: nowrap;
   }
 
-  td:nth-of-type(1):before {
+  .list-table td:nth-of-type(1):before {
     content: "NO";
   }
-  td:nth-of-type(2):before {
+  .list-table td:nth-of-type(2):before {
     content: "제목";
   }
-  td:nth-of-type(3):before {
+  .list-table td:nth-of-type(3):before {
     content: "작성자";
   }
-  td:nth-of-type(4):before {
+  .list-table td:nth-of-type(4):before {
     content: "작성일자";
   }
-  td:nth-of-type(5):before {
+  .list-table td:nth-of-type(5):before {
     content: "조회수";
   }
   .data-table-tr td:nth-child(2) {
@@ -1374,6 +1383,10 @@
   .main-notice-top2 {
     width: 200px;
   }
+  .board-title {
+    width: 100%;
+    text-align: right;
+  }
 }
 /* 노트북 */
 @media all and (min-width: 1024px) and (max-width: 1366px) {
client/views/pages/user/Data/Data.vue
--- client/views/pages/user/Data/Data.vue
+++ client/views/pages/user/Data/Data.vue
@@ -62,7 +62,7 @@
                         </div>
                     </div>
                     <div class="data-table-tr">
-                        <table>
+                        <table class="list-table">
                             <th style="width:5%">no</th>
                             <th style="width:15%">카테고리</th>
                             <th style="width:45%">제목</th>
@@ -74,7 +74,9 @@
                                 <td v-if="item.ctgry_nm === 'policy'"><span class="category-zone">정책자료</span></td>
                                 <td v-else-if="item.ctgry_nm === 'research'"><span class="category-zone">연구자료</span></td>
                                 <td v-else><span class="category-zone">가이드라인</span></td>
-                                <td><p class="board-title">{{ item.post_title }}</p></td>
+                                <td>
+                                    <p class="board-title">{{ item.post_title }}</p>
+                                </td>
                                 <td>{{ item.rgtr_id }}</td>
                                 <td>{{ yyyymmdd(item.reg_dt) }}</td>
                                 <td>{{ item.view_cnt }}</td>
@@ -193,8 +195,8 @@
             return COMMON_UTIL.yyyymmdd(date);
         },
 
-         //게시글 상세조회 페이지로 이동
-         postSelectOnePage: function (item) {
+        //게시글 상세조회 페이지로 이동
+        postSelectOnePage: function (item) {
             const vm = this;
 
             axios({
@@ -205,12 +207,12 @@
                 },
                 data: { 'post_id': item.post_id, 'bbs_id': item.bbs_id }
             }).then(function (response) {
-                if(response.data > 0 ) {
+                if (response.data > 0) {
                     vm.$router.push({ path: '/DataDtali.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } });
                 } else {
                     alert("자료집 상세보기 오류")
                 }
-                
+
             }).catch(function (error) {
                 alert("자료집 상세보기 오류, 관리자에게 문의바랍니다.");
             })
@@ -226,7 +228,7 @@
         PaginationButton: PaginationButton,
     },
     created() {
-        if(this.route.query.type != undefined) {
+        if (this.route.query.type != undefined) {
             this.buttons[2].clicked = true;
             this.categoryName = '가이드라인'
             this.postListSearch.ctgry_nm = 'guide'
client/views/pages/user/community/Notice.vue
--- client/views/pages/user/community/Notice.vue
+++ client/views/pages/user/community/Notice.vue
@@ -22,7 +22,7 @@
                 </div>
                 <div class="noti-sec">
                     <div class="noti-sec-table">
-                        <table>
+                        <table class="list-table">
                             <th style="width:5%">no</th>
                             <th style="width:55%">제목</th>
                             <th style="width:10%">작성자</th>
@@ -30,7 +30,9 @@
                             <th style="width:10%">조회수</th>
                             <tr v-for="(item, idx) in postList" :key="idx" @click="postSelectOnePage(item)">
                                 <td>{{ postIdx - idx }}</td>
-                                <td><p class="board-title">{{ item.post_title }}</p></td>
+                                <td>
+                                    <p class="board-title">{{ item.post_title }}</p>
+                                </td>
                                 <td>{{ item.rgtr_id }}</td>
                                 <td>{{ yyyymmdd(item.reg_dt) }}</td>
                                 <td>{{ item.view_cnt }}</td>
client/views/pages/user/community/Wgcommunity.vue
--- client/views/pages/user/community/Wgcommunity.vue
+++ client/views/pages/user/community/Wgcommunity.vue
@@ -176,16 +176,16 @@
                 },
                 data: { 'post_id': item.post_id, 'bbs_id': item.bbs_id }
             }).then(function (response) {
-                if(response.data > 0 ){
+                if (response.data > 0) {
                     vm.$router.push({ path: '/WgcommunityOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } });
                 } else {
                     alert("전문가 협의체 상세보기 오류")
                 }
-                
+
             }).catch(function (error) {
                 alert("전문가 협의체 상세보기 오류, 관리자에게 문의바랍니다.");
             })
-            
+
         },
     },
     components: {
Add a comment
List