OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2021-12-01 6a0d01e645b7d388c851bc5b0b830564e60aa736
src/main/webapp/scripts/components/utils/autoComplete.controller.js
@@ -40,6 +40,7 @@
                $scope.fn.getPartnerList = getPartnerList;          // 업체/isp/호스팅 목록 조회
                $scope.fn.getIssueTypeList = getIssueTypeList;          // 이슈 유형 목록 조회
                $scope.fn.getCustomFieldList = getCustomFieldList;          // 사용자 정의 필드 목록 조회
                $scope.fn.getMailTargetAll = getMailTargetAll;          // 사용자 정의 필드 목록 조회
                function getUserList(query, excludeList, page, callBack) {
                    var conditions = {
@@ -480,6 +481,25 @@
                    return deferred.promise;
                }
                function getMailTargetAll(excludeList) {
                    var deferred = $q.defer();
                    var partners = $scope.vm.partners.slice();
                    if (excludeList != null && excludeList.length > 0) {
                        for (let i = partners.length - 1 ; i >= 0 ; i--) {
                            excludeList.forEach(function (exclude) {
                                if (partners[i].id === exclude.id) {
                                    partners.splice(i, 1);
                                }
                            });
                        }
                    }
                    deferred.resolve(partners);
                    return deferred.promise;
                }
            }
        ]);
    }