|
@@ -2,13 +2,13 @@
|
|
<div class="right-layout">
|
|
<div class="right-layout">
|
|
<div class="right-content">
|
|
<div class="right-content">
|
|
<el-form :inline="false" v-if="router.currentRoute.value.name === 'map'">
|
|
<el-form :inline="false" v-if="router.currentRoute.value.name === 'map'">
|
|
- <el-form-item v-if="relics">
|
|
|
|
|
|
+ <!-- <el-form-item v-if="relics">
|
|
<el-input v-model="relicsName" :maxlength="50" placeholder="不可移动文物名称">
|
|
<el-input v-model="relicsName" :maxlength="50" placeholder="不可移动文物名称">
|
|
<template #append>
|
|
<template #append>
|
|
<el-button type="primary" @click="updateRelics">修改</el-button>
|
|
<el-button type="primary" @click="updateRelics">修改</el-button>
|
|
</template>
|
|
</template>
|
|
</el-input>
|
|
</el-input>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" :icon="Plus" style="width: 100%" @click="addHandler">
|
|
<el-button type="primary" :icon="Plus" style="width: 100%" @click="addHandler">
|
|
添加场景
|
|
添加场景
|
|
@@ -81,22 +81,24 @@
|
|
type="primary"
|
|
type="primary"
|
|
:icon="Document"
|
|
:icon="Document"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
- @click="exportFile(getSelectPoints())"
|
|
|
|
|
|
+ @click="exportFile(getSelectPoints(), 2)"
|
|
>
|
|
>
|
|
- 导出四普数据
|
|
|
|
|
|
+ 导出本体边界坐标
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ :icon="Document"
|
|
|
|
+ style="width: 100%; margin-top: 20px; margin-left: 0"
|
|
|
|
+ @click="exportFile(getSelectPoints(), 1)"
|
|
|
|
+ >
|
|
|
|
+ 导出绘制矢量数据
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
:icon="Document"
|
|
:icon="Document"
|
|
style="width: 100%; margin-top: 20px; margin-left: 0"
|
|
style="width: 100%; margin-top: 20px; margin-left: 0"
|
|
- @click="
|
|
|
|
- exportImage(
|
|
|
|
- getSelectPoints().filter(
|
|
|
|
- (point) => getPointSelect(point)?.cameraType === DeviceType.VR
|
|
|
|
- )
|
|
|
|
- )
|
|
|
|
- "
|
|
|
|
|
|
+ @click="exportImage(getSelectPoints())"
|
|
>
|
|
>
|
|
下载全景图
|
|
下载全景图
|
|
</el-button>
|
|
</el-button>
|
|
@@ -132,14 +134,13 @@ import {
|
|
relicsId,
|
|
relicsId,
|
|
refreshScenes,
|
|
refreshScenes,
|
|
} from "@/store/scene";
|
|
} from "@/store/scene";
|
|
-import { relics, updateRelicsName } from "@/store/relics";
|
|
|
|
|
|
+import { relics } from "@/store/relics";
|
|
import SingleInput from "@/components/single-input.vue";
|
|
import SingleInput from "@/components/single-input.vue";
|
|
import { ElMessage } from "element-plus";
|
|
import { ElMessage } from "element-plus";
|
|
import { router } from "@/router";
|
|
import { router } from "@/router";
|
|
import { selectScenes } from "../quisk";
|
|
import { selectScenes } from "../quisk";
|
|
import { addRelicsSceneFetch, delRelicsSceneFetch } from "@/request";
|
|
import { addRelicsSceneFetch, delRelicsSceneFetch } from "@/request";
|
|
import { exportFile, exportImage } from "./pc4Helper";
|
|
import { exportFile, exportImage } from "./pc4Helper";
|
|
-import { DeviceType } from "@/store/device";
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
const emit = defineEmits<{
|
|
(e: "flyScene", data: Scene): void;
|
|
(e: "flyScene", data: Scene): void;
|
|
@@ -154,10 +155,10 @@ const updatePointName = async (title: string) => {
|
|
|
|
|
|
const relicsName = ref("");
|
|
const relicsName = ref("");
|
|
watchEffect(() => (relicsName.value = relics.value?.name || ""));
|
|
watchEffect(() => (relicsName.value = relics.value?.name || ""));
|
|
-const updateRelics = async () => {
|
|
|
|
- await updateRelicsName(relicsName.value);
|
|
|
|
- ElMessage.success("修改成功");
|
|
|
|
-};
|
|
|
|
|
|
+// const updateRelics = async () => {
|
|
|
|
+// await updateRelicsName(relicsName.value);
|
|
|
|
+// ElMessage.success("修改成功");
|
|
|
|
+// };
|
|
|
|
|
|
const treeRef = ref<any>();
|
|
const treeRef = ref<any>();
|
|
const treeNode = computed(() =>
|
|
const treeNode = computed(() =>
|
|
@@ -172,7 +173,7 @@ const treeNode = computed(() =>
|
|
disable: !pos.pos || pos.pos.length === 0,
|
|
disable: !pos.pos || pos.pos.length === 0,
|
|
id: pos.id,
|
|
id: pos.id,
|
|
type: "point",
|
|
type: "point",
|
|
- raw: pos,
|
|
|
|
|
|
+ raw: { ...pos, cameraType: scene.cameraType },
|
|
})),
|
|
})),
|
|
}))
|
|
}))
|
|
);
|
|
);
|
|
@@ -183,9 +184,6 @@ const getSelectPoints = () =>
|
|
.filter((option: any) => option.type === "point")
|
|
.filter((option: any) => option.type === "point")
|
|
.map((option: any) => option.raw) as ScenePoint[];
|
|
.map((option: any) => option.raw) as ScenePoint[];
|
|
|
|
|
|
-const getPointSelect = (point: ScenePoint) =>
|
|
|
|
- scenes.value.find((scene) => scene.sceneCode === point.sceneCode);
|
|
|
|
-
|
|
|
|
const addHandler = async () => {
|
|
const addHandler = async () => {
|
|
const sceneCodes = scenes.value.map((scene) => scene.sceneCode);
|
|
const sceneCodes = scenes.value.map((scene) => scene.sceneCode);
|
|
await selectScenes({
|
|
await selectScenes({
|