comparison client/src/components/systemconfiguration/DataAccuracy.vue @ 3625:a688a478e35f configuration

implemented configuration backend and frontend
author Markus Kottlaender <markus@intevation.de>
date Fri, 07 Jun 2019 12:53:41 +0200
parents bcf9713ee359
children a7abfb3d400d
comparison
equal deleted inserted replaced
3624:3012d0b3badc 3625:a688a478e35f
328 computed: { 328 computed: {
329 ...mapState("application", ["config"]) 329 ...mapState("application", ["config"])
330 }, 330 },
331 methods: { 331 methods: {
332 submit() { 332 submit() {
333 this.$store.commit("application/config", this.config); 333 this.$store.dispatch("application/saveConfig", {
334 bn_revtime_multiplier: this.config.bn_revtime_multiplier,
335 gm_latest_hours: this.config.gm_latest_hours,
336 gm_min_values_14d: this.config.gm_min_values_14d,
337 gm_forecast_offset_24h: this.config.gm_forecast_offset_24h,
338 gm_forecast_offset_72h: this.config.gm_forecast_offset_72h,
339 gm_forecast_vs_reality_nsc_24h: this.config
340 .gm_forecast_vs_reality_nsc_24h,
341 gm_forecast_vs_reality_nsc_72h: this.config
342 .gm_forecast_vs_reality_nsc_72h
343 });
334 } 344 }
335 } 345 }
336 }; 346 };
337 </script> 347 </script>