Commit dabf1b1d by xujia

encode params

parent 87ab30d0
......@@ -1363,7 +1363,7 @@
evtvals.push(temp);
});
ToolService.showLoading();
var evtprofilePM = HttpService.getInfo($rootScope.appid+"/event/find/param?names="+evts.join(",")+"&params="+JSON.stringify(evtvals));
var evtprofilePM = HttpService.getInfo($rootScope.appid+"/event/find/param?names="+evts.join(",")+"&params="+encodeURIComponent(JSON.stringify(evtvals)));
evtprofilePM.then(function(pros){
pros.filter(function(evt){
for(var i=0;i<$scope.eventList.length;i++){
......@@ -1443,7 +1443,7 @@
}
ToolService.showLoading();
var evtprofilePM = HttpService.getInfo($rootScope.appid+"/event/find/param?names="+$scope.eventId+"&params="+JSON.stringify(evtvals));
var evtprofilePM = HttpService.getInfo($rootScope.appid+"/event/find/param?names="+$scope.eventId+"&params="+encodeURIComponent(JSON.stringify(evtvals)));
evtprofilePM.then(function(pros){
pros.filter(function(evt){
for(var i=0;i<$scope.eventList.length;i++){
......
......@@ -320,7 +320,7 @@
evts.push(item.event);
evtvals.push(temp);
});
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?names="+evts.join(",")+"&params="+JSON.stringify(evtvals));
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?names="+evts.join(",")+"&params="+encodeURIComponent(JSON.stringify(evtvals)));
evtprofilePM.then(function(pros){
pros.filter(function(evt){
for(var i=0;i<$scope.eventList.length;i++){
......
......@@ -255,7 +255,7 @@
}
ToolService.showLoading();
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?names="+event.eventName+"&params="+JSON.stringify(evtvals));
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?names="+event.eventName+"&params="+encodeURIComponent(JSON.stringify(evtvals)));
evtprofilePM.then(function(pros){
pros.filter(function(evt){
for(var i=0;i<$scope.filterEvents.length;i++){
......
......@@ -241,7 +241,7 @@
evts.push(item.event);
evtvals.push(temp);
});
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?names="+evts.join(",")+"&params="+JSON.stringify(evtvals));
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?names="+evts.join(",")+"&params="+encodeURIComponent(JSON.stringify(evtvals)));
evtprofilePM.then(function(pros){
pros.filter(function(evt){
for(var i=0;i<$scope.eventList.length;i++){
......
......@@ -92,7 +92,7 @@
$scope.closeWin();
ToolService.showLoading();
var deletePM = HttpService.deleteInfo("mng/auth/"+$scope.delInfo.id+"/delete");
deletePM.then(function(){
deletePM.then(function(data){
ToolService.hideLoading();
if(data){
ToolService.showTips("删除成功");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment