OWL ITS + 탐지시스템(인터넷 진흥원)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
 * Created by maprex on 2021-06-17
 */
'use strict';
 
define([
        'app'
    ],
    function (app) {
        app.controller('issueManagerController', ['$scope', '$rootScope', '$log', '$resourceProvider', 'SweetAlert', '$uibModal', '$filter',
            function ($scope, $rootScope, $log, $resourceProvider, SweetAlert, $uibModal, $filter) {
 
                $scope.fn = {
                    changeTab : changeTab,  //  탭 변경
                    start : start
                };
 
                $scope.vm = {
                    pageTitle : "이슈관리",
                    tab : "ISSUE_LIST" //  업무 공간 정보가 기본 탭
                };
 
                //  탭 변경
                function changeTab(tab) {
                    $scope.vm.tab = tab;
 
                    if (tab === "ISSUE_TIMELINE") {
                        $rootScope.$broadcast("changeChartTab");
                    } else if (tab === "ISSUE_LIST") {
                        $rootScope.$broadcast("changeListTab");
                    }
                }
 
                $scope.fn.start();
 
                $scope.$on("changeIssueListMenu", function (event, args) {
                    if (args != null) {
                        $scope.vm.pageTitle = args.name;
                    }
                });
 
                function start() {
                    if ($rootScope.issueTypeMenu != null) {
                        $scope.vm.pageTitle = $rootScope.issueTypeMenu.name;
                    }
                }
            }
        ]);
    }
);