| | |
| | | import { onMounted, onBeforeMount, reactive, ref, computed, watch } from "vue"; |
| | | import axios from "axios"; |
| | | import { Message } from "@arco-design/web-vue"; |
| | | import { getParseMethodsListApi, uploadWithoutKb } from "@/api/session"; |
| | | import { addSessionApi, getParseMethodsListApi, getSessionDetailsApi, uploadWithoutKb } from "@/api/session"; |
| | | |
| | | const visible = ref(false); |
| | | const loading = ref(false); |
| | |
| | | return type; |
| | | }; |
| | | |
| | | const upDataFile = () => { |
| | | const upDataFile = async () => { |
| | | // if (!activeSessionId.value) { |
| | | // //新建会话 |
| | | // const res = await addSessionApi({ |
| | | // dialog_id: '', |
| | | // conversation_desc: '', |
| | | // }); |
| | | // // console.log(res, "res"); |
| | | // if (res.code == 200) { |
| | | // // console.log(res.data.conversation_id); |
| | | // activeSessionId.value = res.data?.conversation_id; |
| | | // const { code, data } = await getSessionDetailsApi(res.data?.conversation_id); |
| | | // if (code === 200) { |
| | | // console.log(data, '新建会话详情'); |
| | | // } |
| | | // } else { |
| | | // Message.error('创建会话失败,请重试'); |
| | | // } |
| | | // } |
| | | |
| | | |
| | | |
| | | |
| | | console.log(files.value, "files"); |
| | | console.log(parser_ids.value, "解析方法"); |
| | | if(files.value.length == 0){ |
| | |
| | | Message.error('上传失败'); |
| | | } |
| | | }); |
| | | |
| | | // cancel(); |
| | | // emit('selectFileCallback', uploaditemList.value); |
| | | |
| | | |
| | | |