|
@@ -20,7 +20,7 @@
|
|
|
<el-tree
|
|
|
style="max-width: 600px"
|
|
|
:data="treeNode"
|
|
|
- :props="{ disabled: 'disable' }"
|
|
|
+ :props="{ disabled: 'run' }"
|
|
|
node-key="id"
|
|
|
ref="treeRef"
|
|
|
:show-checkbox="router.currentRoute.value.name === 'map'"
|
|
@@ -73,6 +73,7 @@
|
|
|
</template>
|
|
|
<el-icon color="#409efc" style="margin-left: 8px">
|
|
|
<Link
|
|
|
+ v-if="!data.run"
|
|
|
@click.stop="
|
|
|
data.type === 'scene'
|
|
|
? gotoScene(data.raw)
|
|
@@ -152,6 +153,7 @@ import { router } from "@/router";
|
|
|
import { selectScenes } from "../quisk";
|
|
|
import { addRelicsScenesFetch, delRelicsScenesFetch } from "@/request";
|
|
|
import { exportFile, exportImage } from "./pc4Helper";
|
|
|
+import { SceneStatus } from "@/store/scene";
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
(e: "flyScene", data: Scene): void;
|
|
@@ -177,10 +179,12 @@ const treeNode = computed(() =>
|
|
|
label: scene.sceneCode,
|
|
|
id: scene.id,
|
|
|
type: "scene",
|
|
|
+ run: scene.calcStatus !== SceneStatus.SUCCESS,
|
|
|
disable: scene.scenePos.every((pos) => !pos.pos || pos.pos.length === 0),
|
|
|
raw: scene,
|
|
|
children: scene.scenePos.map((pos) => ({
|
|
|
label: pos.name,
|
|
|
+ run: scene.calcStatus !== SceneStatus.SUCCESS,
|
|
|
disable: !pos.pos || pos.pos.length === 0,
|
|
|
id: pos.id,
|
|
|
type: "point",
|