comparison client/src/components/fairway/AvailableFairwayDepthDialogue.vue @ 5475:791a372553a0

Client:FWA: Fix setting request parameters and legend * Set default limit-width values (80m, 150m) for bottlenecks that limited by width * Fix condition of generating the legend * Fix setting the boundaries of the legend * Convert limit-width values to "cm" for the request.
author Fadi Abbud <fadi.abbud@intevation.de>
date Mon, 16 Aug 2021 15:55:57 +0200
parents b5028b98e7c4
children 2b862190aee4
comparison
equal deleted inserted replaced
5474:d71ebe576c76 5475:791a372553a0
621 if (this.depthLimitVisible) { 621 if (this.depthLimitVisible) {
622 this.depthLimit1 = 2.3; 622 this.depthLimit1 = 2.3;
623 this.depthLimit2 = 2.5; 623 this.depthLimit2 = 2.5;
624 } 624 }
625 }, 625 },
626 widthLimitVisible() {
627 if (this.widthLimitVisible) {
628 this.widthLimit1 = 80;
629 this.widthLimit2 = 150;
630 }
631 },
626 selectedBottleneck() { 632 selectedBottleneck() {
627 this.type = this.$options.BOTTLENECK; 633 this.type = this.$options.BOTTLENECK;
628 this.setSelectedBottleneck(); 634 this.setSelectedBottleneck();
629 }, 635 },
630 selectedStretchId() { 636 selectedStretchId() {
755 frequency: this.frequency, 761 frequency: this.frequency,
756 LOS: this.los, 762 LOS: this.los,
757 type: this.type, 763 type: this.type,
758 depthLimit1: this.depthlimit1, 764 depthLimit1: this.depthlimit1,
759 depthLimit2: this.depthlimit2, 765 depthLimit2: this.depthlimit2,
760 widthLimit1: this.widthLimit1, 766 widthLimit1: Math.round(this.widthLimit1 * 100),
761 widthLimit2: this.widthLimit2, 767 widthLimit2: Math.round(this.widthLimit2 * 100),
762 limitingFactor: this.limitingFactor 768 limitingFactor: this.limitingFactor
763 }) 769 })
764 .then(() => { 770 .then(() => {
765 this.$store.commit( 771 this.$store.commit(
766 "application/paneSetup", 772 "application/paneSetup",
803 frequency: this.frequency, 809 frequency: this.frequency,
804 LOS: this.los, 810 LOS: this.los,
805 type: this.type, 811 type: this.type,
806 depthLimit1: this.depthlimit1, 812 depthLimit1: this.depthlimit1,
807 depthLimit2: this.depthlimit2, 813 depthLimit2: this.depthlimit2,
808 widthLimit1: this.widthLimit1, 814 widthLimit1: Math.round(this.widthLimit1 * 100),
809 widthLimit2: this.widthLimit2, 815 widthLimit2: Math.round(this.widthLimit2 * 100),
810 limitingFactor: this.limitingFactor 816 limitingFactor: this.limitingFactor
811 }) 817 })
812 .then(() => { 818 .then(() => {
813 this.$store.commit("application/paneSetup", "AVAILABLEFAIRWAYDEPTH"); 819 this.$store.commit("application/paneSetup", "AVAILABLEFAIRWAYDEPTH");
814 }) 820 })