|
@@ -1,4 +1,7 @@
|
|
|
<template>
|
|
|
+ <div class="elements props" v-if="projectData.tree?.length" v-show="group === '工程'">
|
|
|
+ <Project></Project>
|
|
|
+ </div>
|
|
|
<div class="elements props" v-show="group === '图层'">
|
|
|
<div class="flex mt-16 mb-16" style="justify-content: end; padding-right: 8px">
|
|
|
<t-tooltip placement="top" :content="$t('置顶')">
|
|
@@ -197,7 +200,12 @@ import {
|
|
|
MenuUnfoldIcon,
|
|
|
MenuFoldIcon,
|
|
|
} from 'tdesign-icons-vue-next';
|
|
|
+import Project from '@/views/components/Project.vue';
|
|
|
+
|
|
|
+import { useProject } from '@/services/project';
|
|
|
|
|
|
+const { data:projectData } = useProject();
|
|
|
+
|
|
|
const props = defineProps<{
|
|
|
group: string;
|
|
|
}>();
|