codevdesign 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -117
- package/composants/csqcAide.vue +2 -2
- package/composants/csqcAlerteErreur.vue +86 -86
- package/composants/csqcChaise/chaiseConteneur.vue +330 -330
- package/composants/csqcChaise/chaiseItem.vue +53 -53
- package/composants/csqcConfirmation.vue +74 -74
- package/composants/csqcDialogue.vue +3 -4
- package/composants/csqcEntete.vue +127 -127
- package/composants/csqcOptionSwitch.vue +2 -2
- package/composants/csqcRecherche.vue +5 -2
- package/composants/csqcSnackbar.vue +1 -2
- package/composants/csqcTable/csqcTable.vue +2 -2
- package/composants/csqcTable/csqcTableExportExcel.vue +4 -4
- package/composants/csqcTexteBilingue.vue +13 -13
- package/composants/csqcTiroir.vue +1 -2
- package/composants/gabarit/csqcMenu.vue +7 -5
- package/composants/gabarit/pivEntete.vue +9 -6
- package/composants/gabarit/pivPiedPage.vue +70 -70
- package/composants/validateurs.ts +183 -181
- package/index.ts +68 -68
- package/modeles/apiReponse.ts +12 -12
- package/modeles/composants/datatableColonne.ts +14 -14
- package/modeles/composants/snackbar.ts +18 -18
- package/modeles/data.ts +24 -24
- package/modeles/droitIntervention.ts +14 -14
- package/modeles/groupeCE.ts +23 -23
- package/modeles/groupeCEIntervalle.ts +24 -24
- package/modeles/intervention.ts +35 -35
- package/modeles/notificationGabaritDefaut.ts +10 -10
- package/modeles/response.ts +12 -12
- package/modeles/role.ts +31 -31
- package/modeles/roleMin.ts +12 -12
- package/modeles/unite.ts +41 -41
- package/modeles/utilisateur.ts +32 -32
- package/package.json +1 -1
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<v-list-item-content>
|
|
4
|
-
<v-list-item-title>{{ nomUnite }}</v-list-item-title>
|
|
5
|
-
<v-list-item-subtitle v-if="getPreference != ''">
|
|
6
|
-
{{ getPreference }}
|
|
7
|
-
</v-list-item-subtitle>
|
|
8
|
-
<v-list-item-subtitle
|
|
9
|
-
v-if="getPreference == ''"
|
|
10
|
-
class="messageErreurChaiseItem"
|
|
11
|
-
>
|
|
12
|
-
{{ $t('csqc.message.chaiseSelection') }}
|
|
13
|
-
</v-list-item-subtitle>
|
|
14
|
-
</v-list-item-content>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
<script lang="ts" setup>
|
|
18
|
-
import { computed } from 'vue'
|
|
19
|
-
|
|
20
|
-
// Définition des props
|
|
21
|
-
const props = defineProps<{
|
|
22
|
-
uniteId: number
|
|
23
|
-
preferences: Array<{ chaiseId: number }>
|
|
24
|
-
dictChaisesReleve: Record<number, Array<{ id: number; nom: string }>>
|
|
25
|
-
unites: Array<{ id: number; nom: string }>
|
|
26
|
-
}>()
|
|
27
|
-
|
|
28
|
-
const nomUnite = computed(() => {
|
|
29
|
-
if (!props.uniteId || !props.unites?.length) {
|
|
30
|
-
return ''
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const unite = props.unites.find(u => u.id == props.uniteId)
|
|
34
|
-
return unite?.nom || ''
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
const getPreference = computed(() => {
|
|
38
|
-
for (let i = 0; i < props.dictChaisesReleve[props.uniteId]?.length; i += 1) {
|
|
39
|
-
if (props.preferences.some(p => p.chaiseId == props.dictChaisesReleve[props.uniteId][i].id)) {
|
|
40
|
-
return props.dictChaisesReleve[props.uniteId][i].nom
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return ''
|
|
45
|
-
})
|
|
46
|
-
</script>
|
|
47
|
-
|
|
48
|
-
<style scoped>
|
|
49
|
-
.messageErreurChaiseItem {
|
|
50
|
-
color: red !important;
|
|
51
|
-
font-style: italic;
|
|
52
|
-
}
|
|
53
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<v-list-item-content>
|
|
4
|
+
<v-list-item-title>{{ nomUnite }}</v-list-item-title>
|
|
5
|
+
<v-list-item-subtitle v-if="getPreference != ''">
|
|
6
|
+
{{ getPreference }}
|
|
7
|
+
</v-list-item-subtitle>
|
|
8
|
+
<v-list-item-subtitle
|
|
9
|
+
v-if="getPreference == ''"
|
|
10
|
+
class="messageErreurChaiseItem"
|
|
11
|
+
>
|
|
12
|
+
{{ $t('csqc.message.chaiseSelection') }}
|
|
13
|
+
</v-list-item-subtitle>
|
|
14
|
+
</v-list-item-content>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<script lang="ts" setup>
|
|
18
|
+
import { computed } from 'vue'
|
|
19
|
+
|
|
20
|
+
// Définition des props
|
|
21
|
+
const props = defineProps<{
|
|
22
|
+
uniteId: number
|
|
23
|
+
preferences: Array<{ chaiseId: number }>
|
|
24
|
+
dictChaisesReleve: Record<number, Array<{ id: number; nom: string }>>
|
|
25
|
+
unites: Array<{ id: number; nom: string }>
|
|
26
|
+
}>()
|
|
27
|
+
|
|
28
|
+
const nomUnite = computed(() => {
|
|
29
|
+
if (!props.uniteId || !props.unites?.length) {
|
|
30
|
+
return ''
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const unite = props.unites.find(u => u.id == props.uniteId)
|
|
34
|
+
return unite?.nom || ''
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
const getPreference = computed(() => {
|
|
38
|
+
for (let i = 0; i < props.dictChaisesReleve[props.uniteId]?.length; i += 1) {
|
|
39
|
+
if (props.preferences.some(p => p.chaiseId == props.dictChaisesReleve[props.uniteId][i].id)) {
|
|
40
|
+
return props.dictChaisesReleve[props.uniteId][i].nom
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return ''
|
|
45
|
+
})
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style scoped>
|
|
49
|
+
.messageErreurChaiseItem {
|
|
50
|
+
color: red !important;
|
|
51
|
+
font-style: italic;
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<csqcDialogue
|
|
3
|
-
:titre="props.titre"
|
|
4
|
-
ref="modale"
|
|
5
|
-
:operationEnCours="operationEnCours"
|
|
6
|
-
activator="supprimer"
|
|
7
|
-
:largeur="props.largeur"
|
|
8
|
-
@ok="confirmer"
|
|
9
|
-
@annuler="annuler"
|
|
10
|
-
>
|
|
11
|
-
<v-form
|
|
12
|
-
ref="form"
|
|
13
|
-
@submit.prevent
|
|
14
|
-
>
|
|
15
|
-
<v-row>
|
|
16
|
-
<v-col
|
|
17
|
-
cols="12"
|
|
18
|
-
class="pa-0 ma-0"
|
|
19
|
-
>
|
|
20
|
-
<span v-html="texte"></span>
|
|
21
|
-
</v-col>
|
|
22
|
-
</v-row>
|
|
23
|
-
</v-form>
|
|
24
|
-
</csqcDialogue>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script lang="ts" setup>
|
|
28
|
-
import { ref } from 'vue'
|
|
29
|
-
import csqcDialogue from './csqcDialogue.vue'
|
|
30
|
-
|
|
31
|
-
const modale = ref<InstanceType<typeof csqcDialogue> | null>(null)
|
|
32
|
-
const utilisateurATermine = ref(false)
|
|
33
|
-
const reponse = ref(false)
|
|
34
|
-
const texte = ref('')
|
|
35
|
-
const modeAlerte = ref(false)
|
|
36
|
-
|
|
37
|
-
const props = defineProps({
|
|
38
|
-
operationEnCours: { type: Boolean, default: false },
|
|
39
|
-
titre: { type: String, default: '' },
|
|
40
|
-
largeur: { type: String, default: '525px' },
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
const ouvrir = async (message: string, modeAlerteParam: boolean = false) => {
|
|
44
|
-
texte.value = message
|
|
45
|
-
modeAlerte.value = modeAlerteParam
|
|
46
|
-
utilisateurATermine.value = false
|
|
47
|
-
modale.value?.ouvrir()
|
|
48
|
-
|
|
49
|
-
while (!utilisateurATermine.value) {
|
|
50
|
-
await new Promise(resolve => setTimeout(resolve, 100)) // Attendre 100ms
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return reponse.value
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const confirmer = (): void => {
|
|
57
|
-
reponse.value = true
|
|
58
|
-
utilisateurATermine.value = true
|
|
59
|
-
|
|
60
|
-
if (modeAlerte.value) fermer()
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const annuler = (): void => {
|
|
64
|
-
reponse.value = false
|
|
65
|
-
utilisateurATermine.value = true
|
|
66
|
-
fermer()
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const fermer = (): void => {
|
|
70
|
-
modale.value?.fermer()
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
defineExpose({ ouvrir, fermer })
|
|
74
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<csqcDialogue
|
|
3
|
+
:titre="props.titre"
|
|
4
|
+
ref="modale"
|
|
5
|
+
:operationEnCours="operationEnCours"
|
|
6
|
+
activator="supprimer"
|
|
7
|
+
:largeur="props.largeur"
|
|
8
|
+
@ok="confirmer"
|
|
9
|
+
@annuler="annuler"
|
|
10
|
+
>
|
|
11
|
+
<v-form
|
|
12
|
+
ref="form"
|
|
13
|
+
@submit.prevent
|
|
14
|
+
>
|
|
15
|
+
<v-row>
|
|
16
|
+
<v-col
|
|
17
|
+
cols="12"
|
|
18
|
+
class="pa-0 ma-0"
|
|
19
|
+
>
|
|
20
|
+
<span v-html="texte"></span>
|
|
21
|
+
</v-col>
|
|
22
|
+
</v-row>
|
|
23
|
+
</v-form>
|
|
24
|
+
</csqcDialogue>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script lang="ts" setup>
|
|
28
|
+
import { ref } from 'vue'
|
|
29
|
+
import csqcDialogue from './csqcDialogue.vue'
|
|
30
|
+
|
|
31
|
+
const modale = ref<InstanceType<typeof csqcDialogue> | null>(null)
|
|
32
|
+
const utilisateurATermine = ref(false)
|
|
33
|
+
const reponse = ref(false)
|
|
34
|
+
const texte = ref('')
|
|
35
|
+
const modeAlerte = ref(false)
|
|
36
|
+
|
|
37
|
+
const props = defineProps({
|
|
38
|
+
operationEnCours: { type: Boolean, default: false },
|
|
39
|
+
titre: { type: String, default: '' },
|
|
40
|
+
largeur: { type: String, default: '525px' },
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
const ouvrir = async (message: string, modeAlerteParam: boolean = false) => {
|
|
44
|
+
texte.value = message
|
|
45
|
+
modeAlerte.value = modeAlerteParam
|
|
46
|
+
utilisateurATermine.value = false
|
|
47
|
+
modale.value?.ouvrir()
|
|
48
|
+
|
|
49
|
+
while (!utilisateurATermine.value) {
|
|
50
|
+
await new Promise(resolve => setTimeout(resolve, 100)) // Attendre 100ms
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return reponse.value
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const confirmer = (): void => {
|
|
57
|
+
reponse.value = true
|
|
58
|
+
utilisateurATermine.value = true
|
|
59
|
+
|
|
60
|
+
if (modeAlerte.value) fermer()
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const annuler = (): void => {
|
|
64
|
+
reponse.value = false
|
|
65
|
+
utilisateurATermine.value = true
|
|
66
|
+
fermer()
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const fermer = (): void => {
|
|
70
|
+
modale.value?.fermer()
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
defineExpose({ ouvrir, fermer })
|
|
74
|
+
</script>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-dialog
|
|
3
|
-
class="pa-0 ma-0"
|
|
4
3
|
v-model="dialog"
|
|
4
|
+
class="pa-0 ma-0"
|
|
5
5
|
:width="largeur"
|
|
6
6
|
:fullscreen="display.xs.value"
|
|
7
7
|
max-width="650"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
style="font-size: 24px; white-space: normal; word-break: break-word"
|
|
25
25
|
>
|
|
26
26
|
<slot name="titre"></slot>
|
|
27
|
-
<div
|
|
27
|
+
<div text-h5><span v-html="titre"></span></div>
|
|
28
28
|
</v-card-title>
|
|
29
29
|
|
|
30
30
|
<v-card-text class="pa-0 ma-0 pb-6 pr-6">
|
|
@@ -49,11 +49,10 @@
|
|
|
49
49
|
v-if="btnOk"
|
|
50
50
|
class="Gouttiere"
|
|
51
51
|
color="primary"
|
|
52
|
-
variant="flat"
|
|
53
52
|
:loading="operationEnCours"
|
|
54
53
|
:disabled="btnOkDesactiver"
|
|
54
|
+
variant="flat"
|
|
55
55
|
@click="okBouton"
|
|
56
|
-
outlined
|
|
57
56
|
>
|
|
58
57
|
{{ btnOkTexte ? btnOkTexte : $t('csqc.bouton.ok') }}
|
|
59
58
|
</v-btn>
|
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-app-bar
|
|
3
|
-
color="white"
|
|
4
|
-
class="px-0 mx-0"
|
|
5
|
-
:style="{ position: 'sticky' }"
|
|
6
|
-
height="82px"
|
|
7
|
-
>
|
|
8
|
-
<v-row
|
|
9
|
-
class="pt-2"
|
|
10
|
-
@resize="controlAffichage"
|
|
11
|
-
>
|
|
12
|
-
<v-col
|
|
13
|
-
:cols="titreCol"
|
|
14
|
-
class="pr-0 mr-0 pl-5"
|
|
15
|
-
>
|
|
16
|
-
<v-toolbar-title class="titre">
|
|
17
|
-
<!-- Barre de retour -->
|
|
18
|
-
<slot name="retour">
|
|
19
|
-
<v-icon
|
|
20
|
-
v-if="retour"
|
|
21
|
-
size="large"
|
|
22
|
-
start
|
|
23
|
-
color="grisMoyen"
|
|
24
|
-
icon="mdi-arrow-left-thin"
|
|
25
|
-
@click="retournerMenu"
|
|
26
|
-
/></slot>
|
|
27
|
-
|
|
28
|
-
<div class="titre-bloc">
|
|
29
|
-
<!-- Titre -->
|
|
30
|
-
<slot name="titre"
|
|
31
|
-
><span class="pl-3"> {{ props.titre }}</span></slot
|
|
32
|
-
>
|
|
33
|
-
|
|
34
|
-
<!-- État -->
|
|
35
|
-
<slot name="etat">
|
|
36
|
-
<span
|
|
37
|
-
v-if="monEtat?.afficher"
|
|
38
|
-
class="pl-10"
|
|
39
|
-
>
|
|
40
|
-
<v-btn
|
|
41
|
-
size="small"
|
|
42
|
-
:color="monEtat.couleur"
|
|
43
|
-
variant="tonal"
|
|
44
|
-
>
|
|
45
|
-
{{ monEtat.texte }}
|
|
46
|
-
</v-btn>
|
|
47
|
-
</span></slot
|
|
48
|
-
>
|
|
49
|
-
|
|
50
|
-
<!-- Sous-titre -->
|
|
51
|
-
<slot name="soustitre"
|
|
52
|
-
><span class="pl-3 soustitre"> {{ props.soustitre }}</span></slot
|
|
53
|
-
>
|
|
54
|
-
</div>
|
|
55
|
-
</v-toolbar-title>
|
|
56
|
-
</v-col>
|
|
57
|
-
</v-row>
|
|
58
|
-
<!-- Barre en bas -->
|
|
59
|
-
<div style="position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background-color: #808a9d" />
|
|
60
|
-
</v-app-bar>
|
|
61
|
-
</template>
|
|
62
|
-
|
|
63
|
-
<script setup lang="ts">
|
|
64
|
-
import { useRouter } from 'vue-router'
|
|
65
|
-
import { ref, computed } from 'vue'
|
|
66
|
-
|
|
67
|
-
// Déclaration de l'interface
|
|
68
|
-
interface EnteteEtat {
|
|
69
|
-
afficher: boolean
|
|
70
|
-
couleur: string
|
|
71
|
-
texte: string
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const router = useRouter()
|
|
75
|
-
|
|
76
|
-
const props = defineProps<{
|
|
77
|
-
titre: string
|
|
78
|
-
soustitre?: string
|
|
79
|
-
retour?: string
|
|
80
|
-
etat?: EnteteEtat
|
|
81
|
-
}>()
|
|
82
|
-
|
|
83
|
-
const titreCol = ref(12)
|
|
84
|
-
|
|
85
|
-
// État calculé basé sur la prop, avec fallback
|
|
86
|
-
const monEtat = computed<EnteteEtat>(() => {
|
|
87
|
-
return (
|
|
88
|
-
props.etat ?? {
|
|
89
|
-
afficher: false,
|
|
90
|
-
couleur: 'primary',
|
|
91
|
-
texte: 'test',
|
|
92
|
-
}
|
|
93
|
-
)
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
function retournerMenu() {
|
|
97
|
-
if (props.retour) {
|
|
98
|
-
router.push({ name: props.retour })
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function controlAffichage() {
|
|
103
|
-
// logique à l’événement de redimensionnement
|
|
104
|
-
}
|
|
105
|
-
</script>
|
|
106
|
-
<style lang="css" scoped>
|
|
107
|
-
.titre {
|
|
108
|
-
font-size: 1.85rem;
|
|
109
|
-
color: #223654;
|
|
110
|
-
font-weight: bold;
|
|
111
|
-
margin-bottom: 15px;
|
|
112
|
-
}
|
|
113
|
-
.soustitre {
|
|
114
|
-
display: block;
|
|
115
|
-
font-size: 1rem;
|
|
116
|
-
color: #223654;
|
|
117
|
-
font-weight: normal;
|
|
118
|
-
}
|
|
119
|
-
.titre-bloc {
|
|
120
|
-
display: inline-block;
|
|
121
|
-
vertical-align: middle;
|
|
122
|
-
padding-left: 12px;
|
|
123
|
-
}
|
|
124
|
-
.v-icon:hover {
|
|
125
|
-
color: #095797 !important;
|
|
126
|
-
}
|
|
127
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<v-app-bar
|
|
3
|
+
color="white"
|
|
4
|
+
class="px-0 mx-0"
|
|
5
|
+
:style="{ position: 'sticky' }"
|
|
6
|
+
height="82px"
|
|
7
|
+
>
|
|
8
|
+
<v-row
|
|
9
|
+
class="pt-2"
|
|
10
|
+
@resize="controlAffichage"
|
|
11
|
+
>
|
|
12
|
+
<v-col
|
|
13
|
+
:cols="titreCol"
|
|
14
|
+
class="pr-0 mr-0 pl-5"
|
|
15
|
+
>
|
|
16
|
+
<v-toolbar-title class="titre">
|
|
17
|
+
<!-- Barre de retour -->
|
|
18
|
+
<slot name="retour">
|
|
19
|
+
<v-icon
|
|
20
|
+
v-if="retour"
|
|
21
|
+
size="large"
|
|
22
|
+
start
|
|
23
|
+
color="grisMoyen"
|
|
24
|
+
icon="mdi-arrow-left-thin"
|
|
25
|
+
@click="retournerMenu"
|
|
26
|
+
/></slot>
|
|
27
|
+
|
|
28
|
+
<div class="titre-bloc">
|
|
29
|
+
<!-- Titre -->
|
|
30
|
+
<slot name="titre"
|
|
31
|
+
><span class="pl-3"> {{ props.titre }}</span></slot
|
|
32
|
+
>
|
|
33
|
+
|
|
34
|
+
<!-- État -->
|
|
35
|
+
<slot name="etat">
|
|
36
|
+
<span
|
|
37
|
+
v-if="monEtat?.afficher"
|
|
38
|
+
class="pl-10"
|
|
39
|
+
>
|
|
40
|
+
<v-btn
|
|
41
|
+
size="small"
|
|
42
|
+
:color="monEtat.couleur"
|
|
43
|
+
variant="tonal"
|
|
44
|
+
>
|
|
45
|
+
{{ monEtat.texte }}
|
|
46
|
+
</v-btn>
|
|
47
|
+
</span></slot
|
|
48
|
+
>
|
|
49
|
+
|
|
50
|
+
<!-- Sous-titre -->
|
|
51
|
+
<slot name="soustitre"
|
|
52
|
+
><span class="pl-3 soustitre"> {{ props.soustitre }}</span></slot
|
|
53
|
+
>
|
|
54
|
+
</div>
|
|
55
|
+
</v-toolbar-title>
|
|
56
|
+
</v-col>
|
|
57
|
+
</v-row>
|
|
58
|
+
<!-- Barre en bas -->
|
|
59
|
+
<div style="position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background-color: #808a9d" />
|
|
60
|
+
</v-app-bar>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script setup lang="ts">
|
|
64
|
+
import { useRouter } from 'vue-router'
|
|
65
|
+
import { ref, computed } from 'vue'
|
|
66
|
+
|
|
67
|
+
// Déclaration de l'interface
|
|
68
|
+
interface EnteteEtat {
|
|
69
|
+
afficher: boolean
|
|
70
|
+
couleur: string
|
|
71
|
+
texte: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const router = useRouter()
|
|
75
|
+
|
|
76
|
+
const props = defineProps<{
|
|
77
|
+
titre: string
|
|
78
|
+
soustitre?: string
|
|
79
|
+
retour?: string
|
|
80
|
+
etat?: EnteteEtat
|
|
81
|
+
}>()
|
|
82
|
+
|
|
83
|
+
const titreCol = ref(12)
|
|
84
|
+
|
|
85
|
+
// État calculé basé sur la prop, avec fallback
|
|
86
|
+
const monEtat = computed<EnteteEtat>(() => {
|
|
87
|
+
return (
|
|
88
|
+
props.etat ?? {
|
|
89
|
+
afficher: false,
|
|
90
|
+
couleur: 'primary',
|
|
91
|
+
texte: 'test',
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
})
|
|
95
|
+
|
|
96
|
+
function retournerMenu() {
|
|
97
|
+
if (props.retour) {
|
|
98
|
+
router.push({ name: props.retour })
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function controlAffichage() {
|
|
103
|
+
// logique à l’événement de redimensionnement
|
|
104
|
+
}
|
|
105
|
+
</script>
|
|
106
|
+
<style lang="css" scoped>
|
|
107
|
+
.titre {
|
|
108
|
+
font-size: 1.85rem;
|
|
109
|
+
color: #223654;
|
|
110
|
+
font-weight: bold;
|
|
111
|
+
margin-bottom: 15px;
|
|
112
|
+
}
|
|
113
|
+
.soustitre {
|
|
114
|
+
display: block;
|
|
115
|
+
font-size: 1rem;
|
|
116
|
+
color: #223654;
|
|
117
|
+
font-weight: normal;
|
|
118
|
+
}
|
|
119
|
+
.titre-bloc {
|
|
120
|
+
display: inline-block;
|
|
121
|
+
vertical-align: middle;
|
|
122
|
+
padding-left: 12px;
|
|
123
|
+
}
|
|
124
|
+
.v-icon:hover {
|
|
125
|
+
color: #095797 !important;
|
|
126
|
+
}
|
|
127
|
+
</style>
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
:disabled="desactiver"
|
|
19
19
|
:density="densite"
|
|
20
20
|
:inset="inset"
|
|
21
|
-
@change="sauvegarder"
|
|
22
21
|
hide-details
|
|
22
|
+
@update:modelValue="sauvegarder"
|
|
23
23
|
/>
|
|
24
24
|
</v-col>
|
|
25
25
|
</v-row>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
</template>
|
|
36
36
|
<script setup lang="ts">
|
|
37
|
-
import { ref, watch,
|
|
37
|
+
import { ref, watch, onMounted, type PropType } from 'vue'
|
|
38
38
|
|
|
39
39
|
// Définition des props
|
|
40
40
|
const props = defineProps({
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:loading="chargement"
|
|
19
19
|
:disabled="chargement || desactiver"
|
|
20
20
|
>
|
|
21
|
-
<template
|
|
21
|
+
<template #append>
|
|
22
22
|
<v-btn
|
|
23
23
|
variant="flat"
|
|
24
24
|
class="BarreRechercheBackIcone"
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
lg="8"
|
|
45
45
|
>
|
|
46
46
|
<v-expansion-panels
|
|
47
|
-
static
|
|
48
47
|
v-if="rechercheAvancee"
|
|
48
|
+
static
|
|
49
49
|
:readonly="chargement || desactiver"
|
|
50
50
|
expand-icon=""
|
|
51
51
|
@update:modelValue="onPanelChange"
|
|
@@ -83,10 +83,12 @@
|
|
|
83
83
|
rechercheTexte: {
|
|
84
84
|
type: String,
|
|
85
85
|
required: false,
|
|
86
|
+
default: '',
|
|
86
87
|
},
|
|
87
88
|
rechercheAvanceeTexte: {
|
|
88
89
|
type: String,
|
|
89
90
|
required: false,
|
|
91
|
+
default: '',
|
|
90
92
|
},
|
|
91
93
|
chargement: {
|
|
92
94
|
type: Boolean,
|
|
@@ -101,6 +103,7 @@
|
|
|
101
103
|
recherche: {
|
|
102
104
|
type: String,
|
|
103
105
|
required: false,
|
|
106
|
+
default: '',
|
|
104
107
|
},
|
|
105
108
|
rechercheAvancee: {
|
|
106
109
|
type: Boolean,
|
|
@@ -14,12 +14,11 @@
|
|
|
14
14
|
<b>{{ props.message }}</b>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
|
-
<template
|
|
17
|
+
<template #actions>
|
|
18
18
|
<!-- on affiche tjrs si c'est -1 car on ne pourra pas fermer le snack -->
|
|
19
19
|
<v-icon
|
|
20
20
|
v-if="props.btnFermer || props.temps === -1"
|
|
21
21
|
color="white"
|
|
22
|
-
dark
|
|
23
22
|
style="cursor: pointer"
|
|
24
23
|
@click.stop="fermer"
|
|
25
24
|
>
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
<script setup lang="ts">
|
|
171
171
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
172
172
|
|
|
173
|
-
import { ref, computed,
|
|
173
|
+
import { ref, computed, type Slots, type PropType } from 'vue'
|
|
174
174
|
import Recherche from '../csqcRecherche.vue'
|
|
175
175
|
import confirmation from '../csqcConfirmation.vue'
|
|
176
176
|
import exportExcelComponent from './csqcTableExportExcel.vue'
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
const ajouter = () => {
|
|
267
267
|
emit('ajouter')
|
|
268
268
|
}
|
|
269
|
-
const cliqueLigne = (
|
|
269
|
+
const cliqueLigne = ({ item }: { item: any }) => {
|
|
270
270
|
emit('cliqueLigne', item)
|
|
271
271
|
}
|
|
272
272
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-icon
|
|
3
|
-
|
|
3
|
+
end
|
|
4
4
|
color="grisMoyen"
|
|
5
|
-
@click="exportToXLSX"
|
|
6
5
|
icon="mdi-microsoft-excel"
|
|
6
|
+
@click="exportToXLSX"
|
|
7
7
|
>
|
|
8
8
|
</v-icon>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<script setup lang="ts">
|
|
12
12
|
import { utils, writeFileXLSX } from '@e965/xlsx'
|
|
13
|
-
import {
|
|
13
|
+
import { computed } from 'vue'
|
|
14
14
|
|
|
15
15
|
const props = defineProps<{
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
// Extraction des clés uniques de tous les objets
|
|
23
23
|
const cleDynamique = computed(() => {
|
|
24
|
-
const keys = new Set
|
|
24
|
+
const keys: Set<string> = new Set()
|
|
25
25
|
|
|
26
26
|
// Parcours tous les objets de la liste et ajoute leurs clés
|
|
27
27
|
props.liste.forEach(item => {
|