Browse Source

feat(editor, taskManagement): 添加小凯 AI 功能

- 在 ModelMain.vue 中添加小凯 AI 的 iframe
- 创建 automatedPresentation.vue并添加小凯 AI 的 iframe
- 在 automatedPresentation.vue 中添加消息监听器
master
lizw-2015 5 months ago
parent
commit
85f2e26ff5
  1. 2
      src/editor/ModelMain.vue
  2. 21
      src/views/taskManagement/automatedPresentation.vue

2
src/editor/ModelMain.vue

@ -72,7 +72,7 @@
<CatalogDefine />
</el-tab-pane>
<el-tab-pane label="小凯AI" name="ModelDataSet" lazy>
<el-empty description="暂无数据" />
<iframe class="galaxis-ai" style="width: 100%;height: 100%;border: none;" src="http://localhost:5906/#/chat"></iframe>
</el-tab-pane>
</el-tabs>
</SplitArea>

21
src/views/taskManagement/automatedPresentation.vue

@ -1,12 +1,21 @@
<template>
<div class="modeling-simulation">
automatedPresentation.vue
</div>
<div class="modeling-simulation">
<iframe class="galaxis-ai" style="width: 100%;height: 100%;border: none;" src="http://localhost:5906/#/chat"></iframe>
</div>
</template>
<script setup>
<script setup lang="ts">
import { onMounted, onUnmounted } from "vue";
function mes(event: MessageEvent) {
console.log('data', event.data);
}
onMounted(() => window.addEventListener('message', mes));
onUnmounted(() => window.removeEventListener('message', mes));
</script>
<style lang="less">
.dashboard{
.modeling-simulation {
width: 100%;
height: 100%;
}
</style>

Loading…
Cancel
Save