From 9f955be440cad5e6b868800ff0a0acd17c0a3004 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 목, 13 1월 2022 15:30:35 +0900
Subject: [PATCH] - issue_company 테이블에 컬럼 추가 및 'tel' 컬럼 사이즈 변경 - 이슈 추가,수정 시 업체 추가된 항목들 추가 - 하위이슈 페이징 오류 수정

---
 src/main/webapp/scripts/app/common/common.controller.js |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/scripts/app/common/common.controller.js b/src/main/webapp/scripts/app/common/common.controller.js
index 8a4e5bb..d34e718 100644
--- a/src/main/webapp/scripts/app/common/common.controller.js
+++ b/src/main/webapp/scripts/app/common/common.controller.js
@@ -68,8 +68,12 @@
 
                 // 硫붿씤 �긽�떒 寃��깋
                 function searchAll() {
-                    $rootScope.setCookie("searchKeyword", $scope.vm.searchAll.keyWord, 60000);
-                    moveMenu("issues.list");
+                    if ($rootScope.isDefined($scope.vm.searchAll.keyWord)) {
+                        $rootScope.setCookie("searchKeyword", $scope.vm.searchAll.keyWord, 60000);
+                        moveMenu("issues.list");
+                    } else {
+                        SweetAlert.warning($filter("translate")("common.alertSystem"), $filter("translate")("issue.pleaseEnterIssueKeyWord"));
+                    }
                 }
 
                 function setLastIssueType() {
@@ -87,10 +91,16 @@
 
                 function changeIssueListMenu(issueTypeId, changeProject = true) {
                     $rootScope.issueTypeMenu = null;
-                    for (var issueType of $rootScope.workIssueTypes) {
-                        if (issueType.id === issueTypeId) {
-                            $rootScope.issueTypeMenu = issueType;
-                            break;
+                    $rootScope.allIssueList = false;
+                    if (issueTypeId == null) {
+                        $rootScope.allIssueList = true;
+                        moveMenu("issues.list");
+                    }else {
+                        for (var issueType of $rootScope.workIssueTypes) {
+                            if (issueType.id === issueTypeId) {
+                                $rootScope.issueTypeMenu = issueType;
+                                break;
+                            }
                         }
                     }
 
@@ -393,6 +403,18 @@
                             });
                         });
 
+                        //  �궗�슜�옄 愿�由� - �궗�슜�옄 �벑湲� 蹂�寃� �뻽�쓣 �븣
+                        $rootScope.webSocket.client.subscribe('/user/notification/changeUserLevel', function (notification) {
+                            SweetAlert.warning($filter("translate")("common.changeUserLevel"), $filter("translate")("common.logoutForLevelChange"));
+                            $rootScope.$broadcast("logout");
+                        });
+
+                        //  �궗�슜�옄 愿�由� - �궗�슜�옄 遺��꽌 蹂�寃� �뻽�쓣 �븣
+                        $rootScope.webSocket.client.subscribe('/user/notification/changeUserDepartment', function (notification) {
+                            SweetAlert.warning($filter("translate")("common.changeUserDepartment"), $filter("translate")("common.logoutForDepartmentChange"));
+                            $rootScope.$broadcast("logout");
+                        });
+
                         //  李몄뿬 �뾽臾� 怨듦컙 鍮꾪솢�꽦�솕 �븣由� - �빐�떦 �뾽臾� 怨듦컙瑜� 蹂닿퀬 �엳�쓣 �븣
                         $rootScope.webSocket.client.subscribe('/user/notification/workspace-disabled', function (notification) {
                             // edit by zenith at 20200801

--
Gitblit v1.8.0