From 594e5e440db987e3b800bdf3b7941eb5c53dc660 Mon Sep 17 00:00:00 2001 From: jhjang <jhjang@maprex.co.kr> Date: 금, 03 12월 2021 17:54:06 +0900 Subject: [PATCH] - api 모니터링 오류 수정 --- src/main/webapp/scripts/components/utils/autoComplete.controller.js | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/scripts/components/utils/autoComplete.controller.js b/src/main/webapp/scripts/components/utils/autoComplete.controller.js index ef94066..004e327 100644 --- a/src/main/webapp/scripts/components/utils/autoComplete.controller.js +++ b/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; + } } ]); } -- Gitblit v1.8.0