From a227dd7df7f84a5cfb7218042a6f844991dcfb96 Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 수, 09 2월 2022 14:53:41 +0900 Subject: [PATCH] - isp, 호스팅 엑셀 import 기능 추가 --- src/main/webapp/scripts/components/HostingField/hostingField.service.js | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/scripts/components/HostingField/hostingField.service.js b/src/main/webapp/scripts/components/HostingField/hostingField.service.js index 46ad84e..690e842 100644 --- a/src/main/webapp/scripts/components/HostingField/hostingField.service.js +++ b/src/main/webapp/scripts/components/HostingField/hostingField.service.js @@ -6,7 +6,7 @@ define([ 'app' ], function (app) { - app.factory("HostingField", ['$http', '$log', function ($http, $log) { + app.factory("HostingField", ['$http', '$log', '$upload', function ($http, $log, $upload) { return { find : function (conditions) { return $http.post("hostingField/find", conditions).then(function (response) { @@ -38,13 +38,20 @@ return response; }); }, + importExcel : function (conditions) { + conditions.url = "hostingField/importExcel"; + return $upload.upload(conditions).then(function (response) { + $log.debug("hostingField Import 寃곌낵 : ", response); + return response; + }); + }, // �뾽泥�/ISP/�샇�뒪�똿 議고쉶 getPartnerList : function (conditions) { return $http.post("company/getPartnerList", conditions).then(function (response) { $log.debug("�뾽泥�/isp/�샇�뒪�똿 紐⑸줉 議고쉶 寃곌낵 : ", response); return response; }); - } + }, } } -- Gitblit v1.8.0