OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-11-15 42d7d22a1832dbf91cafcedf872c65817401fb94
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
/**
 * Created by maprex on 2021-10-26
 */
'use strict';
 
define([
        'app', 'angular'
    ],
    function (app, angular) {
        app.controller('apiSettingController', ['$scope', '$rootScope', '$log', '$resourceProvider','$uibModal', 'SweetAlert', '$timeout', '$filter',
            function ($scope, $rootScope, $log, $resourceProvider, $uibModal, SweetAlert, $timeout, $filter) {
 
                $scope.fn = {
                    changeTab : changeTab,
                    add : add,
                };
 
                $scope.vm = {
                    tab : "API_COL_SETTING",
                    form : {
 
                    }
                };
 
                //  생성 팝업
                function add() {
                    $uibModal.open({
                        templateUrl : 'views/api/apiOverlapAdd.html',
                        size : "sm",
                        // controller : 'apiOverlapAddController',
                        backdrop : 'static'
                    });
                }
 
                function changeTab(tab) {
                    $scope.vm.tab = tab;
 
                    if (tab === "API_COL_SETTING") {
                        $rootScope.$broadcast("changeColumnSettingTab");
                    } else if (tab === "API_OVERLAP_SETTING") {
                        $rootScope.$broadcast("changeOverlapSettingTab");
                    }
                }
 
            }]);
    });