From a2fb9724c4e193047d7f8d5a728ac06ce0688fbb Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 20 Jun 2023 09:54:55 +0200 Subject: [PATCH] #2163 --- src/pages/Nominum.vue | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/src/pages/Nominum.vue b/src/pages/Nominum.vue index be27900..7f6ae13 100644 --- a/src/pages/Nominum.vue +++ b/src/pages/Nominum.vue @@ -8,14 +8,14 @@

{{ content.occupation }}

-

Nom : {{ content.surname }}, {{ content.surname }}

-

Prénom : {{ content.forename }}, {{ content.forename }}

-

Sexe : +

Nom : {{ content.surname }}, {{ content.surname }}

+

Prénom : {{ content.forename }}, {{ content.forename }}

+

Sexe : Masculin Feminin

-

Naissance : {{ content.birthPlace }}, {{ content.birthDate }}

-

Mort : {{ content.deathPlace }}, {{ content.deathDate }}

+

+

Notes

@@ -76,6 +76,36 @@ export default { meta: this.meta } }, + computed: { + birth_str () { + let str = 'Naissance :' + if (this.content.birthPlace) { + str += ' ' + this.content.birthPlace + } + if (this.content.birthPlace && this.content.birthDate) { + str += ',' + } + if (this.content.birthDate) { + str += ' ' + this.content.birthDate + } + + return str + }, + death_str () { + let str = 'Mort :' + if (this.content.deathPlace) { + str += ' ' + this.content.deathPlace + } + if (this.content.deathPlace && this.content.deathDate) { + str += ',' + } + if (this.content.deathDate) { + str += ' ' + this.content.deathDate + } + + return str + } + }, created () { console.log('nominum this.$route', this.$route) REST.get(`${window.apipath}/indexNominum/` + this.$route.params.id, {})