comparison client/src/components/gauge/Gauges.vue @ 2751:5da81634bdc4

client: waterlevel diagram: implemented nash-sutcliffe Since there is no real data available currently, I left a commented block of demo data in client/src/store/gauges.js:L139. Uncomment that block to see the coefficients in the diagram.
author Markus Kottlaender <markus@intevation.de>
date Thu, 21 Mar 2019 12:33:43 +0100
parents 85de42146bdb
children d0f6c222f4f9
comparison
equal deleted inserted replaced
2750:6446bf6d2a89 2751:5da81634bdc4
190 this.$store.commit("application/addSplitscreen", splitscreenConf); 190 this.$store.commit("application/addSplitscreen", splitscreenConf);
191 this.$store.commit("application/activeSplitscreenId", splitscreenConf.id); 191 this.$store.commit("application/activeSplitscreenId", splitscreenConf.id);
192 this.$store.commit("application/splitscreenLoading", true); 192 this.$store.commit("application/splitscreenLoading", true);
193 this.loading = true; 193 this.loading = true;
194 this.$store.commit("application/showSplitscreen", true); 194 this.$store.commit("application/showSplitscreen", true);
195 this.$store 195
196 .dispatch("gauges/loadWaterlevels") 196 Promise.all([
197 this.$store.dispatch("gauges/loadWaterlevels"),
198 this.$store.dispatch("gauges/loadNashSutcliffe")
199 ])
197 .catch(error => { 200 .catch(error => {
198 const { status, data } = error.response; 201 const { status, data } = error.response;
199 displayError({ 202 displayError({
200 title: "Backend Error", 203 title: "Backend Error",
201 message: `${status}: ${data.message || data}` 204 message: `${status}: ${data.message || data}`