codevdesign 0.0.95 → 0.0.97
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.
|
@@ -118,9 +118,10 @@
|
|
|
118
118
|
import { useDisplay } from 'vuetify'
|
|
119
119
|
import ChaisePreferenceItem from './chaiseItem.vue'
|
|
120
120
|
import csqcDialogue from '../csqcDialogue.vue'
|
|
121
|
-
import axios from '@/outils/appAxios'
|
|
121
|
+
import axios from '@/outils/appAxios'
|
|
122
122
|
import type { Unite } from '@/codev/modeles/unite'
|
|
123
123
|
import { useI18n } from 'vue-i18n'
|
|
124
|
+
const modale = ref<InstanceType<typeof csqcDialogue> | null>(null)
|
|
124
125
|
|
|
125
126
|
interface Chaise {
|
|
126
127
|
id: number
|
|
@@ -130,7 +131,7 @@
|
|
|
130
131
|
uniteId: number
|
|
131
132
|
chaiseId: number
|
|
132
133
|
}
|
|
133
|
-
|
|
134
|
+
|
|
134
135
|
/** Props */
|
|
135
136
|
const props = defineProps<{
|
|
136
137
|
activerDivPreferences?: boolean
|
|
@@ -250,12 +251,6 @@
|
|
|
250
251
|
chargementEnCours.value = false
|
|
251
252
|
}
|
|
252
253
|
|
|
253
|
-
/** Actions UI */
|
|
254
|
-
/*async function soumettre() {
|
|
255
|
-
modeModifier.value = false
|
|
256
|
-
await ouvrir()
|
|
257
|
-
}*/
|
|
258
|
-
|
|
259
254
|
async function ouvrir() {
|
|
260
255
|
if (!activerDivPreferences.value) {
|
|
261
256
|
await chargementPreferences()
|
|
@@ -317,7 +312,10 @@
|
|
|
317
312
|
}
|
|
318
313
|
}
|
|
319
314
|
}
|
|
320
|
-
|
|
315
|
+
async function soumettre() {
|
|
316
|
+
modeModifier.value = false
|
|
317
|
+
await ouvrir()
|
|
318
|
+
}
|
|
321
319
|
/** Validation finale */
|
|
322
320
|
async function ok() {
|
|
323
321
|
await sauvegarder()
|
|
@@ -330,6 +328,7 @@
|
|
|
330
328
|
afficherErreur.value = true
|
|
331
329
|
await nextTick()
|
|
332
330
|
}
|
|
331
|
+
modale.value?.fermer()
|
|
333
332
|
}
|
|
334
333
|
|
|
335
334
|
onMounted(async () => {
|
|
@@ -359,4 +358,6 @@
|
|
|
359
358
|
chargementEnCours.value = false
|
|
360
359
|
}
|
|
361
360
|
}
|
|
361
|
+
|
|
362
|
+
defineExpose({ soumettre })
|
|
362
363
|
</script>
|