Commit 2a2aee0a by xujia

“encode params

parent 72e73543
......@@ -641,7 +641,7 @@
$scope.pathIsLoading = true;
var areport = "intelligentpath/"+$scope.appid+"/query";
var listPM = HttpService.getInfo(areport,params);
var listPM = HttpService.getInfo(areport,encodeURIComponent(params));
listPM.then(function(data){
$scope.pathList = data;
$scope.pathIsLoading = false;
......
......@@ -117,7 +117,8 @@
evts.push(item.event);
evtvals.push(temp);
});
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?names="+evts.join(",")+"&params="+JSON.stringify(evtvals));
var par = encodeURIComponent("names="+evts.join(",")+"&params="+JSON.stringify(evtvals));
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?"+par);
evtprofilePM.then(function(pros){
pros.filter(function(evt){
for(var i=0;i<$scope.eventList.length;i++){
......@@ -253,7 +254,8 @@
setparams(msg.info.profiles);
}
else{
var proPM = HttpService.getInfo($scope.appid+"/event/find/param?names="+temp.event);
var par = encodeURIComponent("names="+temp.event);
var proPM = HttpService.getInfo($scope.appid+"/event/find/param?"+par);
proPM.then(function(data){
msg.info.profiles = data[0].profiles;
setparams();
......
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