优化项目管理-添加文档管理功能

This commit is contained in:
2026-05-21 16:33:04 +08:00
parent d7d0874869
commit 96020debfd
3 changed files with 919 additions and 114 deletions

View File

@@ -128,6 +128,7 @@
const props = defineProps<{ const props = defineProps<{
currentCompanyId: number; currentCompanyId: number;
currentProjectId: number;
selectionKey?: string; selectionKey?: string;
selectionState?: Partial<FileSelectionStatePayload>; selectionState?: Partial<FileSelectionStatePayload>;
}>(); }>();
@@ -527,9 +528,9 @@
const loadAllCloudDocs = async () => { const loadAllCloudDocs = async () => {
try { try {
const params = { const params = activeSource.value === 'public'
companyId: activeSource.value === 'public' ? 0 : props.currentCompanyId ? { companyId: 0 }
}; : { companyId: props.currentCompanyId, projectId: props.currentProjectId };
const result = await listAiCloudDoc(params); const result = await listAiCloudDoc(params);
allDirs.value = result || []; allDirs.value = result || [];

View File

@@ -491,6 +491,7 @@
<FileModal <FileModal
ref="fileModal" ref="fileModal"
:current-company-id="currentCompanyId" :current-company-id="currentCompanyId"
:current-project-id="props.data?.id"
:selection-key="currentFileSelectionKey" :selection-key="currentFileSelectionKey"
:selection-state="getTableFileSelection(currentFileSelectionKey)" :selection-state="getTableFileSelection(currentFileSelectionKey)"
@confirm="handleFileSelectConfirm" @confirm="handleFileSelectConfirm"

File diff suppressed because it is too large Load Diff