优化项目管理-添加文档管理功能
This commit is contained in:
@@ -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 || [];
|
||||
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user