|
|
@@ -23,6 +23,7 @@ import { sceneSeting } from "./sceneSeting";
|
|
|
import { tables } from "./tables";
|
|
|
import { drawSetting } from "./drawSetting";
|
|
|
import { Pos3D } from "@/sdk";
|
|
|
+import { reshootData } from "./reshoot";
|
|
|
|
|
|
const global = window as any;
|
|
|
|
|
|
@@ -133,6 +134,8 @@ export const api = !global.android
|
|
|
return router.push({ name: writeRouteName.scene });
|
|
|
},
|
|
|
async reshoot(pos: Pos3D) {
|
|
|
+ console.log("reshoot参数:");
|
|
|
+ console.log(JSON.stringify(pos));
|
|
|
await asyncTimeout(5000);
|
|
|
return "";
|
|
|
},
|
|
|
@@ -306,6 +309,19 @@ export const back = () => {
|
|
|
|
|
|
const loadStore = async () => {
|
|
|
const data: any = await api.getStore();
|
|
|
+ if (params.temp) {
|
|
|
+ try {
|
|
|
+ const str = await api.getFile("panoReshot.json");
|
|
|
+ const data = await (await fetch(str).then()).text();
|
|
|
+ reshootData.value = JSON.parse(data).map((item) => ({
|
|
|
+ ...item,
|
|
|
+ position: JSON.parse(item.position),
|
|
|
+ }));
|
|
|
+ } catch (e) {
|
|
|
+ console.error(e);
|
|
|
+ reshootData.value = [];
|
|
|
+ }
|
|
|
+ }
|
|
|
list.value = data?.measures || [];
|
|
|
baseLines.value = data?.baseLines || [];
|
|
|
basePoints.value = data?.basePoints || [];
|
|
|
@@ -317,8 +333,6 @@ const loadStore = async () => {
|
|
|
uses.value = data?.uses || defaultUses;
|
|
|
tables.value = data?.tables || {};
|
|
|
drawSetting.value = data?.drawSetting || {};
|
|
|
-
|
|
|
- syncSceneStore();
|
|
|
};
|
|
|
|
|
|
export const updateSceneStore = debounce(api.setStore, 300);
|