1234567891011121314151617181920212223242526272829303132 |
- import { ref, watch, watchEffect } from "vue";
- import type { PhotoRaw } from "./photos";
- export type AccidentPhoto = {
- id: string;
- photoUrl: string;
- title: string;
- url: string;
- time: number;
- data: any;
- updateTime?: number;
- type?: string;
- sceneData: {
- meterPerPixel: number;
- measures: PhotoRaw["measures"];
- fixPoints: PhotoRaw["fixPoints"];
- basePoints: PhotoRaw["basePoints"];
- baseLines: PhotoRaw["baseLines"];
- };
- };
- export const types = ["概览照片", "中心照片", "细目照片", "方位照片"];
- export const accidentPhotos = ref<AccidentPhoto[]>([]);
- watch(
- accidentPhotos,
- (val) => {
- console.error(accidentPhotos.value[1]);
- },
- { deep: true, flush: "sync" }
- );
|