Mercurial > gemma
changeset 2099:1baae9d31b3d
importschedule: LOS fixed, default level=3
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 04 Feb 2019 12:30:58 +0100 |
parents | 8a986d80e1c6 |
children | 46343e3f7a3e |
files | client/src/components/importschedule/importtypes/Fairwaydimensions.vue client/src/store/importschedule.js |
diffstat | 2 files changed, 15 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/importschedule/importtypes/Fairwaydimensions.vue Mon Feb 04 11:34:09 2019 +0100 +++ b/client/src/components/importschedule/importtypes/Fairwaydimensions.vue Mon Feb 04 12:30:58 2019 +0100 @@ -68,10 +68,10 @@ <small class="text-muted"> <translate>LOS</translate> </small> </div> <div class="w-100"> - <select @keyup="LOSChanged" class="form-control"> - <option :value="{ LOS: 1 }">1</option> - <option :value="{ LOS: 2 }">2</option> - <option :value="{ LOS: 3 }">3</option> + <select v-model="los" class="form-control"> + <option>1</option> + <option>2</option> + <option>3</option> </select> </div> <div v-if="!LOS" class="d-flex flex-row"> @@ -226,6 +226,16 @@ sourceOrganizationChanged(e) { this.$emit("sourceOrganizationChanged", e.target.value); } + }, + computed: { + los: { + get() { + return this.LOS; + }, + set(value) { + this.$emit("LOSChanged", value * 1); + } + } } }; </script>