Add pieces of initial site review page

This commit is contained in:
Eli Ribble 2026-04-16 04:48:07 +00:00
parent e1f3c93a1d
commit 29c3b267d9
No known key found for this signature in database
4 changed files with 128 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<template>
<p>loading</p>
</template>
<script setup lang="ts">
interface Emits {
(e: "doSelectTask", id: number): void;
}
interface Props {}
const emit = defineEmits<Emits>();
const props = withDefaults(defineProps<Props>(), {});
</script>

View file

@ -0,0 +1,8 @@
<style scoped></style>
<template></template>
<script setup lang="ts">
interface Emits {
(e: "update:modelValue", value: any): void;
}
interface Props {}
</script>

View file

@ -0,0 +1,12 @@
<style scoped lang="scss"></style>
<template>
<p>list</p>
</template>
<script setup lang="ts">
interface Emits {
(e: "doSelectTask", id: number): void;
}
interface Props {}
const emit = defineEmits<Emits>();
const props = withDefaults(defineProps<Props>(), {});
</script>

97
ts/view/review/Site.vue Normal file
View file

@ -0,0 +1,97 @@
<style scoped>
body {
background-color: #f5f5f5;
}
.left-panel {
background-color: white;
height: 100vh;
overflow-y: auto;
border-right: 1px solid #dee2e6;
}
.middle-panel {
background-color: white;
height: 100vh;
overflow-y: auto;
padding: 20px;
}
.right-panel {
background-color: white;
height: 100vh;
overflow-y: auto;
border-left: 1px solid #dee2e6;
padding: 20px;
}
.placeholder-box {
background-color: #e9ecef;
border: 2px dashed #adb5bd;
display: flex;
align-items: center;
justify-content: center;
color: #6c757d;
font-size: 18px;
margin-bottom: 20px;
}
.map-placeholder {
height: 300px;
}
.image-placeholder {
height: 400px;
}
.action-btn {
width: 100%;
margin-bottom: 10px;
padding: 12px;
font-size: 16px;
}
.status-badge {
font-size: 11px;
}
.map-container {
margin-bottom: 20px;
}
</style>
<template>
<ThreeColumn>
<template #left>
<ReviewSiteColumnList />
</template>
<template #center>
<ReviewSiteColumnDetail />
</template>
<template #right>
<ReviewSiteColumnAction />
</template>
</ThreeColumn>
</template>
<script setup lang="ts">
import { computed, onMounted, ref, watch } from "vue";
import { useStoreReviewTask } from "@/store/review-task";
import { useSessionStore } from "@/store/session";
import maplibregl from "maplibre-gl";
import ThreeColumn from "@/components/layout/ThreeColumn.vue";
import ReviewSiteColumnAction from "@/components/ReviewSiteColumnAction.vue";
import ReviewSiteColumnDetail from "@/components/ReviewSiteColumnDetail.vue";
import ReviewSiteColumnList from "@/components/ReviewSiteColumnList.vue";
import { formatAddress } from "@/format";
import type { Changes } from "@/types";
import { Bounds, Contact, Location, ReviewTask } from "@/type/api";
import { Camera } from "@/type/map";
import { MapClickEvent, Marker } from "@/types";
// Props (you can pass these from parent component or environment)
interface Props {}
const props = withDefaults(defineProps<Props>(), {});
// Lifecycle
onMounted(async () => {});
</script>