| | |
| | | <el-table-column prop="name" label="文件名称" fixed="left" show-overflow-tooltip align="left" /> |
| | | <el-table-column prop="type" width="120" label="文件类型" show-overflow-tooltip align="center" /> |
| | | <el-table-column prop="time" label="上传时间" show-overflow-tooltip width="280" align="center"></el-table-column> |
| | | <el-table-column label="操作" width="80" fixed="right" show-overflow-tooltip align="center"> |
| | | <el-table-column label="操作" width="120" fixed="right" show-overflow-tooltip align="center"> |
| | | <template #default="scope"> |
| | | <div class="space-x-2.5"> |
| | | <el-tooltip effect="dark" content="查看" placement="top"> |
| | | <el-tooltip effect="dark" content="文本" placement="top"> |
| | | <i |
| | | class="ywifont ywicon-yulan !text-[17px] cursor-pointer text-blue-400" |
| | | class="ywifont ywicon-wendang !text-[17px] cursor-pointer text-blue-400" |
| | | @click="openOperateDemoPage(scope.row)" |
| | | ></i> |
| | | </el-tooltip> |
| | | <el-tooltip effect="dark" content="分块" placement="top"> |
| | | <i |
| | | class="ywifont ywicon-01wenjianfenkuai !text-[17px] cursor-pointer text-blue-400" |
| | | @click="handleViewKnowledgeFile(scope.row)" |
| | | ></i> |
| | | </el-tooltip> |
| | |
| | | knowledgeTableData.value = res.values; |
| | | } |
| | | }; |
| | | const handleViewKnowledgeFile = (row) => { |
| | | //查看文档 |
| | | const openOperateDemoPage = (row: any) => { |
| | | router.push({ |
| | | name: 'ViewFile', |
| | | query: { |
| | | id: row.id, |
| | | }, |
| | | }); |
| | | }; |
| | | //查看文档块 |
| | | const handleViewKnowledgeFile = (row) => { |
| | | router.push({ |
| | | name: 'ViewSegmentationFile', |
| | | query: { |
| | | id: row.id, |
| | | }, |
| | |
| | | .set-table-height { |
| | | background: #fff; |
| | | border-radius: 16px; |
| | | height: calc(100% - 80px); |
| | | height: calc(100% - 50px); |
| | | margin-top: 12px; |
| | | overflow-y: auto; |
| | | padding: 20px 24px; |