comparison client/src/components/gauge/HydrologicalConditions.vue @ 4456:acb21e7362ce

client: pdf-gen: fix diagram title for pdf (waterlevels, hydrologicalconditions) * refactor diagram title for pdf-generation * move isrsIfo function to mixins.js * remove unused gauginfo function
author Fadi Abbud <fadi.abbud@intevation.de>
date Mon, 23 Sep 2019 09:55:48 +0200
parents 610773d34e4f
children 3543af71d04c
comparison
equal deleted inserted replaced
4455:112120ed510d 4456:acb21e7362ce
213 ? "GAUGE_WATERLEVEL" 213 ? "GAUGE_WATERLEVEL"
214 : "DEFAULT" 214 : "DEFAULT"
215 ); 215 );
216 }, 216 },
217 downloadPDF() { 217 downloadPDF() {
218 let diagramTitle = 218 let diagramTitle = `${this.selectedGaugeD.properties.objname} (${
219 this.gaugeInfo(this.selectedGaugeD) + 219 this.isrsInfo(this.selectedGaugeD).orc
220 ": Hydrological Conditions " + 220 }): Hydrological Conditions ${this.longtermIntervalD.join(" - ")}`;
221 this.longtermIntervalD.join(" - ");
222 221
223 this.generatePDF({ 222 this.generatePDF({
224 templateData: this.templateData, 223 templateData: this.templateData,
225 diagramTitle: diagramTitle 224 diagramTitle: diagramTitle
226 }); 225 });