comparison client/src/components/importconfiguration/types/Soundingresults.vue @ 3715:e1972355fcfb

import_soundingresults: parameter 'single-beam:true|false'
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 20 Jun 2019 13:47:54 +0200
parents 73589ed481f5
children f6b10e558971
comparison
equal deleted inserted replaced
3714:73589ed481f5 3715:e1972355fcfb
311 if (this.importDate) 311 if (this.importDate)
312 formData.append("date", this.importDate.split("T")[0]); 312 formData.append("date", this.importDate.split("T")[0]);
313 if (this.depthReference) 313 if (this.depthReference)
314 formData.append("depth-reference", this.depthReference); 314 formData.append("depth-reference", this.depthReference);
315 if (this.projection) formData.append("epsg", this.projection); 315 if (this.projection) formData.append("epsg", this.projection);
316 if (this.beamType) formData.append("beam-type", this.beamType); 316 if (this.beamType)
317 formData.append(
318 "single-beam",
319 this.beamType === this.$options.BEAMTYPES.SINGLEBEAM
320 );
317 321
318 HTTP.post("/imports/sr", formData, { 322 HTTP.post("/imports/sr", formData, {
319 headers: { 323 headers: {
320 "X-Gemma-Auth": localStorage.getItem("token"), 324 "X-Gemma-Auth": localStorage.getItem("token"),
321 "Content-Type": "multipart/form-data" 325 "Content-Type": "multipart/form-data"
424 encodeURIComponent( 428 encodeURIComponent(
425 JSON.stringify({ 429 JSON.stringify({
426 "depth-reference": this.depthReference, 430 "depth-reference": this.depthReference,
427 bottleneck: this.bottleneck.properties.objnam, 431 bottleneck: this.bottleneck.properties.objnam,
428 date: this.importDate, 432 date: this.importDate,
429 "beam-type": this.beamType, 433 "single-beam":
434 this.beamType === this.$options.BEAMTYPES.SINGLEBEAM,
430 projection: this.projection 435 projection: this.projection
431 }) 436 })
432 ) 437 )
433 ); 438 );
434 } 439 }