|
@@ -44,13 +44,21 @@
|
|
|
<span class="tree-scene-name">{{ node.label }}</span>
|
|
|
</span>
|
|
|
</el-tooltip>
|
|
|
- <span :class="{ disable: data.disable }" class="title" v-else>
|
|
|
- <el-icon>
|
|
|
- <LocationInformation v-if="!data.disable" />
|
|
|
- <DeleteLocation v-else />
|
|
|
- </el-icon>
|
|
|
- {{ node.label }}
|
|
|
- </span>
|
|
|
+ <el-tooltip
|
|
|
+ v-else
|
|
|
+ class="box-item"
|
|
|
+ effect="dark"
|
|
|
+ :content="node.label"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <span :class="{ disable: data.disable }" class="title">
|
|
|
+ <el-icon>
|
|
|
+ <LocationInformation v-if="!data.disable" />
|
|
|
+ <DeleteLocation v-else />
|
|
|
+ </el-icon>
|
|
|
+ {{ node.label }}
|
|
|
+ </span>
|
|
|
+ </el-tooltip>
|
|
|
<span class="oper">
|
|
|
<template v-if="router.currentRoute.value.name === 'map'">
|
|
|
<template v-if="data.type === 'scene'">
|
|
@@ -76,31 +84,33 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- :icon="Download"
|
|
|
- style="width: 100%"
|
|
|
- @click="exportFile(getSelectPoints(), 2)"
|
|
|
- >
|
|
|
- 导出本体边界坐标
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- :icon="Download"
|
|
|
- style="width: 100%; margin-top: 20px; margin-left: 0"
|
|
|
- @click="exportFile(getSelectPoints(), 1)"
|
|
|
- >
|
|
|
- 导出绘制矢量数据
|
|
|
- </el-button>
|
|
|
+ <template v-if="router.currentRoute.value.name === 'map'">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :icon="Download"
|
|
|
+ style="width: 100%"
|
|
|
+ @click="exportFile(getSelectPoints(), 2)"
|
|
|
+ >
|
|
|
+ 导出本体边界坐标
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :icon="Download"
|
|
|
+ style="width: 100%; margin-top: 20px; margin-left: 0"
|
|
|
+ @click="exportFile(getSelectPoints(), 1)"
|
|
|
+ >
|
|
|
+ 导出绘制矢量数据
|
|
|
+ </el-button>
|
|
|
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- :icon="Download"
|
|
|
- style="width: 100%; margin-top: 20px; margin-left: 0"
|
|
|
- @click="exportImage(getSelectPoints(), relics?.name)"
|
|
|
- >
|
|
|
- 下载全景图
|
|
|
- </el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :icon="Download"
|
|
|
+ style="width: 100%; margin-top: 20px; margin-left: 0"
|
|
|
+ @click="exportImage(getSelectPoints(), relics?.name)"
|
|
|
+ >
|
|
|
+ 下载全景图
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
|
|
|
<SingleInput
|
|
@@ -193,7 +203,6 @@ const addHandler = async () => {
|
|
|
.filter((sceneCode) => !nScene.some((scene) => scene.sceneCode === sceneCode))
|
|
|
.map((sceneCode) => scenes.value.find((scene) => scene.sceneCode === sceneCode)!);
|
|
|
|
|
|
- console.log(nScene, delScenes);
|
|
|
delScenes.length && requests.push(delRelicsScenes(delScenes));
|
|
|
|
|
|
const addScenes = nScene.filter(({ sceneCode }) => !sceneCodes.includes(sceneCode));
|
|
@@ -240,6 +249,9 @@ const addSceneHandler = async (scenes: Pick<Scene, "sceneId" | "sceneCode">[]) =
|
|
|
flex: none;
|
|
|
}
|
|
|
}
|
|
|
+.disable {
|
|
|
+ pointer-events: all;
|
|
|
+}
|
|
|
|
|
|
.tree-layout {
|
|
|
p {
|