Commit 87ab30d0 by xujia

encode param

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