최정임 최정임 2023-06-13
230613 최정임 css수정
@b136685ba8243dc4385af08a880ea2c26273a6da
client/resources/css/main.css
--- client/resources/css/main.css
+++ client/resources/css/main.css
@@ -1,5 +1,5 @@
 /* 현황관제 */
-.search{ height: inherit; width: 330px; background: #eaebec;}
+.search{ height: inherit; width: 330px; }
 .search label{width: max-content; font-size: 14px;}
 .search p{font-size: 14px;}
 .search select{width: 20rem;}
@@ -19,13 +19,12 @@
 .iconlist li:nth-child(2) div{background-image: url(../images/icon/Signalextensiongray.png);}
 .iconlist li:nth-child(2).active div{background-image: url(../images/icon/Signalextensiongreen.png);}
 
-.top{position: absolute; z-index: 100; background: #fff; top: 0;}
+.top{position: absolute; z-index: 100; background: #fff; top: 0; width: -webkit-fill-available;}
 .top p {
     font-size: 15px;
   }
   .top ul {
     padding: 1rem 0;
-    width: 153rem;
   }
   .top li {
     width: calc(100% / 6);
client/views/component/map/map.vue
--- client/views/component/map/map.vue
+++ client/views/component/map/map.vue
@@ -25,8 +25,8 @@
       this.map = new Map({
         target: this.$refs.map,
         view: new View({
-            center: fromLonLat([126.9784, 37.5665]), // Centered around Seoul, Korea
-          zoom: 8,
+            center: fromLonLat([128.55917070703123, 35.87169009414457]), // 대구광역시 서구청
+          zoom: 14,
         }),
         layers: [ new TileLayer({
       source: new OSM(),
client/views/index.html
--- client/views/index.html
+++ client/views/index.html
@@ -12,6 +12,8 @@
     <link rel="stylesheet" href="/client/resources/css/layout.css" />
     <link rel="stylesheet" href="/client/resources/css/responsive.css" />
     <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>
 </head>
 
client/views/layout/Header.vue
--- client/views/layout/Header.vue
+++ client/views/layout/Header.vue
@@ -6,23 +6,29 @@
       </router-link>
     </div>
     <div class="header_menu">
-     <nav class="flex">
+      <nav class="flex">
         <router-link to="/Introduction.page">
           <span
             @mouseover="showDropdown = true"
             @mouseleave="showDropdown = false"
             >플랫폼 소개
           </span>
-          <div class=" nav" v-show="showDropdown" @mouseover="showDropdown = true" @mouseleave="showDropdown = false">
-           <div class="menu flex-end">
-              <ul >
+          <div
+            class="nav"
+            v-show="showDropdown"
+            @mouseover="showDropdown = true"
+            @mouseleave="showDropdown = false"
+          >
+            <div class="menu flex-end">
+              <ul>
                 <li
-                
                   v-for="option in dropdownOptions"
                   :key="option.value"
                   @click="navigateToPage(option)"
                 >
-                  <router-link :to="option.route">{{ option.label }}</router-link>
+                  <router-link :to="option.route">{{
+                    option.label
+                  }}</router-link>
                 </li>
               </ul>
               <ul>
@@ -31,41 +37,45 @@
                   :key="option.value"
                   @click="navigateToPage(option)"
                 >
-                  <router-link :to="option.route">{{ option.label }}</router-link>
+                  <router-link :to="option.route">{{
+                    option.label
+                  }}</router-link>
                 </li>
               </ul>
-              <ul
-            >
-              <li
-                v-for="option in dropdownOptions5"
-                :key="option.value"
-                @click="navigateToPage(option)"
-              >
-                <router-link :to="option.route">{{ option.label }}</router-link>
-              </li>
-            </ul>
-            <ul
-            >
-              <li
-                v-for="option in dropdownOptions3"
-                :key="option.value"
-                @click="navigateToPage(option)"
-              >
-                <router-link :to="option.route">{{ option.label }}</router-link>
-              </li>
-            </ul>
-            <ul
-            >
-              <li
-                v-for="option in dropdownOptions4"
-                :key="option.value"
-                @click="navigateToPage(option)"
-              >
-                <router-link :to="option.route">{{ option.label }}</router-link>
-              </li>
-            </ul>
-           </div>
-  
+              <ul>
+                <li
+                  v-for="option in dropdownOptions5"
+                  :key="option.value"
+                  @click="navigateToPage(option)"
+                >
+                  <router-link :to="option.route">{{
+                    option.label
+                  }}</router-link>
+                </li>
+              </ul>
+              <ul>
+                <li
+                  v-for="option in dropdownOptions3"
+                  :key="option.value"
+                  @click="navigateToPage(option)"
+                >
+                  <router-link :to="option.route">{{
+                    option.label
+                  }}</router-link>
+                </li>
+              </ul>
+              <ul>
+                <li
+                  v-for="option in dropdownOptions4"
+                  :key="option.value"
+                  @click="navigateToPage(option)"
+                >
+                  <router-link :to="option.route">{{
+                    option.label
+                  }}</router-link>
+                </li>
+              </ul>
+            </div>
           </div>
         </router-link>
         <router-link to="/RealtimeStatus.page">
@@ -81,7 +91,6 @@
             @mouseleave="showDropdown = false"
             >통계분석
           </span>
-          
         </router-link>
         <router-link to="/CrosswalkInsert.page">
           <span
@@ -89,7 +98,6 @@
             @mouseleave="showDropdown = false"
             >횡단보도 관리</span
           >
-         
         </router-link>
         <router-link to="/UserManagement.page">
           <span
@@ -97,9 +105,8 @@
             @mouseleave="showDropdown = false"
             >시스템 관리</span
           >
-         
         </router-link>
-     </nav>
+      </nav>
       <div class="sub_menu">
         <router-link to="/Mypage.page">
           <span>마이페이지</span>
@@ -239,20 +246,38 @@
 </script>
 
 <style scoped>
-nav a{width: 16rem;  }
-nav span{padding: 2.7rem 0;}
-.menu{ 
-    width: 85rem;
-    margin-left: 77.5rem;
+header{position: relative;}
+nav {
 }
-.nav{position: absolute; background: #ffffff; left: 0;
-    top: 7rem; z-index: 500;    width: 100%;
-    padding: 1rem;}
-ul {width: 16rem;
+nav a {
+  width: 16rem;
+}
+nav span {
+  padding: 2.7rem 0;
+}
+.menu {
+  position: absolute;
+  background: #ffffff;
+  left: 0;
+  top: 0rem;
+  z-index: 500;
+  width: 100%;
+  padding: 1rem 28rem 1rem 1rem;
+}
+.nav {
+  position: absolute;
+  background: #ffffff;
+  left: -148rem;
+  top: 7rem;
+  z-index: 500;
+  width: -webkit-fill-available;
+  padding: 1rem;
+}
+ul {
+  width: 16rem;
 }
 li a {
   color: #7e7e7f;
-
 }
 .logotxt {
   transition: 0.3s;
@@ -266,6 +291,7 @@
 }
 
 .header_menu {
+  
   transition: 0.3s;
   color: #ffffff;
   font-size: 16px;
client/views/pages/Analysis/Analysis.vue
--- client/views/pages/Analysis/Analysis.vue
+++ client/views/pages/Analysis/Analysis.vue
@@ -16,9 +16,9 @@
           </ul>
         </div>
         <div class="search">
-          <h2 style="background: #00b050; ">무단횡단 분석</h2>
+          <h2 style="background: #00b050">무단횡단 분석</h2>
           <h2>지역별</h2>
-          <div class="box ">
+          <div class="box" style="background: #eaebec">
             <div class="flex gap m-b">
               <label style="width: 7rem">분석날짜</label>
               <input type="date" name="" id="" />
@@ -45,21 +45,25 @@
               <label for="">횡단보도</label>
               <select name="" id=""></select>
             </div>
-            <div class="flex-center"><button type="button" class="btn-2 green-btn btn-l">조회</button></div>
+            <div class="flex-center">
+              <button type="button" class="btn-2 green-btn btn-l">조회</button>
+            </div>
           </div>
-          <h2>검색결과</h2>         
+          <h2>검색결과</h2>
           <div class="box bg-white tab-buttons">
-            <h4>총 <em style="color: #13833b;">200</em>건</h4>
-              <ul>                
-                <li class="result">
-                  <h5>1</h5>
-                  <p class="m-b">시도: 대구광역시 서구 평리동</p>
-                  <p class="m-b"><em style="color: #13833b;">장소: 남평리네거리</em></p>
-                  <p class="m-b">X좌표: 00.0000</p>
-                  <p class="m-b">Y좌표: 00.0000</p>
-                  <p class="">무단횡단 수: 120</p>
-                </li>
-              </ul>              
+            <h4>총 <em style="color: #13833b">200</em>건</h4>
+            <ul>
+              <li class="result">
+                <h5>1</h5>
+                <p class="m-b">시도: 대구광역시 서구 평리동</p>
+                <p class="m-b">
+                  <em style="color: #13833b">장소: 남평리네거리</em>
+                </p>
+                <p class="m-b">X좌표: 00.0000</p>
+                <p class="m-b">Y좌표: 00.0000</p>
+                <p class="">무단횡단 수: 120</p>
+              </li>
+            </ul>
           </div>
         </div>
       </div>
@@ -70,25 +74,43 @@
         <button>레이어</button>
         <button>히트맵</button>
       </div>
-      <div><MapPage /></div>
+      <div><MapPage></MapPage></div>
     </div>
     <div class="chart">
-      <h2>보행자 수 대비 무단횡단 수</h2>         
+      <h2>보행자 수 대비 무단횡단 수</h2>
+      <div class=""></div>
+      <h2>무단횡단 비율</h2>
+      <div class="">
+        <h2 style="background: #f7f6f6; color: #333;">시/군/구 별</h2>
+        <div class=""></div>
+        <h2 style="background: #f7f6f6; color: #333;">읍/면/동 별</h2>
+        <div class=""></div>
+      </div>
+      <h2>시/도 전체 시간/요일별 발생현황</h2>         
           <div class="">
           </div>
     </div>
   </div>
 </template>
 <style scoped>
-
-.chart{width: 600px;}
-.chart h2{padding: 0.5rem 0;}
-.search .box ul li {
-    padding: 1rem 1rem 1rem 3rem;
+.chart {
+  width: 600px;
 }
-.result{position: relative;}
-h5{position: absolute;
-left: 0; font-size: 2rem;}
+.chart div{min-height: 17.53rem;}
+.chart h2 {
+  padding: 0.5rem 0;
+}
+.search .box ul li {
+  padding: 1rem 1rem 1rem 3rem;
+}
+.result {
+  position: relative;
+}
+h5 {
+  position: absolute;
+  left: 0;
+  font-size: 2rem;
+}
 .box {
   text-align: left;
 }
@@ -107,8 +129,6 @@
   padding: 1rem;
 }
 .bg-white {
-  min-height: 47.3rem;
-  max-height: 47.3rem;
   overflow: scroll;
   overflow-x: hidden;
 }
@@ -137,9 +157,11 @@
 .right {
   width: -webkit-fill-available;
 }
+.top button.clicked{background: #50ba8a;}
 </style>
 <script>
-import MapPage from "../../component/MapPage.vue";
+import { Map } from "ol";
+import MapPage from "../../component/map/map.vue";
 
 export default {
   data() {
@@ -167,6 +189,7 @@
   },
   components: {
     MapPage: MapPage,
+    Map,
   },
   methods: {
     changeTab(tabId) {
client/views/pages/App.vue
--- client/views/pages/App.vue
+++ client/views/pages/App.vue
@@ -35,7 +35,7 @@
 </script>
 
 <style scoped>
-.main-warp{position: relative; height: 865px;}
+.main-warp{position: relative; height: -webkit-fill-available;}
 [v-cloak] {
   display: none;
 }
client/views/pages/RealtimeStatus/RealtimeStatus.vue
--- client/views/pages/RealtimeStatus/RealtimeStatus.vue
+++ client/views/pages/RealtimeStatus/RealtimeStatus.vue
@@ -117,7 +117,9 @@
           </li>
         </ul>
       </div>
-      <div><MapPage /></div>
+      <!-- <div><MapPage /></div> -->
+      <div><Map ></Map></div>
+
     </div>
   </div>
 </template>
@@ -165,7 +167,7 @@
 </style>
 <script>
 import MapPage from "../../component/MapPage.vue";
-
+import Map from "../../component/map/map.vue"
 export default {
   data() {
     return {
@@ -184,6 +186,7 @@
   },
   components: {
     MapPage: MapPage,
+    Map:Map,
   },
   methods: {
     changeTab(tabId) {
Add a comment
List