|
@@ -3,7 +3,7 @@
|
|
|
<div class="fullscreen-spin mask2" v-if="agentlistloading">
|
|
<div class="fullscreen-spin mask2" v-if="agentlistloading">
|
|
|
<div class="spin">
|
|
<div class="spin">
|
|
|
<div class="spinner"></div>
|
|
<div class="spinner"></div>
|
|
|
- <div class="text">加载中...</div>
|
|
|
|
|
|
|
+ <div class="text">loading...</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 弹窗头部 -->
|
|
<!-- 弹窗头部 -->
|
|
@@ -117,7 +117,7 @@ import { chat_no_stream, chat_stream, getAgentModel, chat_no_stream2, getAgentCh
|
|
|
import { useSlidesStore } from '@/store'
|
|
import { useSlidesStore } from '@/store'
|
|
|
import { lang } from '@/main'
|
|
import { lang } from '@/main'
|
|
|
import MarkdownIt from 'markdown-it'
|
|
import MarkdownIt from 'markdown-it'
|
|
|
-import { getWorkPageId, getClassById } from '@/services/course'
|
|
|
|
|
|
|
+import { getWorkPageId, getClassById, addPPTOp2 } from '@/services/course'
|
|
|
import FileInput from '@/components/FileInput2.vue'
|
|
import FileInput from '@/components/FileInput2.vue'
|
|
|
import axios from '@/services/config'
|
|
import axios from '@/services/config'
|
|
|
import message from '@/utils/message'
|
|
import message from '@/utils/message'
|
|
@@ -172,12 +172,14 @@ const props = withDefaults(defineProps<{
|
|
|
workJson?: any
|
|
workJson?: any
|
|
|
visible?: boolean
|
|
visible?: boolean
|
|
|
cid?: string | null
|
|
cid?: string | null
|
|
|
|
|
+ courseid?: string | null
|
|
|
}>(), {
|
|
}>(), {
|
|
|
userid: null,
|
|
userid: null,
|
|
|
position: () => ({ x: 0, y: 0 }),
|
|
position: () => ({ x: 0, y: 0 }),
|
|
|
workJson: () => ({}),
|
|
workJson: () => ({}),
|
|
|
visible: false,
|
|
visible: false,
|
|
|
- cid: null
|
|
|
|
|
|
|
+ cid: null,
|
|
|
|
|
+ courseid: null
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const emit = defineEmits(['close'])
|
|
const emit = defineEmits(['close'])
|
|
@@ -310,6 +312,16 @@ const sendMessage = () => {
|
|
|
if (chatLoading.value) {
|
|
if (chatLoading.value) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ addPPTOp2({
|
|
|
|
|
+ id: props.courseid,
|
|
|
|
|
+ userid: props.userid || '',
|
|
|
|
|
+ type: '2',
|
|
|
|
|
+ index: currentSlide.value.id, // 获取当前ppt页面的id
|
|
|
|
|
+ data: inputText.value
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ console.log('res', res)
|
|
|
|
|
+ })
|
|
|
// 检查是否有文件正在处理中
|
|
// 检查是否有文件正在处理中
|
|
|
const hasProcessingFile = files.value.some(file => file.isProcessing)
|
|
const hasProcessingFile = files.value.some(file => file.isProcessing)
|
|
|
if (hasProcessingFile) {
|
|
if (hasProcessingFile) {
|
|
@@ -592,6 +604,8 @@ const addChat = () => {
|
|
|
|
|
|
|
|
import useCreateElement from '@/hooks/useCreateElement'
|
|
import useCreateElement from '@/hooks/useCreateElement'
|
|
|
import useSlideHandler from '@/hooks/useSlideHandler'
|
|
import useSlideHandler from '@/hooks/useSlideHandler'
|
|
|
|
|
+import { storeToRefs } from 'pinia'
|
|
|
|
|
+const { slides, slideIndex, currentSlide, viewportSize, viewportRatio } = storeToRefs(slidesStore)
|
|
|
const { createSlide } = useSlideHandler()
|
|
const { createSlide } = useSlideHandler()
|
|
|
const { createFrameElement } = useCreateElement()
|
|
const { createFrameElement } = useCreateElement()
|
|
|
|
|
|