将音频资产管理的文本转语音功能从标签页改为下拉选择模式,在知识库文件管理中将文档详情从路由跳转改为弹窗展示
This commit is contained in:
@@ -323,6 +323,14 @@
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 文档详情弹窗 -->
|
||||
<DocumentDetailDialog
|
||||
v-model="showDocumentDetailDialog"
|
||||
:datasetId="currentDataset?.id || ''"
|
||||
:datasetName="currentDataset?.name || ''"
|
||||
:document="currentDocument"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -337,6 +345,7 @@ 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';
|
||||
import DocumentDetailDialog from './component/documentDetailDialog.vue';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
@@ -364,6 +373,10 @@ const showUploadDialog = ref(false);
|
||||
const uploadFileList = ref<UploadFile[]>([]);
|
||||
const uploading = ref(false);
|
||||
|
||||
// 文档详情弹窗
|
||||
const showDocumentDetailDialog = ref(false);
|
||||
const currentDocument = ref<any>(null);
|
||||
|
||||
// 菜单相关
|
||||
const activeMenu = ref('files');
|
||||
|
||||
@@ -590,15 +603,8 @@ const onFileStatusChange = (row: any) => {
|
||||
|
||||
// 查看文档详情
|
||||
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,
|
||||
},
|
||||
});
|
||||
currentDocument.value = row;
|
||||
showDocumentDetailDialog.value = true;
|
||||
};
|
||||
|
||||
// 预览文件
|
||||
|
||||
Reference in New Issue
Block a user