@@ -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");
}