김성원 김성원 2023-07-31
화면수정
@e6e6599d735044ecb889d152be2e2602c7b283ea
client/views/index.html
--- client/views/index.html
+++ client/views/index.html
@@ -14,7 +14,7 @@
     <link rel="stylesheet" href="/client/resources/css/main.css" />
     <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol/dist/ol.css" /> -->
 
-    <title>Node Vue Web</title>
+    <title>AI 횡단보도 API 관리 시스템</title>
 </head>
 
 <body>
client/views/pages/SystemManagement/ApiTokenManagement.vue
--- client/views/pages/SystemManagement/ApiTokenManagement.vue
+++ client/views/pages/SystemManagement/ApiTokenManagement.vue
@@ -303,7 +303,7 @@
 }
 
 .select_row{
-    background: #cd7d09 !important;
+    background: #ffbe5f !important;
     color: white;
 }
 
client/views/pages/SystemManagement/RequestLogView.vue
--- client/views/pages/SystemManagement/RequestLogView.vue
+++ client/views/pages/SystemManagement/RequestLogView.vue
@@ -38,8 +38,8 @@
             <col style="width: 10%;">
             <col style="width: 10%;">
             <col style="width: 15%;">           
-            <col style="width: 40%;">
-          
+            <col style="width: 20%;">
+            <col style="width: 20%;">          
           </colgroup>
           <thead>
             <tr>
@@ -49,17 +49,18 @@
               <th>오류발생여부</th>
               <th>호출시간</th>
               <th>메세지</th>
-             
+              <th>접속IP</th>             
             </tr>
           </thead>
           <tbody>            
-            <tr v-for="(item, idx) in apiLogList" :key="idx">
+            <tr v-for="(item, idx) in apiLogList" :key="idx"  @click="selectApiLog = item"  v-bind:class="{'select_row' : (item.call_dt == selectApiLog.call_dt) }">
               <td data-title="NO">{{ pagenation.totalRow -  ((pagenation.currentPage ) * pagenation.perPage) + ( pagenation.perPage - idx) }}</td>
               <td data-title="ID">{{ item.node_id }}({{change_code(item.crslk_az)}})</td>
               <td data-title="이름">{{ item.user_nm }}</td>
               <td data-title="오류발생여부">{{ item.err_yn }}</td>
               <td data-titel="호출시간">{{ item.call_dt}}</td>
               <td data-title="메세지">{{ item.msg }}</td>           
+              <td data-title="접속IP">{{ item.cntn_ip }}</td>         
             </tr>
             <tr v-if="apiLogList.length == 0">
                  <td data-title="NO" colspan="6">조회된 데이터가 없습니다.</td>
@@ -72,6 +73,42 @@
           v-model:currentPage="pagenation.currentPage"
           :per-page="pagenation.perPage" :total-count="pagenation.totalRow" :max-range="5"
           :click="search" />        
+      </div>
+
+      <div>
+        <div class="sub-title-wrap" style="margin-bottom: 30px;">
+          <h3 class="sub-title">로그 상세정보 </h3>       
+        </div>
+        <div >
+          <table>
+            <colgroup>
+              <col style="width: 25%;">
+              <col style="width: 25%;">
+              <col style="width: 25%;">
+              <col style="width: 25%;">            
+            </colgroup>
+            <tbody><div class=""></div>
+              <tr>
+                <th >노드</th>
+                <td>{{ selectApiLog.node_id }}({{change_code(selectApiLog.crslk_az)}})</td>
+                <th>업체명</th>
+                <td>{{ selectApiLog.user_nm }}</td>
+              </tr>
+              <tr>
+                <th>오류발생여부</th>
+                <td>{{ selectApiLog.err_yn }}</td> 
+                <th>호출시간</th>
+                <td>{{ selectApiLog.call_dt}}</td>            
+              </tr>
+              <tr>
+                <th>메세지</th>           
+                <td>{{ selectApiLog.msg }}</td>
+                <th>수신내용</th>
+                <td>{{ selectApiLog.contents }}</td>
+              </tr>           
+            </tbody>
+          </table>
+        </div>     
       </div>
     </div>
   </div>
@@ -102,6 +139,7 @@
         msg : '',
       },      
       apiLogList: [],
+      selectApiLog : {},
       userIdx: 0
     };
   },
@@ -357,4 +395,9 @@
   top: 1.5em;
   z-index: 10;
 }
+
+.select_row{
+    background: #ffbe5f !important;
+    color: white;
+}
 </style>
(No newline at end of file)
client/views/pages/SystemManagement/ResponseLogView.vue
--- client/views/pages/SystemManagement/ResponseLogView.vue
+++ client/views/pages/SystemManagement/ResponseLogView.vue
@@ -52,7 +52,7 @@
             </tr>
           </thead>
           <tbody>            
-            <tr v-for="(item, idx) in apiLogList" :key="idx">
+            <tr v-for="(item, idx) in apiLogList" :key="idx" @click="selectApiLog = item"  v-bind:class="{'select_row' : (item.call_dt == selectApiLog.call_dt) }">
               <td data-title="NO">{{ pagenation.totalRow -  ((pagenation.currentPage ) * pagenation.perPage) + ( pagenation.perPage - idx) }}</td>
               <td data-title="ID">{{ item.node_id }}({{change_code(item.crslk_az)}})</td>
               <td data-title="이름">{{ item.user_nm }}</td>
@@ -71,6 +71,41 @@
           v-model:currentPage="pagenation.currentPage"
           :per-page="pagenation.perPage" :total-count="pagenation.totalRow" :max-range="5"
           :click="search" />        
+      </div>
+      <div>
+        <div class="sub-title-wrap" style="margin-bottom: 30px;">
+          <h3 class="sub-title">로그 상세정보 </h3>       
+        </div>
+        <div >
+          <table>
+            <colgroup>
+              <col style="width: 25%;">
+              <col style="width: 25%;">
+              <col style="width: 25%;">
+              <col style="width: 25%;">            
+            </colgroup>
+            <tbody><div class=""></div>
+              <tr>
+                <th >노드</th>
+                <td>{{ selectApiLog.node_id }}({{change_code(selectApiLog.crslk_az)}})</td>
+                <th>업체명</th>
+                <td>{{ selectApiLog.user_nm }}</td>
+              </tr>
+              <tr>
+                <th>오류발생여부</th>
+                <td>{{ selectApiLog.err_yn }}</td> 
+                <th>호출시간</th>
+                <td>{{ selectApiLog.call_dt}}</td>            
+              </tr>
+              <tr>
+                <th>메세지</th>           
+                <td>{{ selectApiLog.msg }}</td>
+                <th>수신내용</th>
+                <td>{{ selectApiLog.contents }}</td>
+              </tr>           
+            </tbody>
+          </table>
+        </div>     
       </div>
     </div>
   </div>
@@ -101,6 +136,7 @@
         msg : '',
       },      
       apiLogList: [],
+      selectApiLog : {},
       userIdx: 0
     };
   },
@@ -356,4 +392,9 @@
   top: 1.5em;
   z-index: 10;
 }
+
+.select_row{
+    background: #ffbe5f !important;
+    color: white;
+}
 </style>
(No newline at end of file)
Add a comment
List