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