OWL ITS + 탐지시스템(인터넷 진흥원)
src/main/webapp/scripts/components/utils/autoComplete.controller.js
@@ -133,13 +133,13 @@
                function getIssueList(query, issueTypeId, excludeList, page, callBack) {
                    var conditions = {
                        name : query,
                        issueTypeIds : (function () {
                        /*issueTypeIds : (function () {
                            var ids = [];
                            ids.push(issueTypeId);
                            return ids;
                        })(),
                        })(),*/
                        excludeIds : (function () {
                            var excludeIds = [];
@@ -175,13 +175,13 @@
                function getDownIssueList(query, issueTypeId, excludeList, page, callBack) {
                    var conditions = {
                        name : query,
                        // issueTypeIds : (function () {
                        //     var ids = [];
                        //
                        //     ids.push(issueTypeId);
                        //
                        //     return ids;
                        // })(),
                        issueTypeIds : (function () {
                            var ids = [];
                            ids.push(issueTypeId);
                            return ids;
                        })(),
                        excludeIds : (function () {
                            var excludeIds = [];
@@ -312,9 +312,10 @@
                    return deferred.promise;
                }
                function getIssueDepartmentList(query, excludeList, page, callBack) {
                function getIssueDepartmentList(issueTypeId, query, excludeList, page, callBack) {
                    var conditions = {
                        issueTypeId : $scope.vm.form.issueTypeId,
                        //issueTypeId : $scope.vm.form.issueTypeId,
                        issueTypeId : issueTypeId,
                        departmentName : query,
                        userId : $rootScope.user.id,
                        projectId : (function () {
@@ -347,7 +348,7 @@
                        conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) {
                        if (result.data.message.status === "success") {
                            const departments = result.data.data;
                            if(departments != null && departments.length() > 0){
                            if(departments != null){
                                var filterDepartments = departments.filter(function(item, idx){
                                    return departments.findIndex(function(item2, idx2){
                                        return item.departmentName === item2.departmentName