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

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

View File

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

File diff suppressed because it is too large Load Diff