|
|
@ -15,6 +15,11 @@ |
|
|
|
<el-icon><FullScreen/></el-icon> |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="item.type === 'docs'" style="width: 100%;margin-top: 5px"> |
|
|
|
<div v-for="doc in item.docs"> |
|
|
|
<el-link type="primary" @click="downLoadFile(doc)" :underline="false">{{ doc.file_name }}</el-link> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else style="width: 100%;margin-top: 5px"> |
|
|
|
<markdown :markdown-string="item.content"></markdown> |
|
|
|
</div> |
|
|
@ -29,7 +34,7 @@ import chatTable from './chatTable.vue' |
|
|
|
import htmlCharts from './htmlCharts.vue' |
|
|
|
import {Download, FullScreen} from "@element-plus/icons-vue"; |
|
|
|
import { ref, watch} from 'vue' |
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance(); |
|
|
|
const props = defineProps({ |
|
|
|
source: Array, |
|
|
|
is_large: Boolean, |
|
|
@ -41,6 +46,13 @@ function fullscreenG6(data){ |
|
|
|
emit('fullscreenG6',data) |
|
|
|
} |
|
|
|
|
|
|
|
function downLoadFile(doc){ |
|
|
|
let data = {file:doc.file_name,bucket: doc.bucket,sessionId: doc.session_id} |
|
|
|
proxy.download("/default-api/aichat/file/download", { |
|
|
|
...data, |
|
|
|
}, doc.file_name); |
|
|
|
} |
|
|
|
|
|
|
|
function downLoadTable(data){ |
|
|
|
const worksheet = XLSX.utils.json_to_sheet(data); |
|
|
|
// 创建一个新的工作簿并将工作表添加到工作簿中 |
|
|
|