From 3bde7a9cac2fef5ed1f719ea8eb121d15f4151ec Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 9 Apr 2026 22:33:45 +0000 Subject: [PATCH] Save image data on the compliance model --- ts/rmo/content/compliance/Evidence.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ts/rmo/content/compliance/Evidence.vue b/ts/rmo/content/compliance/Evidence.vue index d42f01c2..5e96be12 100644 --- a/ts/rmo/content/compliance/Evidence.vue +++ b/ts/rmo/content/compliance/Evidence.vue @@ -110,7 +110,7 @@
- +
@@ -142,7 +142,7 @@ name="comments" placeholder="Provide any additional information that may be helpful..." rows="4" - v-model="comments" + v-model="modelValue.comments" >
Example: "This standing water appeared after recent rain" or "I've @@ -170,20 +170,21 @@ import type { District } from "@/type/api"; import HeaderCompliance from "@/rmo/components/HeaderCompliance.vue"; import ImageUpload, { Image } from "@/components/ImageUpload.vue"; import ProgressBarCompliance from "@/rmo/components/ProgressBarCompliance.vue"; +import type { Compliance } from "@/rmo/view/Compliance.vue"; + interface Emits { - (e: "doComments", comments: string): void; - (e: "doImages", images: Image[]): void; + (e: "update:modelValue", value: Compliance): void; + (e: "doEvidence"): void; } interface Props { district: District; + modelValue: Compliance; } -const comments = ref(""); const emit = defineEmits(); -const images = ref([]); const props = defineProps(); function doContinue() { - emit("doComments", comments.value); - emit("doImages", images.value); + emit("update:modelValue", props.modelValue); + emit("doEvidence"); router.push("./permission"); }