api로 url 변경
This commit is contained in:
@@ -176,7 +176,7 @@
|
||||
f.regionMainCode.value = regionMainCode;
|
||||
let dataOj = $(f).serializeObject();
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/researcher/mappingHousehold/search',
|
||||
'/api/researcher/mappingHousehold/search',
|
||||
dataOj,
|
||||
function (response) {
|
||||
$('#mappingHouseholdTotalElements').text(response.totalElements);
|
||||
@@ -242,7 +242,7 @@
|
||||
};
|
||||
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/researcher/mappingHousehold/update',
|
||||
'/api/researcher/mappingHousehold/update',
|
||||
JSON.stringify(data),
|
||||
function (response) {
|
||||
if (response === selectedIds.length) {
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
f.page.value = pageNo;
|
||||
let dataOj = $(f).serializeObject();
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/researcher/mappingHouseholdList',
|
||||
'/api/researcher/mappingHouseholdList',
|
||||
dataOj,
|
||||
function (response) {
|
||||
$('#household-totalElements').text(response.totalElements);
|
||||
@@ -248,7 +248,7 @@
|
||||
};
|
||||
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/researcher/visitHouseholdList',
|
||||
'/api/researcher/visitHouseholdList',
|
||||
dataObj,
|
||||
function (response) {
|
||||
$('#household-totalElements').text(response.totalElements);
|
||||
@@ -337,7 +337,7 @@
|
||||
const data = $(f).serializeObject();
|
||||
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/researcher/visitHousehold/remove',
|
||||
'/api/researcher/visitHousehold/remove',
|
||||
JSON.stringify(selectIds),
|
||||
function (response) {
|
||||
if(response > 0){
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
let dataOj = $(f).serializeObject();
|
||||
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/researcher/list',
|
||||
'/api/researcher/list',
|
||||
dataOj,
|
||||
function (response) {
|
||||
$('#totalElements').text(response.totalElements);
|
||||
@@ -215,7 +215,7 @@
|
||||
|
||||
$.ajax({
|
||||
'method': 'DELETE',
|
||||
'url': '/researchers/remove',
|
||||
'url': '/api/researchers/remove',
|
||||
'data': {
|
||||
'selectIds': data.selectIds
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user