Commit 87ab30d0 by xujia

encode param

parent 4537c47f
......@@ -638,10 +638,10 @@
params.events = $scope.define.events;
params.sessionUnit = $scope.define.sessionUnit;
}
params.eventCondition = encodeURIComponent(params.eventCondition);
$scope.pathIsLoading = true;
var areport = "intelligentpath/"+$scope.appid+"/query";
var listPM = HttpService.getInfo(areport,encodeURIComponent(params));
var listPM = HttpService.getInfo(areport,params);
listPM.then(function(data){
$scope.pathList = data;
$scope.pathIsLoading = false;
......
......@@ -117,8 +117,7 @@
evts.push(item.event);
evtvals.push(temp);
});
var par = encodeURIComponent("names="+evts.join(",")+"&params="+JSON.stringify(evtvals));
var evtprofilePM = HttpService.getInfo($scope.appid+"/event/find/param?"+par);
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++){
......@@ -254,8 +253,7 @@
setparams(msg.info.profiles);
}
else{
var par = encodeURIComponent("names="+temp.event);
var proPM = HttpService.getInfo($scope.appid+"/event/find/param?"+par);
var proPM = HttpService.getInfo($scope.appid+"/event/find/param?names="+temp.event);
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