From 246d91564841f742384243d3a352870b56a4dfa4 Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 목, 09 12월 2021 22:55:33 +0900
Subject: [PATCH] 사용자 등급 관리 width값 수정

---
 src/main/webapp/scripts/config.js |   54 ++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 38 insertions(+), 16 deletions(-)

diff --git a/src/main/webapp/scripts/config.js b/src/main/webapp/scripts/config.js
index 47b5db7..9c78c21 100644
--- a/src/main/webapp/scripts/config.js
+++ b/src/main/webapp/scripts/config.js
@@ -130,6 +130,7 @@
                     return true;
                 };
 
+
                 //  �씠�뒋 �깮�꽦, �닔�젙�뿉�꽌 �떎以� �꽑�깮, �떒�씪 �꽑�깮 �샃�뀡�뿉 泥댄겕�릺寃� �빐二쇰뒗 湲곕뒫
                 $rootScope.selectOption = function (useValues, value) {
                     var result = false;
@@ -235,6 +236,8 @@
 
                 //  沅뚰븳 由ъ뒪�듃
                 $rootScope.mngPermission = {
+                    "USER_PERMISSION_MNG_ISSUE_ALL" : 32768,
+                    "USER_PERMISSION_MNG_PROJECT_ALL" : 16384,
                     "USER_PERMISSION_MNG_PARTNER" : 8192,
                     "USER_PERMISSION_MNG_WORKSPACE" : 4096,
                     "USER_PERMISSION_MNG_PROJECT" : 2048,
@@ -249,6 +252,18 @@
                     "USER_PERMISSION_MNG_EVENT" : 4,
                     "USER_PERMISSION_MNG_GUIDE" : 2,
                 };
+
+                // �쁽�옱 �꽑�깮�맂 �씠�뒋 ���엯 �븘�씠�뵒 媛��졇�삤湲�
+                $rootScope.getCurrentIssueTypeId = function () {
+                    return $rootScope.issueTypeMenu != null ? $rootScope.issueTypeMenu.id : null;
+                }
+
+                // �쁽�옱 �꽑�깮�맂 �씠�뒋 ���엯 蹂�寃쏀븯湲�
+                $rootScope.setCurrentIssueTypeId = function (issueTypeVo) {
+                    if($rootScope.issueTypeMenu !== issueTypeVo) {
+                        $rootScope.issueTypeMenu = issueTypeVo;
+                    }
+                }
 
                 //  沅뚰븳�쓣 �솗�씤�븳�떎
                 $rootScope.checkMngPermission = function (userPermission) {
@@ -304,24 +319,31 @@
                     return false;
                 };
 
-                $rootScope.changeLastProject = function (projectId, reload = true) {
-                    if (User != null) {
-                        User.updateLastProject($resourceProvider.getContent(
-                            {lastProjectId: projectId},
-                            $resourceProvider.getPageContent(0, 0))).then(function (result) {
+                $rootScope.changeLastProject = function (projectId, reload = true, onEvent = true) {
+                    if ($rootScope.workProject == null || $rootScope.workProject.id !== projectId ) {
+                        if (User != null) {
+                            User.updateLastProject($resourceProvider.getContent(
+                                {lastProjectId: projectId},
+                                $resourceProvider.getPageContent(0, 0))).then(function (result) {
 
-                            if (result.data.message.status === "success") {
-                                $rootScope.user = result.data.data;
-                                $rootScope.projects.forEach(function (el) {
-                                    if (el.id == projectId) {
-                                        $rootScope.workProject = el;
+                                if (result.data.message.status === "success") {
+                                    $rootScope.user = result.data.data;
+                                    $rootScope.projects.forEach(function (el) {
+                                        if (el.id == projectId) {
+                                            $rootScope.workProject = el;
+                                            if (onEvent) {
+                                                $rootScope.$broadcast("changedLastProject", {id: el.id});
+                                            }
 
-                                        $rootScope.$broadcast("changeLastProject", { id : el.id });
-                                    }
-                                });
-                                $state.go($state.current, {}, {reload: reload});
-                            }
-                        });
+                                            if (reload) {
+                                                $state.go('dashboards.dashboard');
+                                            }
+                                        }
+                                    });
+                                    // $state.go($state.current, {}, {reload: reload});
+                                }
+                            });
+                        }
                     }
                 };
 

--
Gitblit v1.8.0