|
@@ -11,12 +11,19 @@ import Entite from '@components/contents/Entite.vue';
|
|
|
import VueSlider from 'vue-slider-component'
|
|
|
import 'vue-slider-component/theme/default.css'
|
|
|
|
|
|
+import SvgIcon from '@jamescoyle/vue-icon';
|
|
|
+import { mdiChevronRight } from '@mdi/js';
|
|
|
+import { mdiChevronDown } from '@mdi/js';
|
|
|
+
|
|
|
export default {
|
|
|
props: ['id', 'eid', 'entite'],
|
|
|
data(){
|
|
|
return {
|
|
|
history_value: 0,
|
|
|
- history_slider_ops: null
|
|
|
+ history_slider_ops: null,
|
|
|
+ infos_opened: false,
|
|
|
+ chevronright_path: mdiChevronRight,
|
|
|
+ chevrondown_path: mdiChevronDown,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -79,12 +86,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions(ConcernementsStore, ['setActiveRevision']) // 'loadConcernementsRevisions'
|
|
|
+ ...mapActions(ConcernementsStore, ['setActiveRevision']), // 'loadConcernementsRevisions'
|
|
|
+ onClickInfos(){
|
|
|
+ this.infos_opened = !this.infos_opened;
|
|
|
+ }
|
|
|
},
|
|
|
components: {
|
|
|
CartoucheLayout,
|
|
|
Entite,
|
|
|
- VueSlider
|
|
|
+ VueSlider,
|
|
|
+ SvgIcon
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -120,12 +131,24 @@ export default {
|
|
|
|
|
|
<template v-slot:footer>
|
|
|
<section class="infos">
|
|
|
- <div class="author"><span>une enquête de</span> {{ opened_concernement.author.username }}<br/></div>
|
|
|
- <div class="structure" v-if="opened_concernement.author.structure.length"><span>avec</span> {{ opened_concernement.author.structure[0].name }}<br/></div>
|
|
|
- <div class="lieu" v-if="opened_concernement.lieu.length"><span>à</span> {{ opened_concernement.lieu[0].name }}<br/></div>
|
|
|
- <div class="created"><span>démarrée le</span> {{ created }}<br/></div>
|
|
|
- <div class="changed"><span>mise à jour le</span> {{ changed }}</div>
|
|
|
- <div class="recit-colophon" v-if="opened_concernement.recit_colophon" v-html="opened_concernement.recit_colophon"/>
|
|
|
+ <svg-icon
|
|
|
+ type="mdi"
|
|
|
+ :path="!infos_opened ? chevronright_path : chevrondown_path"
|
|
|
+ class="open-btn"
|
|
|
+ @click="onClickInfos"
|
|
|
+ ></svg-icon>
|
|
|
+ <div
|
|
|
+ class="author info"
|
|
|
+ @click="onClickInfos">
|
|
|
+ <span>une enquête de</span> {{ opened_concernement.author.username }}<br/>
|
|
|
+ </div>
|
|
|
+ <div class="wrapper" :class="{ 'opened': infos_opened }">
|
|
|
+ <div class="info structure" v-if="opened_concernement.author.structure.length"><span>avec</span> {{ opened_concernement.author.structure[0].name }}<br/></div>
|
|
|
+ <div class="info lieu" v-if="opened_concernement.lieu.length"><span>à</span> {{ opened_concernement.lieu[0].name }}<br/></div>
|
|
|
+ <div class="info created"><span>démarrée le</span> {{ created }}<br/></div>
|
|
|
+ <div class="info changed"><span>mise à jour le</span> {{ changed }}</div>
|
|
|
+ <div class="info recit-colophon" v-if="opened_concernement.recit_colophon" v-html="opened_concernement.recit_colophon"/>
|
|
|
+ </div>
|
|
|
</section>
|
|
|
|
|
|
<section class="sliders" v-if="history_slider_ops">
|