|
@@ -70,13 +70,12 @@ import {
|
|
|
downQuoteSceneHash,
|
|
downQuoteSceneHash,
|
|
|
} from "@/store/scene";
|
|
} from "@/store/scene";
|
|
|
import { ScenePagging } from "./pagging";
|
|
import { ScenePagging } from "./pagging";
|
|
|
-import { QuoteSceneStatusDesc } from "@/constant/scene";
|
|
|
|
|
import { OpenType, openSceneUrl } from "../../case/help";
|
|
import { OpenType, openSceneUrl } from "../../case/help";
|
|
|
import { confirm } from "@/helper/message";
|
|
import { confirm } from "@/helper/message";
|
|
|
import { sceneDownload } from "./quisk";
|
|
import { sceneDownload } from "./quisk";
|
|
|
import { sceneShare as openSceneShare } from "@/view/case/quisk";
|
|
import { sceneShare as openSceneShare } from "@/view/case/quisk";
|
|
|
import { downSceneHash } from "@/request";
|
|
import { downSceneHash } from "@/request";
|
|
|
-import { SceneTypeDesc } from '@/constant/scene';
|
|
|
|
|
|
|
+import { SceneTypeDesc, QuoteSceneStatusDesc, SceneTypePaths } from '@/constant/scene';
|
|
|
import { transformSWToken } from "@/store/user";
|
|
import { transformSWToken } from "@/store/user";
|
|
|
|
|
|
|
|
const props = defineProps<{ pagging: ScenePagging }>();
|
|
const props = defineProps<{ pagging: ScenePagging }>();
|
|
@@ -98,11 +97,13 @@ const sceneDownloadHandler = (scene: QuoteScene) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const openSceneEdit = async (scene: QuoteScene, type: any) => {
|
|
const openSceneEdit = async (scene: QuoteScene, type: any) => {
|
|
|
|
|
+ console.log('openSceneEdit', scene, type)
|
|
|
const token = await transformSWToken(scene, type);
|
|
const token = await transformSWToken(scene, type);
|
|
|
if (!token) return;
|
|
if (!token) return;
|
|
|
- const isTest = window.location.host.includes("localhost") || window.location.host.includes("test");
|
|
|
|
|
- const base = isTest ? "https://test.4dkankan.com" : "https://4dkankan.com";
|
|
|
|
|
- window.open(`${base}/epg.html?m=${scene.num}&token=${token}`, "_blank");
|
|
|
|
|
|
|
+ let newUrl = SceneTypePaths[scene.type][1];
|
|
|
|
|
+ // const isTest = window.location.host.includes("localhost") || window.location.host.includes("test");
|
|
|
|
|
+ // const base = isTest ? "https://test.4dkankan.com" : "https://4dkankan.com";
|
|
|
|
|
+ window.open(`${newUrl}?m=${scene.num}&token=${token}`, "_blank");
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 权限弹窗:传递 num 和 isObj(由行数据或类型推断)
|
|
// 权限弹窗:传递 num 和 isObj(由行数据或类型推断)
|