Add pieces of initial site review page
This commit is contained in:
parent
e1f3c93a1d
commit
29c3b267d9
4 changed files with 128 additions and 0 deletions
11
ts/components/ReviewSiteColumnAction.vue
Normal file
11
ts/components/ReviewSiteColumnAction.vue
Normal 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>
|
||||
8
ts/components/ReviewSiteColumnDetail.vue
Normal file
8
ts/components/ReviewSiteColumnDetail.vue
Normal 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>
|
||||
12
ts/components/ReviewSiteColumnList.vue
Normal file
12
ts/components/ReviewSiteColumnList.vue
Normal 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
97
ts/view/review/Site.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue