Mercurial > gemma
changeset 4407:8c0f2377ff47
import_overview: DSR review details added
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 17 Sep 2019 10:29:36 +0200 |
parents | d336a78985ad |
children | 911b1349a9bd |
files | client/src/components/importoverview/LogDetail.vue client/src/components/importoverview/SoundingResultDetail.vue |
diffstat | 2 files changed, 19 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/importoverview/LogDetail.vue Tue Sep 17 09:18:46 2019 +0200 +++ b/client/src/components/importoverview/LogDetail.vue Tue Sep 17 10:29:36 2019 +0200 @@ -108,7 +108,7 @@ return this.kind === "SEC"; }, isSR() { - return this.kind === "SR"; + return this.kind === "SR" || this.kind === "DSR"; } }, methods: {
--- a/client/src/components/importoverview/SoundingResultDetail.vue Tue Sep 17 09:18:46 2019 +0200 +++ b/client/src/components/importoverview/SoundingResultDetail.vue Tue Sep 17 10:29:36 2019 +0200 @@ -1,8 +1,18 @@ <template> <div> - <a @click="zoomTo()" class="text-info pointer"> + <a v-if="isSR" @click="zoomTo()" class="text-info pointer"> {{ details.summary.bottleneck }} </a> + <div class="d-flex flex-column" v-if="isDSR"> + <span> + <translate>Bottleneck: </translate> + {{ details.summary["bottleneck-id"] }} + </span> + <span> + <translate>Survey from: </translate> + {{ details.summary["date-info"] | surveyDate }} + </span> + </div> </div> </template> @@ -29,7 +39,13 @@ this.$store.commit("imports/hideAdditionalInfo"); }, computed: { - ...mapState("imports", ["showAdditional", "details"]) + ...mapState("imports", ["showAdditional", "details"]), + isSR() { + return this.entry.kind.toUpperCase() === "SR"; + }, + isDSR() { + return this.entry.kind.toUpperCase() === "DSR"; + } }, methods: { zoomTo() {