更新开发环境API服务地址,将主服务和新功能服务的IP地址从内网地址改为公网地址116.204.74.41,在音频资产管理中新增文本转语音功能按钮和对话框组件,在知识库文件管理中将文件名改为可点击链接支持跳转到文档详情页面
This commit is contained in:
@@ -152,11 +152,11 @@
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column prop="name" label="名称" min-width="200" sortable>
|
||||
<template #default="scope">
|
||||
<div class="file-name">
|
||||
<div class="file-name" @click="onViewDocumentDetail(scope.row)">
|
||||
<el-icon class="file-icon" :style="{ color: getFileIconColor(scope.row.fileType) }">
|
||||
<ele-Document />
|
||||
</el-icon>
|
||||
<span>{{ scope.row.name }}</span>
|
||||
<span class="file-link">{{ scope.row.name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -334,9 +334,12 @@ export default {
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
import type { FormInstance, FormRules, UploadFile } from 'element-plus';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
// 数据集相关
|
||||
const datasetLoading = ref(false);
|
||||
const datasetList = ref<any[]>([]);
|
||||
@@ -585,9 +588,22 @@ const onFileStatusChange = (row: any) => {
|
||||
ElMessage.success(row.enabled ? '已启用' : '已禁用');
|
||||
};
|
||||
|
||||
// 查看文档详情
|
||||
const onViewDocumentDetail = (row: any) => {
|
||||
router.push({
|
||||
path: '/knowledge/document/detail',
|
||||
query: {
|
||||
datasetId: currentDataset.value?.id,
|
||||
datasetName: currentDataset.value?.name,
|
||||
docId: row.id,
|
||||
docName: row.name,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
// 预览文件
|
||||
const onPreviewFile = (row: any) => {
|
||||
ElMessage.info(`预览文件: ${row.name}`);
|
||||
onViewDocumentDetail(row);
|
||||
};
|
||||
|
||||
// 下载文件
|
||||
@@ -928,11 +944,20 @@ onMounted(() => {
|
||||
.file-name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
|
||||
.file-icon {
|
||||
margin-right: 8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.file-link {
|
||||
color: #409eff;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user