From 7410b4773ab3be6650163dde9bfb70870136d166 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 금, 12 11월 2021 17:56:29 +0900
Subject: [PATCH] $injector 오류 해결

---
 src/main/webapp/scripts/app/companyField/companyFieldList.controller.js |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/main/webapp/scripts/app/companyField/companyFieldList.controller.js b/src/main/webapp/scripts/app/companyField/companyFieldList.controller.js
index 99d318e..f8e895b 100644
--- a/src/main/webapp/scripts/app/companyField/companyFieldList.controller.js
+++ b/src/main/webapp/scripts/app/companyField/companyFieldList.controller.js
@@ -17,8 +17,8 @@
                     makeTableConfigs : makeTableConfigs, //  �뀒�씠釉� �꽕�젙
                     initSearch : initSearch, //寃��깋 議곌굔 珥덇린�솕
                     add : add, //�뾽泥� �깮�꽦
+                    makeSearchConditions : makeSearchConditions, //�뿊�� �떎�슫濡쒕뱶
                     removes : removes, //�뾽泥� �궘�젣
-                    makeSearchConditions : makeSearchConditions //�뿊�� �떎�슫濡쒕뱶
                 };
 
                 //  蹂��닔
@@ -52,6 +52,13 @@
                 function initSearch() {
                     $scope.vm.search.name = "";
                     $scope.fn.getPageList(0);
+                }
+
+                //  �뾽泥� 愿�由� 寃��깋 議곌굔�쓣 留뚮뱺�떎.
+                function makeSearchConditions() {
+                    return{
+                        name: $scope.vm.search.name
+                    };
                 }
 
                 //  �궗�슜�옄 �젙�쓽 �븘�뱶 紐⑸줉 �뀒�씠釉� �꽕�젙
@@ -107,9 +114,8 @@
                         currentPage = selectedPage;
                     }
 
-                    var conditions = {
-                        name : $scope.vm.search.name //�뾽泥대챸
-                    };
+                    //  �뾽泥� 愿�由� 寃��깋 議곌굔�쓣 留뚮뱺�떎.
+                    var conditions = $scope.fn.makeSearchConditions();
 
                     //�뀒�씠釉� 由ъ뒪�듃 �뜲�씠�꽣 而⑦듃濡ㅻ윭 �슂泥�
                     CompanyField.find($resourceProvider.getContent(conditions,
@@ -217,13 +223,6 @@
                                 });
                             }
                         });
-                }
-
-                function makeSearchConditions() {
-                    var conditions = {
-                        name: $scope.vm.search.name
-                    }
-                    return conditions;
                 }
 
                 $scope.fn.makeTableConfigs();

--
Gitblit v1.8.0