yjryu / KERIS star
류윤주 류윤주 2023-11-29
231129 류윤주 팝업 비율 제외 및 제한설정 수정
@7876253ecda247deb1a7d581a3817db9d3f0e236
client/views/pages/App.vue
--- client/views/pages/App.vue
+++ client/views/pages/App.vue
@@ -225,12 +225,15 @@
                   const memberTypeDetail = memberType === '정회원' ? (authenticationState.user_auth === 'common' ? '일반 정회원' : '기업 정회원') : '준회원';
                   console.log("::::", memberTypeDetail);
                   //로그인 페이지 이동은 못하게 함
-                  if (to.path == '/login.page') {
+                  if (to.path == '/Login.page') {
                      next(false);
                   } else {//로그인 페이지 이 외의 페이지들을 이동 가능하게 함
                      if (!authorization.includes(memberTypeDetail)) {
                         // 권한이 없는 유저는 not-found 페이지로 보낸다.
-                        next({ path: "/" });
+                        if(memberTypeDetail == '준회원'){
+                           this.isModalOpen = true;
+                        }
+                        next(false);
                      }
                      next();
                   }
client/views/pages/admin/popup/PopupInsert.vue
--- client/views/pages/admin/popup/PopupInsert.vue
+++ client/views/pages/admin/popup/PopupInsert.vue
@@ -31,7 +31,7 @@
                             <th style="width:10%">링크주소</th>
                             <td><input type="text" name="" id="newsTitle" v-model="popup.shortcuts_url"></td>
                         </tr>
-                        <tr>
+                        <!-- <tr>
                             <th style="width:10%">팝업 비율 설정</th>
                             <td>
                                 <div class="flex-start">
@@ -49,7 +49,7 @@
                                     </div>
                                 </div>
                             </td>
-                        </tr>
+                        </tr> -->
                         <!-- <tr class="size-zone">
                             <th>팝업 크기</th>
                             <td><input type="text" name="" id="" placeholder="너비" class="half-input" v-model="popup.popup_width" ref="popup_width"/><span>픽셀</span></td>
client/views/pages/user/networking/Matching.vue
--- client/views/pages/user/networking/Matching.vue
+++ client/views/pages/user/networking/Matching.vue
@@ -165,8 +165,6 @@
                     alert("자신의 기업에는 PICK을 할 수 없습니다.")
                 }
             }
-
-
         },
 
         pickCancelModal: function (item) {
client/views/pages/user/networking/MatchingOne.vue
--- client/views/pages/user/networking/MatchingOne.vue
+++ client/views/pages/user/networking/MatchingOne.vue
@@ -108,6 +108,7 @@
 </template>
 
 <script>
+import { useStore } from "vuex";
 import axios from 'axios';
 import COMMON_UTIL from '../../../../resources/js/commonUtil.js';
 import { useRoute } from 'vue-router';
@@ -135,7 +136,7 @@
                 file_nm: null,
                 file_extn_nm: null,
                 pick_yn: null,
-                
+
             },
             best: null,
             userCompanyId: null,
@@ -150,6 +151,7 @@
 
             ],
             route: useRoute(),
+            store: useStore(),
         }
     },
     methods: {
@@ -235,8 +237,8 @@
                     hearder: {
                         'Content-Type': "application/json; charset=UTF-8",
                     },
-                    data: {'company_id' : company_id}
-                }).then(function(response){
+                    data: { 'company_id': company_id }
+                }).then(function (response) {
                     vm.$router.go(0);
                 })
 
@@ -268,15 +270,26 @@
         },
 
         pickConfirm: function () {
-
-            if (this.company.userCompanyId != this.company.company_id) {
-                if (confirm(this.company.company_nm + "에 PICK 신청을 하시겠습니까?")) {
-                    this.pick()
+            const isUserLogin = this.store.state.loginUser;
+            console.log(isUserLogin);
+            if (isUserLogin === null) {
+                alert("비회원은 해당 기능을 이용하실 수 없습니다.")
+            } else if (isUserLogin.create_account_approval === 'N' && isUserLogin.user_auth === 'company') {
+                alert("가입 승인 중 입니다. 해당 기능을 이용하실 수 없습니다.")
+            } else if (isUserLogin.user_auth === 'common') {
+                alert("일반 회원은 해당 기능을 이용하실 수 없습니다.")
+            } else if (isUserLogin.create_account_approval === 'Y' && isUserLogin.user_auth === 'company') {
+                if (this.userCompanyId != this.company.company_id) {
+                    if (confirm(this.company.company_nm + "에 PICK 신청을 하시겠습니까?")) {
+                        this.pick()
+                    }
+                } else {
+                    alert("자신의 기업에는 PICK을 할 수 없습니다.")
                 }
-            } else {
-                alert("자신의 기업에는 PICK을 할 수 없습니다.")
             }
 
+
+
         },
 
         pickCancelModal: function () {
Add a comment
List