feat:三个浮动窗口功能新增
This commit is contained in:
@@ -2,9 +2,13 @@
|
||||
import Header from './components/Header.vue'
|
||||
import Main from './components/Main/index.vue'
|
||||
import { ref, onMounted } from 'vue'
|
||||
|
||||
import FloatWindow from './components/Main/TaskTemplate/TaskSyllabus/components/FloatWindow.vue'
|
||||
import PlanModification from './components/Main/TaskTemplate/TaskSyllabus/Branch/PlanModification.vue'
|
||||
import { useAgentsStore } from '@/stores/modules/agents'
|
||||
import PlanTask from './components/Main/TaskTemplate/TaskProcess/components/PlanTask.vue'
|
||||
import AgentAllocation from './components/Main/TaskTemplate/TaskSyllabus/components/AgentAllocation.vue'
|
||||
const isDarkMode = ref(false)
|
||||
|
||||
const agentsStore = useAgentsStore()
|
||||
// 初始化主题
|
||||
const initTheme = () => {
|
||||
const savedTheme = localStorage.getItem('theme')
|
||||
@@ -80,5 +84,27 @@ onMounted(() => {
|
||||
|
||||
<Header />
|
||||
<Main />
|
||||
<FloatWindow
|
||||
v-if="agentsStore.planModificationWindow"
|
||||
title="任务大纲探索"
|
||||
@close="agentsStore.closePlanModification"
|
||||
>
|
||||
<PlanModification />
|
||||
</FloatWindow>
|
||||
<FloatWindow
|
||||
v-if="agentsStore.planTaskWindow"
|
||||
title="任务过程探索"
|
||||
@close="agentsStore.closePlanTask"
|
||||
>
|
||||
<PlanTask />
|
||||
</FloatWindow>
|
||||
|
||||
<FloatWindow
|
||||
v-if="agentsStore.agentAllocationDialog"
|
||||
title="智能体探索"
|
||||
@close="agentsStore.closeAgentAllocationDialog"
|
||||
>
|
||||
<AgentAllocation />
|
||||
</FloatWindow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user