|
@@ -579,6 +579,7 @@ const editor = ref(null);
|
|
|
const tabsRef = ref(null);
|
|
const tabsRef = ref(null);
|
|
|
const showText = ref(show.value ? false : true);
|
|
const showText = ref(show.value ? false : true);
|
|
|
const settype = ref(false);
|
|
const settype = ref(false);
|
|
|
|
|
+const loadingAiPhone = ref()
|
|
|
const childrenList = ref({
|
|
const childrenList = ref({
|
|
|
list: [],
|
|
list: [],
|
|
|
value: "",
|
|
value: "",
|
|
@@ -1152,25 +1153,33 @@ async function handledrawCasePhotos(val) {
|
|
|
}
|
|
}
|
|
|
async function frameLoad(sdk, num) {
|
|
async function frameLoad(sdk, num) {
|
|
|
// 这里可以获取到mesh方法
|
|
// 这里可以获取到mesh方法
|
|
|
- const player = sdk.core.get("Player");
|
|
|
|
|
- sdk.Scene.on("loaded", () => {
|
|
|
|
|
- // if (isTest) {
|
|
|
|
|
- player.model.panos.list.forEach((pano) => pano.addLabel2());
|
|
|
|
|
- // } else {
|
|
|
|
|
- // sdk.core.get("SceneRenderer").suspend();
|
|
|
|
|
- // }
|
|
|
|
|
- });
|
|
|
|
|
- console.log("--------frameLoad!---------");
|
|
|
|
|
- const jsonContent = await sdk.Camera.routeSnapGenerate();
|
|
|
|
|
- console.log("返回数据", list);
|
|
|
|
|
- const iframe = document.getElementById("iframe-outside");
|
|
|
|
|
- iframe?.classList.remove('show');
|
|
|
|
|
- let res = await casePhotoUpImage({
|
|
|
|
|
- caseId: caseId.value,
|
|
|
|
|
- num,
|
|
|
|
|
- jsonContent,
|
|
|
|
|
- });
|
|
|
|
|
- console.log("返回数据1", res);
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ const player = sdk.core.get("Player");
|
|
|
|
|
+ sdk.Scene.on("loaded", () => {
|
|
|
|
|
+ // if (isTest) {
|
|
|
|
|
+ player.model.panos.list.forEach((pano) => pano.addLabel2());
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // sdk.core.get("SceneRenderer").suspend();
|
|
|
|
|
+ // }
|
|
|
|
|
+ });
|
|
|
|
|
+ console.log("--------frameLoad!---------");
|
|
|
|
|
+ const jsonContent = await sdk.Camera.routeSnapGenerate();
|
|
|
|
|
+ console.log("返回数据", list);
|
|
|
|
|
+ const iframe = document.getElementById("iframe-outside");
|
|
|
|
|
+ iframe?.classList.remove('show');
|
|
|
|
|
+ let res = await casePhotoUpImage({
|
|
|
|
|
+ caseId: caseId.value,
|
|
|
|
|
+ num,
|
|
|
|
|
+ jsonContent,
|
|
|
|
|
+ });
|
|
|
|
|
+ console.log("返回数据1", res);
|
|
|
|
|
+ loadingAiPhone.value.close();
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.log("捕获到错误", error);
|
|
|
|
|
+ loadingAiPhone.value.close();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// sdk.Scene.whenLoaded(()=>{
|
|
// sdk.Scene.whenLoaded(()=>{
|
|
|
// console.log("返回数据",sdk.Camera.getPose())
|
|
// console.log("返回数据",sdk.Camera.getPose())
|
|
|
// })
|
|
// })
|
|
@@ -1185,6 +1194,11 @@ function handleAIdrawCasePhotos(num) {
|
|
|
const iframe = document.getElementById("iframe-outside");
|
|
const iframe = document.getElementById("iframe-outside");
|
|
|
console.log(iframe, "iframe", iframe.classList.contains("show"));
|
|
console.log(iframe, "iframe", iframe.classList.contains("show"));
|
|
|
if (iframe) {
|
|
if (iframe) {
|
|
|
|
|
+ loadingAiPhone.value = ElLoading.service({
|
|
|
|
|
+ lock: true,
|
|
|
|
|
+ text: "提取图片中...",
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
+ });
|
|
|
iframe.src = "./model.html?m=" + num;
|
|
iframe.src = "./model.html?m=" + num;
|
|
|
iframe.classList.add("show");
|
|
iframe.classList.add("show");
|
|
|
iframe.onload = () => {
|
|
iframe.onload = () => {
|