|
@@ -11,7 +11,7 @@
|
|
|
>
|
|
>
|
|
|
<el-table-column label="场景标题" prop="name">
|
|
<el-table-column label="场景标题" prop="name">
|
|
|
<template v-slot:default="{ row }">
|
|
<template v-slot:default="{ row }">
|
|
|
- <span class="oper-span" @click="openSceneUrl(row, OpenType.query)">{{ row.fusionTitle }}</span>
|
|
|
|
|
|
|
+ <span class="oper-span" @click="openFusionView(row)">{{ row.fusionTitle }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
@@ -28,7 +28,7 @@
|
|
|
v-slot:default="{ row }: { row: QuoteScene }"
|
|
v-slot:default="{ row }: { row: QuoteScene }"
|
|
|
width="200px"
|
|
width="200px"
|
|
|
>
|
|
>
|
|
|
- <span class="oper-span" @click="openSceneUrl(row, OpenType.edit)">
|
|
|
|
|
|
|
+ <span class="oper-span" @click="openFusionEdit(row)">
|
|
|
编辑
|
|
编辑
|
|
|
</span>
|
|
</span>
|
|
|
<span class="oper-span" @click="openSceneShare(row)">
|
|
<span class="oper-span" @click="openSceneShare(row)">
|
|
@@ -54,11 +54,12 @@ import {
|
|
|
} from "@/store/scene";
|
|
} from "@/store/scene";
|
|
|
import { ScenePagging } from "./pagging";
|
|
import { ScenePagging } from "./pagging";
|
|
|
import { QuoteSceneStatusDesc } from "@/constant/scene";
|
|
import { QuoteSceneStatusDesc } from "@/constant/scene";
|
|
|
-import { OpenType, openSceneUrl } from "../../case/help";
|
|
|
|
|
|
|
+import { user } from "@/store/user";
|
|
|
import { confirm } from "@/helper/message";
|
|
import { confirm } from "@/helper/message";
|
|
|
import { sceneDownload } from "./quisk";
|
|
import { sceneDownload } from "./quisk";
|
|
|
import { sceneShare as sceneShareDialog } from "@/view/case/quisk";
|
|
import { sceneShare as sceneShareDialog } from "@/view/case/quisk";
|
|
|
import { downSceneHash } from "@/request";
|
|
import { downSceneHash } from "@/request";
|
|
|
|
|
+const url = import.meta.env.VITE_SEVER_URL || 'https://mix3d.4dkankan.com';
|
|
|
|
|
|
|
|
const props = defineProps<{ pagging: ScenePagging }>();
|
|
const props = defineProps<{ pagging: ScenePagging }>();
|
|
|
const delSceneHandler = async (scene: QuoteScene) => {
|
|
const delSceneHandler = async (scene: QuoteScene) => {
|
|
@@ -83,8 +84,22 @@ const addMix3d = () => {
|
|
|
|
|
|
|
|
// 权限:与 meshManager 一致,但改为传入 caseId,且不传 isObj
|
|
// 权限:与 meshManager 一致,但改为传入 caseId,且不传 isObj
|
|
|
const openSceneShare = async (row: QuoteScene | any) => {
|
|
const openSceneShare = async (row: QuoteScene | any) => {
|
|
|
- const caseId = (row && (row.caseId ?? row.fusionId ?? row.id)) as number;
|
|
|
|
|
- if (!caseId) return;
|
|
|
|
|
- await sceneShareDialog({ caseId });
|
|
|
|
|
|
|
+ const fusionId = (row && (row.fusionId ?? row.id)) as number;
|
|
|
|
|
+ if (!fusionId) return;
|
|
|
|
|
+ await sceneShareDialog({ fusionId });
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+// 打开多元融合查看页
|
|
|
|
|
+const openFusionView = (row: any) => {
|
|
|
|
|
+ const fusionId = (row && (row.fusionId ?? row.id)) as number;
|
|
|
|
|
+ if (!fusionId) return;
|
|
|
|
|
+ window.open(`${url}/code/index.html?caseId=${fusionId}&token=${user.value.token}#/show/summary`);
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+// 跳转多元融合编辑页(复原 mix3d.vue 行161-163逻辑)
|
|
|
|
|
+const openFusionEdit = (row: any) => {
|
|
|
|
|
+ const fusionId = (row && (row.fusionId ?? row.id)) as number;
|
|
|
|
|
+ if (!fusionId) return;
|
|
|
|
|
+ window.open(`${url}/code/index.html?caseId=${fusionId}&token=${user.value.token}#/fuseEdit/merge`, '_blank');
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|