From f3a8cd42ca61550b98d7af093ebaaee1185e35f2 Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 수, 17 11월 2021 16:43:51 +0900 Subject: [PATCH] 이슈 수정 진행[프론트] --- src/main/webapp/scripts/app/api/apiSetting.controller.js | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/scripts/app/api/apiSetting.controller.js b/src/main/webapp/scripts/app/api/apiSetting.controller.js index 38e3b7c..db6427d 100644 --- a/src/main/webapp/scripts/app/api/apiSetting.controller.js +++ b/src/main/webapp/scripts/app/api/apiSetting.controller.js @@ -7,19 +7,40 @@ 'app', 'angular' ], function (app, angular) { - app.controller('apiSettingController', ['$scope', '$rootScope', '$log', '$resourceProvider', 'SweetAlert', '$timeout', '$filter', - function ($scope, $rootScope, $log, $resourceProvider, SweetAlert, $timeout, $filter) { + 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"); + } + } }]); }); -- Gitblit v1.8.0