yjryu / KERIS star
Stormen123 2023-11-29
231129 매칭통계 진행중
@b3d62d6e11fc90f94208d5ad7309db1ba245edd3
client/views/pages/admin/statistics/CorporatePRCenter.vue
--- client/views/pages/admin/statistics/CorporatePRCenter.vue
+++ client/views/pages/admin/statistics/CorporatePRCenter.vue
@@ -28,22 +28,20 @@
             </div>
             <table class="statistics-table">
                 <colgroup>
-                    <col style="width: 20%;"/>
-                    <col style="width: 20%;"/>
-                    <col style="width: 20%;"/>
-                    <col style="width: 20%;"/>
-                    <col style="width: 20%;"/>
+                    <col style="width: 25%;"/>
+                    <col style="width: 25%;"/>
+                    <col style="width: 25%;"/>
+                    <col style="width: 25%;"/>
                 </colgroup>
                 <thead>
                     <tr>
                         <th rowspan="2">기업명</th>
-                        <th colspan="4">기업홍보관</th>
+                        <th colspan="3">기업홍보관</th>
                     </tr>
                     <tr>
                         <th>전체</th>
                         <th>기업회원</th>
                         <th>일반회원</th>
-                        <th>비회원</th>
        
                     </tr>
                 </thead>
@@ -53,7 +51,6 @@
                         <td>{{ item.total }}</td>
                         <td>{{ item.company }}</td>
                         <td>{{ item.common }}</td>
-                        <td>{{ item.non }}</td>
                     </tr>
                     <tr v-if="companyListByDateCount == 0">
                         <td style="font-size: 20px;" colspan="4">검색조건에 해당하는 데이터가 없습니다.</td>
@@ -84,7 +81,6 @@
                 total: "전체회원",
                 company: "기업회원",
                 common: "일반회원",
-                non: "비회원",
             },
             
             companyListSearch: {
client/views/pages/admin/statistics/Data.vue
--- client/views/pages/admin/statistics/Data.vue
+++ client/views/pages/admin/statistics/Data.vue
@@ -130,7 +130,7 @@
     },
     methods: {
          /** 권한 별 로그인 수 날짜 별 통계 */
-         postLogList: function () {
+        postLogList: function () {
             const vm = this;
             axios({
                 url: '/statistics/postLogListByDate.json',
client/views/pages/admin/statistics/MatchingStatistics.vue
--- client/views/pages/admin/statistics/MatchingStatistics.vue
+++ client/views/pages/admin/statistics/MatchingStatistics.vue
@@ -66,15 +66,22 @@
                             </thead>
                             <tbody>
                                 <tr v-for="(item, index) in menuVisitData" :key="index">
-                                    <td>{{ item.date }}</td>
-                                    <td>{{ item.total }}</td>
-                                    <td>{{ item.company }}</td>
-                                    <td>{{ item.common }}</td>
+                                    <td>{{ item.company_nm }}</td>
+                                    <td>{{ item.succesee_cnt }}</td>
+                                    <td>{{ item.failed_cnt }}</td>
+                                    <td>{{ item.progress_cnt }}</td>
+                                    <td>{{ item.to_cnt }}</td>
+                                    <td>{{ item.from_cnt }}</td>
+                                    <td>{{ item.to_cnt + item.from_cnt }}</td>
                                 </tr>
                             </tbody>
                         </table>
                     </div>
                 </div>
+            </div>
+            <div class="bottom-wrap">
+            <PaginationButton v-model:currentPage="listSearch.currentPage" :perPage="listSearch.perPage"
+                :total-count="companySelectListCount" :max-range="5" :click="companyPickStatistics" />
             </div>
             <div v-show="currentTab == 1">
                 <div class="chart">
@@ -134,7 +141,7 @@
                                 </tr>
                             </thead>
                             <tbody>
-                                <tr v-for="(item, index) in menuVisitData" :key="index">
+                                <tr v-for="(item, index) in companyStatisticsList" :key="index">
                                     <td>{{ item.date }}</td>
                                     <td>{{ item.total }}</td>
                                     <td>{{ item.company }}</td>
@@ -144,7 +151,6 @@
                         </table>
                     </div>
                 </div>
-
             </div>
         </div>
     </div>
@@ -152,6 +158,8 @@
 <script>
 import { useStore } from "vuex";
 import axios from "axios";
+import COMMON_UTIL from '../../../../resources/js/commonUtil.js';
+import PaginationButton from '../../../component/pagination/PaginationButton.vue';
 
 
 
@@ -163,6 +171,16 @@
             tabMenu: ['매칭관리', '매칭관리 세부통계'],
             selectedOption1: "pick",
             selectedOption2: "pick",
+
+            listSearch: {
+                currentPage: 1,
+                perPage: 10,
+                startDate: '2023-11-24',
+                endDate: COMMON_UTIL.yesterday(),
+            },
+
+            companyStatisticsList: [],
+            companySelectListCount: 0
         };
     },
     methods: {
@@ -175,17 +193,41 @@
             console.log("실행");
             this.selectedOption2 = option;
             console.log(this.selectedOption2);
-        }
+        },
+
+        /** 기업 별 픽 통계 */
+        companyPickStatistics: function () {
+            const vm = this;
+            axios({
+                url: '/statistics/companyPickStatistics.json',
+                method: 'post',
+                hearder: {
+                    'Content-Type': "application/json; charset=UTF-8",
+                },
+                data: vm.listSearch
+            }).then(function (response) {
+                vm.companyStatisticsList = response.data.companyPickStatistics;
+                vm.companySelectListCount = response.data.companySelectListCount;
+            }).catch(function (error) {
+                console.log("error - ", error)
+                alert("게시글 별 조회수 조회 오류, 관리자에게 문의하세요.");
+            })
+        },
+
+
+
+
     },
     watch: {
 
     },
     computed: {},
     components: {
-
+        PaginationButton: PaginationButton,
     },
     mounted() {
         console.log(this.selectedOption1)
+        this.companyPickStatistics();
     },
 };
 </script>
Add a comment
List