Commit d46c5802109753869e8295369e9aad0db679016e
1 parent
3cac9636
Exists in
master
and in
1 other branch
up date for connection
Showing
1 changed file
with
24 additions
and
9 deletions
Show diff stats
ais-structure/src/modules/helper/connection.js
| @@ -183,7 +183,18 @@ function getUrl(params) | @@ -183,7 +183,18 @@ function getUrl(params) | ||
| 183 | var fields = ""; | 183 | var fields = ""; |
| 184 | var filter = ""; | 184 | var filter = ""; |
| 185 | 185 | ||
| 186 | - // console.log(params.body); | 186 | + |
| 187 | + params.body = {}; | ||
| 188 | + params.body.commandId = []; | ||
| 189 | + params.body.commandId.push("1"); | ||
| 190 | + params.body.commandId.push("2"); | ||
| 191 | + params.body.commandId.push("3"); | ||
| 192 | + params.body.commandId.push("4"); | ||
| 193 | + params.body.commandId.push("5"); | ||
| 194 | + params.body.commandId.push("6"); | ||
| 195 | + params.body.commandId.push("7"); | ||
| 196 | + params.body.commandId.push("8"); | ||
| 197 | + // console.log(params.body); | ||
| 187 | if(params.body) | 198 | if(params.body) |
| 188 | { | 199 | { |
| 189 | var first = true; | 200 | var first = true; |
| @@ -220,14 +231,9 @@ function getUrl(params) | @@ -220,14 +231,9 @@ function getUrl(params) | ||
| 220 | } | 231 | } |
| 221 | 232 | ||
| 222 | 233 | ||
| 223 | - | ||
| 224 | - | ||
| 225 | - | ||
| 226 | - | ||
| 227 | - | ||
| 228 | 234 | ||
| 229 | // console.log(url); | 235 | // console.log(url); |
| 230 | - // console.log(filter); | 236 | + console.log(filter); |
| 231 | // console.log(fields); | 237 | // console.log(fields); |
| 232 | 238 | ||
| 233 | return returnData; | 239 | return returnData; |
| @@ -249,8 +255,17 @@ function getFields(fields,first) | @@ -249,8 +255,17 @@ function getFields(fields,first) | ||
| 249 | 255 | ||
| 250 | function getfilter(filter,key,newfilter) | 256 | function getfilter(filter,key,newfilter) |
| 251 | { | 257 | { |
| 252 | - var returnData; | ||
| 253 | - returnData = filter+"("+key+"="+newfilter+")" | 258 | + var returnData = ""; |
| 259 | + console.log(key); | ||
| 260 | + console.log(newfilter); | ||
| 261 | + if(!Array.isArray(newfilter)) | ||
| 262 | + { | ||
| 263 | + returnData += filter+"("+key+"="+newfilter+")"; | ||
| 264 | + }else | ||
| 265 | + { | ||
| 266 | + for(var i=0;i<newfilter.length;i++) | ||
| 267 | + returnData += filter+"("+key+"="+newfilter[i]+")"; | ||
| 268 | + } | ||
| 254 | return returnData; | 269 | return returnData; |
| 255 | } | 270 | } |
| 256 | 271 |